Write out your answers for these questions on a separate piece of paper.
if statement is used for ____________ and comes in three
forms: ____________, ____________, and ____________.
Question #2: A(n) ____________ is treated by the compiler as a single statement, even though is consists of several statements.
In addition to the
if statement, C++ also provides the
blank statement for the same purpose.
The expression in a
switch statement must be ____________.
Only ____________ tests are allowed for the
case clauses of a
j are both
ints set to some
Write a boolean expression that evaluates to
true if and
i is less than
Using the boolean expression from the previous question, write an
if statement that prints "Too small!" when
i is less
Adding to the previous question, write a new
that also prints "Too big!" when
i is not less
Adding to the previous question, write yet another new
statement that prints "Just right." (not "Too big!") when
is equal to
Why can't you turn any of these
if statements into