Chapter 12
- What is the difference between
ANDandORoperators?For the expression that contains the
ANDoperator to evaluate to true all conditions must evaluate to true. For the expression that contains theORoperator to evaluate to true only one condition must evaluate to true. - What is the
NOToperator used for?Use to invert the logical expression’s output.
- What is a nested
IFstatement?An
IFstatement inside of anotherIFstatement orCASEstatement. - What’s the difference between
ELSEandELSIFstatements?The
ELSEIFis like an extraIFstatement. TheELSEis a general-purpose conditional branch that will execute when all otherIFandELSEIFstatements evaluate to false. - Can a
CASEstatement use anELSEstatement?Yes.
- Can an
ELSEstatement accept a logical expression?No.
- What is the truth table for an
XORstatement?
|
A |
B |
Output |
...