wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Midterm Examination 1.1 (Software Design)

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What are Design Patterns?

a)

B. A reusable solution to a commonly occurring problem in software design

b)

A. A finished design that can be transformed directly into code

c)

C. A description/template for solving a problem that can be used in many different situations

d)

D. A method for modifying a family of algorithms

2.

What do Creational Patterns deal with?

a)

B. Object creation mechanisms

b)

A. Object deletion mechanisms

c)

C. Object modification mechanisms

d)

D. Object duplication mechanisms

3.

What does the Factory Method design pattern do?

a)

A. Deletes objects without exposing the instantiation logic to the client

b)

B. Creates objects without exposing the instantiation logic to the client

c)

C. Modifies objects without exposing the instantiation logic to the client

d)

D. Duplicates objects without exposing the instantiation logic to the client

4.

What does the Prototype design pattern allow you to do?

a)

A. Delete an existing object to make additional copies

b)

B. Create new things based on existing structures

c)

D. Duplicate an existing object without creating copies

d)

C. Modify an existing object without creating copies

5.

What does the Singleton design pattern ensure?

a)

D. Objects are created with global access

b)

B. Only one instance of a class is created

c)

A. Multiple instances of a class are created

d)

C. Objects are created without control

6.

What do Structural Patterns emphasize on?

a)

A. Creating an accurate and efficient software system

b)

B. Deleting connections between classes and objects

c)

C. Modifying the code structure

d)

D. Assisting in the development of components

7.

What does the Adapter/Bridge design pattern do?

a)

D. Composes objects into tree structures

b)

C. Converts the interface of one class into another interface

c)

B. Allows incompatible objects to collaborate

d)

A. Allows compatible objects to collaborate

8.

What does the Composite design pattern allow you to do?

a)

A. Compose objects into tree structures

b)

D. Support vast quantities of objects by keeping memory consumption low

c)

B. Make additional functions without disrupting the original class

d)

C. Provide a simplified interface to a larger body of code

9.

What does the Observer design pattern establish?

a)

D. A way to centralize communication between multiple objects

b)

C. A method for modifying a family of algorithms

c)

B. A way to pass requests along a chain of handlers

d)

A. A means for objects to observe and react to changes in other objects

10.

What does the State design pattern enable an object to do?

a)

D. Provide access to a whole object's components in a sequential manner

b)

C. Customize users with queues, requests, and functions

c)

B. Pass requests along a chain of handlers

d)

A. Change how it behaves when its internal condition changes

11.

What does the Command design pattern allow you to do?

a)

B. Pass requests along a chain of handlers

b)

A. Change how an object behaves when its internal condition changes

c)

D. Provide access to a whole object's components in a sequential manner

d)

C. Customize users with queues, requests, and functions

12.

What does the Memento design pattern allow you to do?

a)

B. Pass requests along a chain of handlers

b)

D. Provide access to a whole object's components in a sequential manner

c)

C. Save and restore an object's previous state

d)

A. Change how an object behaves when its internal condition changes

13.

What does the Strategy design pattern do?

a)

A. Change how an object behaves when its internal condition changes

b)

B. Modify a family of algorithms

c)

C. Save and restore an object's previous state

d)

D. Provide access to a whole object's components in a sequential manner

14.

What does the Template method design pattern do?

a)

A. Change how an object behaves when its internal condition changes

b)

B. Modify a family of algorithms

c)

C. Define the overall algorithm structure in the class

d)

D. Provide access to a whole object's components in a sequential manner

15.

What does the Visitor design pattern allow you to do?

a)

B. Modify a family of algorithms

b)

D. Provide access to a whole object's components in a sequential manner

c)

A. Separate algorithms from the objects on which they operate

d)

C. Save and restore an object's previous state