Search Header Logo

Design Patterns Quiz

Authored by ushapreethi p

Other

University

Used 1+ times

Design Patterns Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which among the following is not the part of "How to Use a Design Pattern"

Read the pattern once through for an overview

Go back and study the Structure, Participants, and Collaborations sections

Examine a cause of redesign.

Look at the Sample Code section to see a concrete example of the pattern in code

Choose names for pattern participants that are meaningful in the application

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A _________________indicates a class that instantiates objects of another class.

plain arrowhead line

dashed arrowhead line

vertical line and a triangle

dashed bubblehead line

3.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Which among the following is/are false.

Object composition is an alternative to class inheritance

Object composition style of reuse is called white-box reuse

Object composition new functionality is obtained by assembling or composing objects to get more complex functionality.

Object composition requires that the objects being composed have well-defined interfaces.

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Mixin classes require ______________ inheritance to provide an optional interface or functionality to other classes.

Single

Multilevel

Multiple

Hybrid

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The operations that an abstract class declares but doesn't implement are called

Concrete operations

Abstract operations

Declared operations

Defined operations

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Every operation declared by an object specifies the operation's name, the objects it takes as parameters, and the operation's return value. This is known as the operation's

Instance

Interface

Signature

Pattern

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A design pattern used, when a system should be configured with one of multiple families of products is

Prototype

Abstract factory

Factory method

Builder

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?