Quiz Space

Software Engineering · Quiz 2 · 1 Dec 2024 · September 2024 term · Set QIM2

Question 12: Consider designing an online gift store that delivers va…

Question 12

+5 marksOne correct option

Consider designing an online gift store that delivers various gift items in a variety of ways, such as direct pick-up from the store, delivery by its own logistics team, or delivery by other delivery partners. To support the delivery process, an interface DeliveryProcessing is being designed, which is further implemented by the classes that provide the implementation for specific delivery processes. The interface DeliveryProcessing specifies the methods to be implemented by any delivery class, and those are packageOrder(), notifyCustomer(), bookDeliveryPartner() and deliver(). The online gift store also has digital gift items like gift coupons, software games, etc., and for delivering these items, most of the methods in the interface DeliveryProcessing are not relevant. However, since the interface DeliveryProcessing needs to be implemented by any delivery class, delivery classes for digital gift items also need to implement the methods from DeliveryProcessing which are not at all relevant to those items.
Identify the SOLID principle that is missing from the design process.

  1. A

    Single responsibility principle

  2. B

    Open-close principle

  3. C

    Liskov substitution principle

  4. D

    Interface segregation principle

Show answer

Correct answer

  • D

    Interface segregation principle

Question 12 of 22 in the IIT Madras BS Software Engineering (Software Engineering) Quiz 2 paper sat on 1 Dec 2024, in the September 2024 term (IIT M IMPROVEMENT AN EXAM QIM2 01 Dec 2024). It carries 5 marks.

This question was also asked in

More questions from this paper

  1. Q1A software organization planned to develop a mobile application that can be used by any other organization for its empl…
  2. Q2A software company has implemented a website for a school. The website is given to the school faculty members to verify…
  3. Q3Consider the following two requirements for a school portal:\ Requirement 1: The portal should allow bulk upload of the…
  4. Q4Which of the following UML diagrams models flow of control among computational activities?
  5. Q5Which of the following software can be used for sharing and maintaining code versions?
  6. Q6A prototype is presented as a web application along with some fabricated data.\ Determine the prototype type that has b…
  7. Q7Suppose the risk assessed for personnel shortfall in a given software project is 1.8. The probability that personnel sh…
  8. Q8Consider a module Deque that maintains a doubly linked list. The module Deque has the following functions:\ push_back(e…
  9. Q9Match the following regarding the outcomes of software design process.
  10. Q10Consider an eCommerce portal that has integrated a set of APIs to recommend products to customers based on their carts.…
  11. Q11Consider the Python code below. What is the cyclomatic complexity of this code?
  12. Q13An organization provides its employees with a mobile app that allows them to apply for leave. To select dates, it pops …
  13. Q14Suppose a job portal has a class Applicant for representing the candidates applying for jobs. Class Applicant has a few…
  14. Q15A software company has to develop an automated gardening system to control soil moisture and other chemical components …
  15. Q16Which of the following is/are the main advantage(s) of prototype model for software\ development?
  16. Q17Consider the activity network diagram for developing a food delivery mobile app as given below. Select the correct obse…
  17. Q18Identify the most appropriate user type for the courier service provider.
  18. Q19The developers of the online gift store want to explore the types of gift items to be kept in the catalog. Therefore, t…
  19. Q20Consider a user story for the online gift shop that describes the following feature:\ Feature 1: Search catalog and pla…
  20. Q21Identify the type of the risk in the given scenario.
  21. Q22Choose the correct option that specifies how the risk can be mitigated.