Question #2: In computing, logical expressions are also called ____________ expressions.
Question #3: The ______________ mechanism can be used to terminate execution if a specified condition fails.
Question #4: The
if statement is a
____________ structure and comes in three forms: ____________, ____________,
Question #5: A sequence of statements will be treated by the compiler as a single statement if the statements are enclosed in __________.
Question #6: What two kinds of loops are studied in this lab? ___________ and __________ loops.
Question #7: Which of these loops is best for counting? _____________
Which of these loops executes repeatedly so long as a boolean expression
is true? ______________
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 preceding question, write an
if statement that outputs "Too small!" when
i is less
if statement of the preceding question so that it
also also outputs "Too big!" when
not less than
Assuming that a value has been input for
j, write a
for statement that contains the previous
statement and repeats it for
i ranging from 1 to 10.
Proceed as in the preceding question, but use a
statement instead of a