1/18
Flashcards covering key vocabulary and concepts from the lecture on control statements in programming.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
Control Statements
Instructions for controlling the flow of the software program.
Sequence Structures
Control structures that execute statements in a linear sequence.
Selection Structures
Control structures that provide decision-making capabilities.
Loop Structures
Control structures used to repeat a series of actions.
if Statement
A selection statement that executes when the condition is evaluated as true.
else Statement
An optional statement that executes when the condition in the if statement is false.
relational operator
Operators that compare two values, such as
logical operator
Operators that combine boolean expressions, such as && (AND), || (OR), ! (NOT).
Precedence
The order in which operators are evaluated in expressions.
Nested If Statement
An if statement placed inside another if statement, used for more complex conditions.
else-if Construct
Used to test multiple conditions in a sequence after an initial if statement.
Switch Statement
A control structure that allows testing a variable against multiple cases.
Conditional Operator
A shorthand for an if-else statement that returns one of two values based on a condition.
Loop Control Statements
Statements that can alter the flow of a loop, including break, continue, and goto.
Break Statement
Terminates a loop or switch statement and transfers control to the next statement.
Continue Statement
Skips the current iteration of a loop and moves on to the next iteration.
Goto Statement
Causes an unconditional jump to a labeled statement.
Counting Loop
A loop that repeats a set number of times.
Conditional Loop
A loop that continues until a certain condition is no longer met.