Chapter 12
- What is the difference between
AND
andOR
operators?For the expression that contains the
AND
operator to evaluate to true all conditions must evaluate to true. For the expression that contains theOR
operator to evaluate to true only one condition must evaluate to true. - What is the
NOT
operator used for?Use to invert the logical expression’s output.
- What is a nested
IF
statement?An
IF
statement inside of anotherIF
statement orCASE
statement. - What’s the difference between
ELSE
andELSIF
statements?The
ELSEIF
is like an extraIF
statement. TheELSE
is a general-purpose conditional branch that will execute when all otherIF
andELSEIF
statements evaluate to false. - Can a
CASE
statement use anELSE
statement?Yes.
- Can an
ELSE
statement accept a logical expression?No.
- What is the truth table for an
XOR
statement?
A |
B |
Output |
...