Repetition StructureA control construct used in programming to execute a set of actions repeatedly while a specified condition remains true. For example, a while loop repeatedly executes a block of code as long as the loop condition evaluates to true.
Counter-Controlled RepetitionA repetition technique used when the exact number of loop iterations is known in advance. It employs a loop control variable that is initialized, tested, and incremented during each iteration, such as processing exactly 10 student grades.
Sentinel-Controlled RepetitionA repetition technique used when the number of data items is unknown beforehand, utilizing a special input value called a sentinel to signal the end of data entry. For instance, using '-1' to stop a grade-entering loop.
Sentinel ValueA specific dummy or flag value used in sentinel-controlled repetition to indicate that no more data is to be processed. In the class average example, entering '-1' acts as the sentinel to terminate the input loop.
Top-Down, Stepwise RefinementAn algorithmic design methodology where a problem is broken down into manageable phases—typically initialization, processing, and termination—and progressively detailed into executable code.
Nested Control StructuresControl statements placed inside other control statements, such as an if/else selection statement nested inside a while repetition statement to analyze examination results for multiple students.
Assignment OperatorsShorthand operators in C++ that combine an arithmetic operation with assignment, such as 'a += 5', which is equivalent to writing 'a = a + 5'.
Increment OperatorAn operator denoted by '++' used to increase a variable's value by 1, serving as a shorthand alternative to expressions like 'c = c + 1'.
Decrement OperatorAn operator denoted by '--' used to decrease a variable's value by 1, serving as a shorthand alternative to expressions like 'c = c - 1'.
Postincrement OperatorAn increment operation (written as 'c++') where the variable's current value is used in the expression before the variable itself is incremented.
Preincrement OperatorAn increment operation (written as '++c') where the variable is incremented first, and then the new value is used in the surrounding expression.