LESSON 4 Flashcards

(34 cards)

1
Q

which are widely used in Java
programming, are a sequence of characters. In the Java programming language, __are objects. This section describes using the__ class to create and manipulate __. It also compares the__ and __Builder classes.

A

Strings

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

the process of continually incrementing a variable to keep track of the number of occurrences of some event.

A

Counting

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Reducing the value of a variable by 1

A

Decrementing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

a loop that executes a specific number of times; also called a counted loop.

A

Definite loop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

alters the value of the operand on the left by dividing the operand on the right into it.

A

Divide and assign operator (/=)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

executes a loop body at least one time; it checks the loop control variable at the bottom of the loop after one repetition has occurred.

A

do…while loop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

one that performs no actions other than looping.

A

Do-nothing loop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

a block with no statements in it.

A

Empty body

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

an indefinite loop.

A

Event-controlled loop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

a special loop that can be used when a definite number of loop iterations is required.

A

for loop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Adding 1 to the value of a variable.

A

Incrementing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

One in which the final number of loops is unknown.

A

Indefinite loop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

A loop that never ends.

A

Infinite loop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Contained entirely within another loop.

A

Inner loop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

one loop execution.

A

Iteration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

The block of statements that executes when the Boolean expression that controls the loop is true.

17
Q

a variablewhose value determines whether loop execution continues.

A

Loop control variable

18
Q

The technique of combining two loops into one.

19
Q

A structure that allows repeated
execution of a block of statements.

20
Q

Alters the value of the operand on the left by multiplying the operand on the right by it.

A

Multiply and assign operator (*=)

21
Q

Contains another loop.

22
Q

Evaluates a variable and then adds 1 to it.

23
Q

another name for Postfix ++.

A

Postfix increment operator

24
Q

one in which the loop control variable is tested after the loop body executes.

A

Posttest loop

25
adds 1 to a variable and then evaluates it.
Prefix ++
26
subtract 1 from a variable. For example, if b = 4; and c = b--;, 4 is assigned to c, and then after the assignment, b is decreased and takes the value 3. If b = 4; and c = --b;, b is decreased to 3, and 3 is assigned to c.
Prefix and postfix decrement operators
27
another name for Prefix ++.
Prefix increment operator
28
one in which the loop control variable is tested before the loop body executes.
Pretest loop
29
Another name for a priming read.
Priming input
30
The first input statement prior to a loop that will execute subsequent input statements for the same variable.
Priming read
31
Alters the value of the operand on the left by assigning the remainder when the left operand is divided by the right operand.
Remainder and assign operator (%=)
32
alters the value of the operand on the left by subtracting the operand on the right from it.
Subtract and assign operator (–=)
33
The process of ensuring that a value falls within a specified range.
Validating data
34
executes a body of statements continually as long as the Boolean expression that controls entry into the loop continues to be true.
while loop