ENGN132 - Chapter 5 Flashcards
Chapter 5 Key Terms and Theories
What is a Loop?
A control structure that repeats a group of steps in a program.
Define Loop Body
The statements that are repeated in the Loop
Define Counter-Controlled Loop/Counting Loop
A loop whose required number of iterations can be determined before loop execution begins.
Define Loop Repetition Condition
The condition that controls the number of times the loop repeats
What is a Loop Control Variable
A variable whose value controls the loop repetition
What is an Infinite Loop
A loop that executes forever
What is an Accumulator
A variable used to store a value being computes in increments during the execution of a loop
State the uses of the FOR statement
- Initialization of the Loop Control Variable
- Test of the loop repetition condition
- Change/Update the loop control variable
What is a Side Effect?
A change in the value of a variable as a result of carrying out an operation.
What is a Flag?
A type int variable used to represent whether or not a certain event has occurred
Define Root
Zero of a function - A function argument value that causes the function result to be zero
Define a Loop Boundary
Initial and Final values of the loop control variable
Define Single Buffering
The default case in which only one buffer is allocated
Define a Buffer
An area of memory where data to be displayed or printed is temporarily stored
Define Double Buffering
A technique used in graphics programming to reduce display flicker by allocating two buffers: the second buffer is filled while the contents of the first buffer is being displayed and then the roles of each buffer are reversed.