Java Ch. 5
Card Set Information
Java Ch. 5
java chapter increment decrement operators
Java Ch. 5
The mode which the operator is placed after the variable is called:
The mode which the operator is placed before the variable is called:
A control structure that causes a statement or group of statements to repeat is called:
loop has 2 important parts:
1 - a boolean expression that is tested for a true or false value.
2 - a statement or block of statements that is repeated as long as the expression is true.
consists of of the key word
a boolean expression enclosed in parentheses.
A repetition of a loop is known as:
The loop that continues to repeat until the program is interrupted is called:
an infinite loop.
The process of inspecting data given to a program by the user and determining if it is valid is called:
The read operation that takes place just before the loop is called:
a priming read.
loop uses a posttest loop which means:
its boolean expression is tested after each iteration.
The loop that is ideal for performing a known number of iterations is:
The loop that executes as long as a particular condition exists is
A loop that repeats a specific number of times is known as:
In Java, the loop that is ideal for writing count-controlled loops is:
The first line of the
loop is known as:
The running total is a sum of numbers that accumulates with each iteration of a loop.
The variable used to keep the running total is called:
The name of the value that signals when the end of a list of a values has been reached is called:
A variable intialized with a starting string then accumulates a sum of numbers by having the numbers added to it is called:
A special value that cannot be mistaken as a member of the list and signals that there are no more values to be entered is:
the sentinal value.
A loop that is inside another loop is called:
a nested loop.
The statement that causes a loop to terminate early is:
The statement that causes a loop to stop its current iteration and begin the next one is:
What will the
statement in the following program segment display?
int x = 5;
In the expression
, the ++ operator is in what mode?
This is the variable that controls the number of iterations performed by a loop.
loop control variable
loop is this type of loop.
This type of loop has no way of ending and repeats until the program is interrupted.
This expression is executed by the
loop only once, regardless of the number of iterations.
This is a special value that signals when there are no more items from a list of items to be processsed. This value cannot be mistaken as an item from the list.
To open a file for reading, you use the following classes.
This class allows you to use the
methods to write data to a file.
loop is a pretest loop (true or false).
loop is a posttest loop (true or false).
One limitation of the
loop is that only one variable may be initialized in the initialization expression (true or false).