Answer:
Whether a traffic light is green, yellow or red
Explanation:
Boolean variables are variables that can either take one out of two options at any given instance.
Analyzing the given options
1. Elevator:
Possible Directions = Up or Down; That's two possible values
But it can only move in one direction at a given instance.
<em>This can be represented using Boolean</em>
2. Traffic Light:
Possible Lights = Green, Yellow or Red
That's three options.
<em>This can be represented using Boolean</em>
<em />
The last two options can be represented using Boolean because they have just two possible values
<em>Hence, option (B) answers the question</em>