Chapter 4 Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

control statements

A

Statements that are used to control the flow of execution of other statements, usually by deciding whether they are executed or not. (110)

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

counter

A

A variable used to count the number of times some process is completed. (117)

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

count-controlled loop

A

A loop that stops when a counter variable reaches a specified limit. (117)

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

entry-controlled loop

A

A loop whose continuation condition is tested before the body of the loop is executed. (123)

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

flowchart

A

A diagram that displays the flow of control of a program. (113)

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

infinite loop

A

A loop in which the controlling condition is not changed in such a manner to allow the loop to terminate. (135)

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

iteration

A

The repetition of a process on a computer. (117)

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

off-by-one error

A

Usually seen with loops, this error shows up as a result that is one less or one greater than the expected value. (134)

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

overloading

A

The process of using the same name for two different methods. (107)

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

random number generator

A

A program that returns numbers chosen at random from a predesignated interval. (108)

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

sentinel

A

A special value that indicates the end of a set of data or a process. (125)

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

task-controlled loop

A

A type of loop that terminates when it is finished performing some task. (118)

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