NivaarExam PrepOfficial exam papers ↗

25-Comp-B11 Advanced Software Design: December 2019

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

  1. Question 1 Agile Methodologies vs. Conventional Document-Driven Process Models
  2. Question 2 Functional vs. Non-Functional Requirements
  3. Question 3 Software Metrics and the Meaning of "Quantifiable"
  4. Question 4 Use Case and Class Diagrams for a Personal Financial Management Application
  5. Question 5 Quality Concerns Driving Different Design Decisions
  6. Question 6 When White-Box, Black-Box, and Grey-Box Test Cases Can Be Created
  7. Question 7 Software Reuse — Importance, Activities, and the Two Directions of Reuse
  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 What a Design Pattern Is, and Why Design Patterns Matter
  14. Question 14 Creational, Structural, and Behavioural Pattern Classification
  15. Question 15 Factory Method vs. Abstract Factory
  16. Question 16 Decorator vs. Strategy
  17. Question 17 The Façade Pattern for a Personal Financial Management Application
  18. Question 18 MVC Architecture for a Personal Financial Management 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 Favoring Object Composition Over Class Inheritance
  23. Question 23 Visibility of Classes, Variables, and Methods
  24. Question 24 Polymorphism, Dynamic Binding, Overloading, and Overriding
  25. Question 25 friend Access in C++ — Advantages, Disadvantages, and Why Java Disallows It
  26. Question 26 Programming to an Interface, Not an Implementation
  27. Question 27 Interface vs. Class, and Simulating a Java Interface in C++
  28. Question 28 Modular Programming in C++ and Java

Start with Question 1 →

17-Comp-B11 Advanced Software Design — National Exams, December 2019. 3 hours, closed book exam with one aid sheet 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; Pressman, Software Engineering: A Practitioner's Approach (9th ed.) — supplementary process and quality coverage; Gamma, Helm, Johnson & Vlissides (GoF), Design Patterns: Elements of Reusable Object-Oriented Software — creational/structural/behavioural pattern catalogue and the "program to an interface, not an implementation" / "favor object composition over class inheritance" principles; Sebesta, Concepts of Programming Languages (12th ed.) — polymorphism, dynamic binding, visibility, and multiple inheritance semantics; Bertrand Meyer, Object-Oriented Software Construction — design by contract, preconditions/postconditions/class invariants; Barbara Liskov's 1987 substitutability paper for Question 12; Karl Wiegers, Software Requirements (3rd ed.); Myers, The Art of Software Testing, for Question 6.

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