IT-ELEC ggnes

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

D - All of the above.

Which of the following is true about design patterns? A - Design patterns represent the best practices used by experienced object-oriented software developers. B - Design patterns are solutions to general problems that software developers faced during development. C - Design patterns are obtained by trial and error by numerous software developers over quite a substantial period of time. D - All of the above.

C - Singleton

Ensure a class has only one instance, and provide a global access point to it. A - Single Class Factory B - Proxy C - Singleton D - Flyweight

A - True

In MVC pattern, View represents the visualization of the data that model contains. A - True B - False

A - Factory Method

It defines an interface for creating an object, but let the subclasses decide which class to instantiate. It let the instantiation differ to subclasses. A - Factory Method B - Abstract Factory C - Builder D - Prototype

A - Four authors of Book 'Design Patterns - Elements of Reusable Object-Oriented Software' are known as Gang of Four (GOF).

What is Gang of Four (GOF)? A - Four authors of Book 'Design Patterns - Elements of Reusable Object-Oriented Software' are known as Gang of Four (GOF). B - Gang of Four (GOF) is a name of a book on Design Patterns. C - Gang of Four (GOF) is a Design Pattern. D - None of the above.

A - This pattern creates object without exposing the creation logic to the client and refer to newly created object using a common interface.

Which of the following describes the Factory pattern correctly? A - This pattern creates object without exposing the creation logic to the client and refer to newly created object using a common interface. B - In this pattern an interface is responsible for creating a factory of related objects without explicitly specifying their classes. C - This pattern involves a single class which is responsible to create an object while making sure that only single object gets created. D - This pattern is used when we want to pass data with multiple attributes in one shot from client to server.

B - These design patterns provide a way to create objects while hiding the creation logic, rather than instantiating objects directly using new operator.

Which of the following is correct about Creational design patterns. A - These design patterns are specifically concerned with communication between objects. B - These design patterns provide a way to create objects while hiding the creation logic, rather than instantiating objects directly using new operator. C - These design patterns concern class and object composition. Concept of inheritance is used to compose interfaces and define ways to compose objects to obtain new functionalities. D - None of the above.

D - All of the above.

Which of the following is correct about Singleton design pattern. A - This type of design pattern comes under creational pattern. B - This pattern involves a single class which is responsible to create an object while making sure that only single object gets created. C - Singleton class provides a way to access its only object which can be accessed directly without need to instantiate the object of the class. D - All of the above.

A - Creational, Structural and Behavioral patterns.

Which of the following is correct list of classifications of design patterns. A - Creational, Structural and Behavioral patterns. B - Executional, Structural and Behavioral patterns. C - Creational, Executional and Behavioral patterns. D - None of the above.

C - Business Delegate Pattern

Which of the following pattern is used to decouple presentation tier and business tier? A - Visitor Pattern B - MVC Pattern C - Business Delegate Pattern D - Composite Entity Pattern

False

You gonna fail, fool.


Kaugnay na mga set ng pag-aaral

Health and Human Development Final

View Set

English 12B Unit 4: Imitation of Life (Victorian Period, 1837-1901)

View Set

NU271 Week 6 PrepU: Cellular Regulation

View Set

Business Data Communications & Networking final review

View Set

Hematology Physiology Amboss Q&A

View Set

BUS Law Chapter 6 Part 1 (TEST 2)

View Set