CS603P Weekly Lab Quiz 7 Fall 2024
Here are all the MCQs with their correct answers:
Question 1:
Which one of the following statement will be true for state pattern?
Correct Answer:
It allows an object to change its behaviour when it’s internal state changes.
Question 2:
Which one of the following provides implementation for methods described in state?
Correct Answer:
Concrete State
Question 3:
For the purpose of interaction, _____________ can be used to show an interface to the client.
Correct Answer:
Context
Question 4:
______________ handle request from the ______________.
Correct Answer:
Context, concrete state
Question 5:
To show the present condition of the object _____________ can be used, because it sustains address to concrete state object.
Correct Answer:
Context