...

/

Quiz: The State Pattern

Quiz: The State Pattern

Test your knowledge of the State Pattern concepts with this quiz.

We'll cover the following...
Technical Quiz
1.

When should we consider the State pattern? Multi-select

A.

State is useful for more complex state handling when there’s application logic associated with each state.

B.

Conditional logic is perfectly fine for simple scenarios with 2 or 3 possible states.

C.

Always go for the State patterns and avoid conditional logic since each branch adds complexity


1 / 5