Q 1 - 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 software 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.

Q 2 - 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.

Q 3 - 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.

Q 4 - 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 opreator.
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.

Q 5- Which of the following is correct about Structural 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 opreator.
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.

Q 6- Which of the following is correct about Behavioral 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 opreator.
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.

Q 7 - Which of the following is correct about Factory design pattern.
A - This type of design pattern comes under creational pattern.
B - Factory pattern creates object without exposing the creation logic to the client.
C - Factory pattern refers to newly created object using a common interface.
D - All of the above.

Q 8 - Which of the following is correct about Abstract Factory design pattern.
A - This type of design pattern comes under creational pattern.
B - Abstract Factory patterns work around a super-factory which creates other factories.
C - In Abstract Factory pattern an interface is responsible for creating a factory of related objects without explicitly specifying their classes.
D - All of the above.

Q 9 - 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.

Q 10 - Can we create a clone of a singleton object?
A - true
B - false

Q 11 - If we serialize a singleton object and deserialize it then the result object will be same.
A - true
B - false

Q 12 - Integer class is an example of Decorator pattern.
A - true
B - false

Q 13 - Runtime class is an example of singleton.
A - true
B - false

Q 14 - Integer.valueOf is an example of Factory pattern.
A - false
B - true

Q 15 - Event handling frameworks like swing, awt use Observer Pattern.
A - false
B - true

Important  Instructions

While submitting answers below in the " Message " Section MAKE SURE you type Question Number and Answer (For Example : 1. A , 2. B , 3.C ) and also mention the part number(For example: part 1, or part 2, or part 3 ) of the questions you are answering.

We will mail you your result in 10 seconds. " Mention Course Name as subject "

Your Name (required)

Your Email (required)

Your Number (required)

Subject

Your Message