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
15 questions
Quantum Computing Quiz

Quiz
•
University
24 questions
Examen rápido 2 - Arquitectura de software

Quiz
•
University
23 questions
Quiz2_TAFL (Session 2023-24)

Quiz
•
University
20 questions
แนวคิดเชิงคำนวณ ม.4/2

Quiz
•
10th Grade - University
20 questions
FRAMING,Bit Stuffing, PPP,HDLC,

Quiz
•
University
25 questions
ASK T1 1.1 Asas Pemikiran Komputasional

Quiz
•
University
20 questions
ASK T1 (Bab 1 - Konsep Asas Pemikiran Komputasional)

Quiz
•
KG - University
24 questions
Swift Property Observers

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University