Chapter 4
No description yet. This curated deck is ready for daily study.
Card preview (12)
control statements
Statements that are used to control the flow of execution of other statements, usually by deciding whether they are executed or not. (110)
counter
A variable used to count the number of times some process is completed. (117)
count-controlled loop
A loop that stops when a counter variable reaches a specified limit. (117)
entry-controlled loop
A loop whose continuation condition is tested before the body of the loop is executed. (123)
flowchart
A diagram that displays the flow of control of a program. (113)
infinite loop
A loop in which the controlling condition is not changed in such a manner to allow the loop to terminate. (135)
iteration
The repetition of a process on a computer. (117)
off-by-one error
Usually seen with loops, this error shows up as a result that is one less or one greater than the expected value. (134)
overloading
The process of using the same name for two different methods. (107)
random number generator
A program that returns numbers chosen at random from a predesignated interval. (108)
sentinel
A special value that indicates the end of a set of data or a process. (125)
task-controlled loop
A type of loop that terminates when it is finished performing some task. (118)