NivaarExam PrepOfficial exam papers ↗

25-Comp-B11 Advanced Software Design: Undated paper

Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)

  1. Question 1 Design-Activity Differences Between Waterfall and Agile
  2. Question 2 Functional vs. Non-Functional Requirements and Their Role in Design
  3. Question 3 Software Metrics, Their Importance, and Their Relationship to Quality
  4. Question 4 Use Case and Class Diagrams for a Personal Address Book Application
  5. Question 5 Why Multiple Design Alternatives Are Produced, and the Basis for Selecting One
  6. Question 6 Test Cases Derivable From the Design Phase
  7. Question 7 Software Reuse — Definition, Importance, and Major Activities
  8. Question 8 Design-by-Contract — Definition, Example, Pros and Cons
  9. Question 9 Assertions and How They Implement Design-by-Contract
  10. Question 10 Preconditions, Postconditions, and Their Relationship to Assertions
  11. Question 11 Class Invariant — Definition, Example, and Role in Design-by-Contract
  12. Question 12 Liskov Substitution Principle — A Design That Follows It and One That Violates It
  13. Question 13 The Structured Contents of a Pattern Language
  14. Question 14 Class-Inheritance-Based vs. Object-Composition-Based GoF Patterns
  15. Question 15 Factory Method vs. Template Method
  16. Question 16 State vs. Strategy
  17. Question 17 The Façade Pattern for a Personal Address Book Application
  18. Question 18 MVC Architecture for a Personal Address Book Application
  19. Question 19 Boundary, Control, and Entity Classes
  20. Question 20 Command and Memento for High-Quality GUI Design
  21. Question 21 Design Strategy for the Three Usability Goals
  22. Question 22 Favor Object Composition Over Class Inheritance
  23. Question 23 Private, Protected, and Public — Meaning and Role in Encapsulation and Modularity
  24. Question 24 Sample Code for Polymorphism, Dynamic Binding, Overloading, and Overriding
  25. Question 25 C++ Private-Member Access for Other Classes, and Why Java Disallows It
  26. Question 26 Programming to an Interface, Not to an Implementation
  27. Question 27 Java Interface vs. C++ Class, and Simulating Interfaces in C++
  28. Question 28 Implementing Public/Private Module Relationships in C++ and Java

Start with Question 1 →

17-Comp-B11 Advanced Software Design — National Exams, May 2019. 3 hours, closed book exam with two aid sheets allowed (written on both sides), no calculator permitted. The paper is organized into five parts, and candidates were instructed to answer any five (5) questions in Part I, any three (3) in Part II, any four (4) in Part III, any two (2) in Part IV, and any five (5) in Part V — only the first questions answered, in each part, as they appear in the answer book are marked. All questions carry equal weight, so the 19 questions actually marked (5+3+4+2+5 of 28) each count for 100/19 ≈ 5.26% of the paper. All 28 questions are answered below for completeness.

Reference texts: Sommerville, Software Engineering (10th ed., Pearson) — software processes, requirements engineering, design principles, testing, dependability, reuse; Pressman, Software Engineering: A Practitioner's Approach (9th ed.) — supplementary process/metrics/quality coverage; Gamma, Helm, Johnson & Vlissides (GoF), Design Patterns: Elements of Reusable Object-Oriented Software — pattern-language structure, the GoF pattern catalogue, and the "favor object composition over class inheritance" / "program to an interface, not an implementation" principles; Sebesta, Concepts of Programming Languages (12th ed.) — polymorphism, dynamic binding, visibility, encapsulation, interfaces; Bertrand Meyer, Object-Oriented Software Construction — design by contract, preconditions/postconditions/class invariants; Barbara Liskov's 1987 substitutability paper for Question 12; Stroustrup, The C++ Programming Language, for friend/access-control semantics (Question 25).

Question 12 prints “Liskpv substitution principle”, a typo in the paper; it is answered as the Liskov substitution principle.

PART I — General Principles (answer any 5 of 7)