| A | B |
| Relational operators | allow you to compare numbers |
| zero | When a relational expression is false, it has this value |
| nesting | When an if statement is placed within the conditionally-executed code of another if statement, this is known as: |
| && | The _____ operator represents the logical AND. |
| || | The ______ operator takes an operand and reverses its truth or falsehood |
| Reasonableness | Input values should always be checked for |
| Relational expression | Whereas < is called a relational operator, x < y is called a(n)________________ |
| == | The _____ operator is used in C++ to represent equalityThe _____ operator is used in C++ to represent equality |
| Assignment | In C++ the = operator indicates |
| braces | If you intend to place a block of statements within an if statement, you must use __________ around the block. |
| logical operators | ___________ operators connect two or more relational expresisons into one, or reverse the logic of an expression. |
| ! | The ______ operator performs a logical NOT operation |
| ++ and -- | and _____ are operators that add and subtract one from their operands. |
| pre-test | The while loop is a(n) ____________ loop. |
| at least once | The statements following a while condition may never be executed, whereas the statements in a do-while expression will be executed: |
| update | A for statement contains three expressions: initialization, test, and |
| initialization | In a for statement, the ________ expression is executed only once. |
| variable | You may declare a __________ in the initialization expression of a for loop |
| post-test | The do-while loop is a __________ loop that is ideal in situations where you always want the loop to iterate at least once. |
| nested | A loop that is inside another loop is called: |
| continue | The _________ statement may be used to stop a loop's current iteration and begin the next one. |
| increment | To ___________ a value means to increase it by one |
| prefix | When the increment operator precedes its operand, as in ++num1, the expression is in _______ mode. |
| > | In the statement if (x++ > 10), the _____ operator is used first |
| sentinel | A __________ is a special value that marks the end of a list of values. |
| infinite | The do-while loop is considered a(n) _________ loop |
| for | If you want a user to enter exactly 20 values, which loop would you use? |