CS FundamentalsHardGATE CS · TCS NQT Prime · Product Company SDE
In a UML class diagram, a solid diamond at one end of an association line represents:
- A. Generalisation (inheritance)
- B. A dependency that exists only at compile time
- C. Simple association with no ownership implied at all
- D. Composition: the 'part' object's lifetime is bound to the 'whole', and cannot exist independently of it
Correct answer: D. Composition: the 'part' object's lifetime is bound to the 'whole', and cannot exist independently of it
A filled (solid) diamond denotes composition, a strong whole-part relationship where the part's lifecycle is tied to the whole (e.g. a House and its Rooms); an empty diamond instead denotes the weaker aggregation relationship.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- A system's acceptance testing is performed by actual end users in their own real environment, before general release. This is:
- A control-flow graph has 19 edges, 16 nodes and 1 connected component. Using V(G) = E − N + 2P, what is its cyclomatic complexity?
- A control-flow graph has 17 edges, 12 nodes and 2 connected components. Using V(G) = E − N + 2P, what is its cyclomatic complexity?
- A system accepts a value from 18 to 78 inclusive. Using equivalence partitioning, what is the minimum number of test cases needed to cover…
- A module of 8000 lines of code has 13 defects found in testing. What is the defect density, in defects per KLOC?
- Which SDLC model completes each phase (requirements, design, coding, testing, deployment) fully before the next one starts, in a strict…