Computer Science McqsSoftware Design 100+ MCQ & Answer Software Design | page-09 |Computer Engineering MCQ And Answer January 27, 2025 DSN MARATHI 81. The __________ allows an object to alter its behavior when its internal state changes. A. abstract factory B. state pattern C. flyweight pattern D. adapter pattern Answer Option : B 82. In which of the following pattern, a null object replaces check of NULL object instance? A. state pattern B. null object pattern C. strategy pattern D. template pattern Answer Option : B 83. In which of the following pattern, a visitor class is used which changes the executing algorithm of an element class? A. visitor pattern B. mvc pattern C. business delegate pattern D. composite entity pattern Answer Option : A 84. Which of the following represents The (static) structure and (dynamic) behavior of the pattern? A. name B. application C. consequences D. form Answer Option : D 85. Which of the following is not one of the elements of a design pattern? A. context B. environment C. problem D. solution Answer Option : D 86. Define a family of algorithms, encapsulate each one, and make them interchangeable. It lets the algorithm vary independently from clients that use it. A. template method B. decorator C. strategy D. visitor Answer Option : C 87. Encapsulate a request as an object, there by letting you parametrize clients with different requests, queue or log requests, and support undoable operation. A. adapter B. command C. decorator D. composite Answer Option : B 88. Which design pattern is used in the Java Database connectivity JDBC(TM)? A. builder design pattern B. factory method design pattern C. abstract factory design pattern D. singletone design pattern Answer Option : B 89. Which design pattern you would you use to limit the class instantiation to one object? A. factory method design pattern B. builder design pattern C. prototype design pattern D. singleton design pattern Answer Option : D 90. Which of the following patterns allows multiple objects an opportunity to process a request without guaranteeing that any of them must process it? A. chain of responsibility B. command C. memento D. mediator Answer Option : A
81. The __________ allows an object to alter its behavior when its internal state changes. A. abstract factory B. state pattern C. flyweight pattern D. adapter pattern Answer Option : B
82. In which of the following pattern, a null object replaces check of NULL object instance? A. state pattern B. null object pattern C. strategy pattern D. template pattern Answer Option : B
83. In which of the following pattern, a visitor class is used which changes the executing algorithm of an element class? A. visitor pattern B. mvc pattern C. business delegate pattern D. composite entity pattern Answer Option : A
84. Which of the following represents The (static) structure and (dynamic) behavior of the pattern? A. name B. application C. consequences D. form Answer Option : D
85. Which of the following is not one of the elements of a design pattern? A. context B. environment C. problem D. solution Answer Option : D
86. Define a family of algorithms, encapsulate each one, and make them interchangeable. It lets the algorithm vary independently from clients that use it. A. template method B. decorator C. strategy D. visitor Answer Option : C
87. Encapsulate a request as an object, there by letting you parametrize clients with different requests, queue or log requests, and support undoable operation. A. adapter B. command C. decorator D. composite Answer Option : B
88. Which design pattern is used in the Java Database connectivity JDBC(TM)? A. builder design pattern B. factory method design pattern C. abstract factory design pattern D. singletone design pattern Answer Option : B
89. Which design pattern you would you use to limit the class instantiation to one object? A. factory method design pattern B. builder design pattern C. prototype design pattern D. singleton design pattern Answer Option : D
90. Which of the following patterns allows multiple objects an opportunity to process a request without guaranteeing that any of them must process it? A. chain of responsibility B. command C. memento D. mediator Answer Option : A