Chapter 4 Flashcards Preview

AP Computer Science > Chapter 4 > Flashcards

Flashcards in Chapter 4 Deck (12)
Loading 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)

2
Q

counter

A

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

3
Q

count-controlled loop

A

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

4
Q

entry-controlled loop

A

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

5
Q

flowchart

A

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

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)

7
Q

iteration

A

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

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)

9
Q

overloading

A

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

10
Q

random number generator

A

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

11
Q

sentinel

A

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

12
Q

task-controlled loop

A

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