click below
click below
Normal Size Small Size show me how
Branches
| Question | Answer |
|---|---|
| The ___ are == (equality), < (less than), <= (less than or equal to), > (greater than), >= (greater than or equal to), and != (not equal to) | Rational operators |
| Including a space between the relational operators ==, <=, >=, and != creates a ___ error | Syntax |
| Logical expressions evaluate to 1 (or a nonzero value) or 0. The logical value 1 (or any nonzero value) is treated as ___; the logical value 0 is treated as ___ | True false |
| In C++, ___ variables can be used to store the value of a logical expression. | Int |
| In C++, ___ variables can be used to store the value of a logical expression | Bool |
| In C++, the logical ___ are ! (not), && (and), and || (or) | Operators |
| Including a ___ before the statement in a one-way selection creates a semantic error. In this case, the action of the if statement is empty | Semicolon |
| A sequence of statements enclosed between ___, { and }, is called a compound statement or block of statements | Curly braces |
| Using the ___ operator in place of the equality operator creates a semantic error. This can cause serious errors in the program | Assignment |
| The ___ structure is used to handle multiway selection | Switch |
| The execution of a ___ statement in a switch statement immediately exits the switch structure | Break |