Because of the or keyword in the if statement, only one of the conditions has to be true.
The if statement is true if numA equals 2 or numB equals 2, and numA does equal 2, therefore, the output is yes.
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>
D. Rise of NASA.Hope I helped.
Most of the HTML tags can also have attributes, which are extra bits of information
its answer in binary is 1000 and in decimal is 8.