CIS150 C# Ch 3 Repeating Instructions

Ace your homework & exams now with Quizwiz!

sentinel value

an extreme or dummy value used with a sentinel-controlled loop

array

data structure that allows multiple values to be stored under a single identifier

off-by-one error

executing the loop one too many or one too few times

prime the read

input a value before going into the body of the loop

pretest loop

loop where the conditional expression is tested before any of the statements in the body of the loop are performed

event-driven model

repetition is handled in Windows and Web applications using this model; once the program is launched, the interaction between the user and the GUI is handled by responding to events

repetition

structure that enables you to identify and block together one or more statements to be repeated based on a predetermined condition; also called iteration

iteration

structure that enables you to identify and block together one or more statements to be repeated based on a predetermined condition; also called repetition

automatic garbage collection

when a variable is out of scope, its space is automatically released back to the operating system for reuse

empty bodied loop

a loop that has no statements; can be created by placing a semicolon on the end of the conditional expression

loop condition

logical condition to be tested that appears in the conditional expression of a loop

infinite loop

loop that has no provisions for termination

counter-controlled loop

loop that uses a variable simulating a counter to keep track of the number of iterations

indefinite loop

loop used for inputting data when the exact number of values to be entered is not known; when the loop should terminate, an extreme or dummy value is entered

sentinel-controlled loop

loop used for inputting data when the exact number of values to be entered is not known; when the loop should terminate, an extreme or dummy value is entered; also called indefinite loop

state-controlled loop

loop used when the exact number iterations is not known; loops stop when a certain state is reached—value of a variable changed; also called a flag-controlled loop

flag-controlled loop

loop used when the exact number of iterations is not known; loops stop when a certain state is reached—value of a variable changed; also called a state-controlled loop

loop control variable

variable simulating a counter used in a counter-controlled loop to keep track of the number of iterations


Related study sets

Lilley: Chapter 26 Coagulation Modifier Drugs

View Set

Chapter 7: Federal Tax Considerations & Retirement Plans

View Set

Business Communications Semester Review

View Set

INDUSTRIAL REVOLUTION AND IMPERIALISM

View Set

Praxis Practice test #2 Reading and Social Studies

View Set