Computer Science PreLabWriting Assignments Lab 4 and Lab 5
sentinel
A _ value is used to indicate the end of a list of values. It can be used to control a while loop.
infinite or nonterminating or endless
A block of code that repeats forever is called _.
nested
A loop within a loop is called a _.
do-while
An event controlled loop that is always executed at least once is the _.
while
An event controlled loop that is not guaranteed to execute at least once is the _.
char
C++ allows the programmer to compare numeric values using_.
&&
C++ uses the _ symbol to represent the AND operator.
||
C++ uses the _ symbol to represent the OR operator.
inclusive
In C++ is the meaning of the OR logical operator inclusive or exclusive?
inner, outer
In a nested loop the _ loop goes through all of its iterations for each iteration of the _ loop. (inner or outer)
second, first
In the conditional if (++number < 9), the comparison number < 9 is made __ and the number is incremented _. (first or second)
first, second
In the conditional if (number ++ < 9), the comparison number < 9 is made _ and the number is incremented _.
default
In the switch statement the _ branch is followed if none of the case expressions match the given switch expression.
put it in parantheses
It is good programming practice to do what to the operand after the NOT operator? _
fstream
List the pre-processor directive that is used to allow data and output files to be used in the program.
==
The C++ symbol for equality is _.
conditional
The switch statement and if statements are examples of _ statements.
integer
The switch statement uses the value of an _ expression.
0 and 1
The two possible values for the relational expression are _ and _.
counter
To keep track of the number of times a particular loop is repeated, one can use a _.
for
To write out the first 12 positive integers and their cubes, one should use a _ loop.