Search Header Logo

Assignment No.6

Authored by Rupali Mangrule

Computers

University

Used 9+ times

Assignment No.6
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is correct about Behavioral design patterns.

These design patterns are specifically concerned with communication between objects.

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

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.

None of the above.

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following describes the Command pattern correctly?

In this pattern a class represents functionality of another class.

This pattern creates a chain of receiver objects for a request.

This pattern provides a way to evaluate language grammar or expression

In this pattern a request is wrapped under an object as command and passed to invoker object.

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following describes the Strategy pattern correctly?

In this pattern, a class behavior changes based on its state.

In this pattern, a null object replaces check of NULL object instance.

In this pattern, a class behavior or its algorithm can be changed at run time.

In this pattern, an abstract class exposes defined way(s)/template(s) to execute its methods.

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In the Publish-Subscribe messaging model, the subscribers register themselves in a topic and are notified when

new messages arrive to the topic. Which pattern does most describe this model?

Adapter

Notifier

Observer

State

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A pattern that is intended to provide a means to define a family of algorithms and encapsulate each one as an

object for interchangeable use:

Strategy Pattern

Abstract Factory Pattern

Visitor Pattern

State Pattern

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which type of design patterns are specifically concerned with communication between objects?

Creational Design Patterns

Structural Design Patterns

Behavioral Design Pattern

J2EE Design Patterns

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In below list which is not a Behavioral Design Pattern?

Command

Observer

Proxy

Strategy

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?