Behavioral Design Patterns

Behavioral Design Patterns

University

20 Qs

quiz-placeholder

Similar activities

Data Mining

Data Mining

University

15 Qs

CSE493_QUIZ 1

CSE493_QUIZ 1

University

20 Qs

ISPFL8 Endterm Quiz #3

ISPFL8 Endterm Quiz #3

University

20 Qs

Unit 2 - AI by Prof. R. Rajkumar

Unit 2 - AI by Prof. R. Rajkumar

University

15 Qs

Post Test Week 3

Post Test Week 3

University

15 Qs

IoT Design Methodology

IoT Design Methodology

University - Professional Development

15 Qs

OS-Process scheduling

OS-Process scheduling

University

15 Qs

Quiz on neural network unit II

Quiz on neural network unit II

University

16 Qs

Behavioral Design Patterns

Behavioral Design Patterns

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Halyna Melnyk

Used 66+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

__________ is a behavioral design pattern that lets an object alter its behavior when its internal state changes. It appears as if the object changed its class.

State

Command

Mediator

Observer

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What concept is the State pattern closely related to?

Finite Machine

State Machine

Finite-Stable Machine

Finite-State Machine

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The main idea of the State Pattern is that, at any given moment, there’s a ________ number of states which a program can be in.

infinit

finit

finalized

finished

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What kind of operators are mostly implemented in the State machine?

conditional

loop

assignment

all of the mentioned

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What pattern can we use when having an object that behaves differently depending on its current state, the number of states is enormous, and the state-specific code changes frequently?

Command

Mediator

State

Observer

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Use this pattern when you have a class polluted with massive conditionals that alter how the class behaves according to the current values of the class’s fields. What pattern?

Observer

Mediator

State

Strategy

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What pattern you can use when having a lot of duplicate code across similar states and transitions of a condition-based state machine.

Observer

Mediator

State

Command

Create a free account and access millions of resources

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?