CS FundamentalsHardHCL · Tech Mahindra pattern
Assertion (A): A design pattern catalog entry typically names the pattern's intent, applicability, structure (class diagram), and consequences (trade-offs). Reason (R): Documenting consequences lets a team choose between two structurally similar patterns, like State and Strategy, based on which trade-offs actually matter for their use case.
- A. Both A and R are true and R is the correct explanation of A
- B. Both A and R are true but R is not the correct explanation of A
- C. A is true but R is false
- D. A is false but R is true
Correct answer: A. Both A and R are true and R is the correct explanation of A
Both are true: the Gang of Four catalog format includes intent, applicability, structure and consequences, and the consequences section is exactly what helps teams pick between structurally similar patterns based on real trade-offs rather than diagram shape alone.
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 sprint review demonstrates a 'done' increment to stakeholders, while a sprint retrospective is held separately right after. What is the…
- A function point count includes 'General System Characteristics' (GSCs) rated 0–5 each (e.g. performance, reusability, data…
- Integration testing specifically focuses on verifying:
- Which Scrum artifact represents the single source of truth for everything that might be needed in the product, ordered by the Product Owner?
- A PERT activity has optimistic time 5 days, most likely time 11 days and pessimistic time 20 days. What is its expected duration, Te = (O…
- A mutation test run generated 50 mutants. 5 are equivalent mutants and 43 were killed. What is the mutation score, excluding equivalent…