Behavioral Design Patterns

Quiz
•
Computers
•
University
•
Medium
Halyna Melnyk
Used 65+ times
FREE Resource
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
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
Similar Resources on Wayground
20 questions
Kuis 1 Sistem Terdistribusi

Quiz
•
University
25 questions
CSC134_Chapter 4: Secondary Storage

Quiz
•
University
15 questions
Terminology in UE5

Quiz
•
University
20 questions
CCE-III_Artificial Intelligence

Quiz
•
University
15 questions
การออกแบบซอฟต์แวร์ (Software Design)

Quiz
•
University
19 questions
3.7 Data Storage and 3.8 Virtual Storage home

Quiz
•
9th Grade - University
15 questions
OOP in Python

Quiz
•
University
15 questions
IP Addressing

Quiz
•
10th Grade - Professi...
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University