1Flow of control
The order in which statements are executed in a program
2Flow control
Control of which instructions are executed in a program
3Selection statements
Statements that allow programs to make decisions at runtime
4Condition
A Boolean expression used in decision making
5Boolean expression
An expression that evaluates to true or false
6If statement
A statement that executes a block of code if a condition is true
7If-else statement
A statement that executes one block if true and another if false
8Else-if statement
A statement that tests multiple conditions
9Nested if statement
An if statement inside another if statement
10Switch statement
A control flow statement that executes code based on a variable value
11Break statement
A statement that terminates execution of a loop or switch
12Default case
A case executed when no match is found in switch
13Loop
A statement used when an action must be repeated
14Loop body
The statement or group of statements repeated in a loop
15Iteration
Each repetition of the loop body
16For loop
A repetition statement with initialization, condition, and increment/decrement
17While loop
A repetition statement that executes while a condition is true
18Do-while loop
A repetition statement that executes the body first, then checks condition
19Counter-controlled iteration
Iteration using a counter to control the number of repetitions
20Sentinel-controlled iteration
Iteration controlled by a sentinel value
21Sentinel value
A value used to indicate the end of input
22Input validation
Checking input values to ensure they are correct
23Infinite loop
A loop whose condition never becomes false
24Control variable
A variable used to control the number of loop iterations
25Condition
An expression evaluated as true or false
26True value
Any non-zero value
28Program control constructs
Statements that determine the flow of execution in a program
29Sequential flow
Statements executed one after another in order
30Multi-way branch statement
A statement that compares a variable to multiple values
31Loop
A statement used when an action must be repeated
32Iteration
Each repetition of the loop body
33Loop body
The statement or group of statements repeated in a loop
34Definite iteration
Iteration where the number of repetitions is known before execution
35Indefinite iteration
Iteration where the number of repetitions is not known before execution
36Loop-continuation condition
The Boolean expression that controls loop execution
37Break statement
A statement that causes immediate exit from a loop or switch
38Continue statement
A statement that skips remaining statements and continues with next iteration
39Input validation
Testing input to ensure it is within a valid range
40Range checking
Ensuring input values fall within a specified range