Quiz Space

Software Engineering · Quiz 2 · 23 Nov 2025 · September 2025 term

Question 20: You are designing a Book class with mandatory fields (IS…

Question 20

+4 marksOne correct option

You are designing a Book class with mandatory fields (ISBN, title, cost) and optional fields (author, published year, description). Using multiple constructors to handle every combination of fields leads to telescoping constructors.
Which design pattern would best solve this problem?

  1. A

    Factory Pattern

  2. B

    Builder Pattern

  3. C

    Adapter Pattern

  4. D

    Facade Pattern

Show answer

Correct answer

  • B

    Builder Pattern

Question 20 of 25 in the IIT Madras BS Software Engineering (Software Engineering) Quiz 2 paper sat on 23 Nov 2025, in the September 2025 term (IIT M IMPROVEMENT AN EXAM QIA2 23 Nov 2025). It carries 4 marks.

More questions from this paper

  1. Q1A company is developing an Online Food Delivery System (OFDS). Different users and systems interact with OFDS in variou…
  2. Q2A ride-hailing company has completed the development of a fare estimation feature. Internal testers simulate trips and …
  3. Q3In a distributed software development project, multiple teams work on different modules. Each module exposes an interfa…
  4. Q4A team is building a mobile banking app. The exact requirements are unclear, so they build a prototype with limited fun…
  5. Q5You are developing features for the sales summary module of the seller portal. Different industries have different prio…
  6. Q6Consider the following two requirements:\ Requirement 1: The mobile banking app must complete a fund transfer transacti…
  7. Q7Consider the user story given below for a ride-sharing app and answer the question. Feature: Find nearby drivers\ As a …
  8. Q8A hospital management system introduces a new appointment booking interface. Users complain that it takes them a long t…
  9. Q9During a client meeting, the UX designer presents hand-drawn sketches of different screens on paper to demonstrate navi…
  10. Q10A new user opens a document editor and navigates menus to copy text, while an experienced user immediately uses Ctrl+C.…
  11. Q11A development team is creating a new e-commerce platform. They group related functionalities like inventory management,…
  12. Q12Module M1 directly modifies variables inside module M2 by referencing its internal implementation. What is this type of…
  13. Q13A developer changes code in one module, and multiple other modules start failing due to dependencies. Which issue does …
  14. Q14Consider the class diagram given below. Which of the following is/are true about the class diagram?
  15. Q15Which debugging strategy involves tracing the flow of execution from the beginning of the program to identify where the…
  16. Q16A developer has written the following Python function to compute the factorial of a number: def factorial(n):\ if n \< …
  17. Q17A developer is working on a branch feature1 while another developer fixes a bug in branch issueP and merges it into the…
  18. Q18A compiler processes source code into assembly and then an executable file. Each step transforms data and passes it to …
  19. Q19A developer is designing a software system for a marketplace. There are multiple delivery types: physical shipment, ema…
  20. Q21In a sprint planning meeting, which of the following are true?
  21. Q22Consider a Work Breakdown Structure (WBS) for a project with root node "Amazon Seller Portal" and leaf nodes such as "C…
  22. Q23Figure question
  23. Q24QWave Solutions is developing an E-commerce Seller Portal for a mid-sized online retailer. The system will include modu…
  24. Q25QWave Solutions is developing an E-commerce Seller Portal for a mid-sized online retailer. The system will include modu…