Basic Loops
Programming loops
Data Entry
Simple Arrays
Programming with Arrays
100
One set of instructions that operates on multiple, separate sets of data
What is a loop
100
A mistake programmers often make before entering a loop
What is neglecting to initialize the loop control variable
100
Acronym that means that if your input is incorrect, your output is worthless
What is GIGO
100
A series of values stored at sequential addresses in computer memory
What is an array
100
A variable that you set to indicate whether some event has occurred
What is a flag
200
To increase the value stored in a loop control variable
What is increment
200
A loop that provides three actions in one compact statement
What is a for loop
200
To override incorrectly entered data by setting the variable to a specific value
What is forcing a data item
200
Another name for a subscript
What is an index
200
When an array subscript is not within the range of acceptable subscripts
What is out of bounds
300
To decrease a variable’s value
What is decrement
300
A loop where the body might never execute because the question controlling the loop might be false the first time it is asked
What is a pretest loop
300
A value such as Y or N that stops a loop
What is a sentinel value
300
A sequence of integers, usually starting with 0
What are array aubscripts
300
When you search through a list from one end to the other
What is a linear search
400
Any numeric variable you use to count the number of times an event has occurred
What is a counter
400
The technique with which you try to prepare for all possible errors before they occur
What is defensive programming
400
An empty module that acts as a placeholder
What is a stub
400
The highest subscript for an array that holds all the names of the days of the week
What is 6
400
When you start looking in the middle of a sorted list, and then determine whether to continue higher or lower
What is a binary search
500
A loop within another loop
What is a nested loop
500
A loop that may execute a different number of times each time the program executes
What is an indefinite loop
500
A variable that you use to gather values
What is an accumulator
500
Providing array values
What is populating the array
500
Two arrays where each element in one array is associated with the element in the same relative position in the other array
What are parallel arrays