Glossary of Terms

Sequencing & Selection (If & switch statements)

Keyword Definition
Boolean A data type that can have two possible values: true or false.
Condition A boolean expression that determines the execution path of a program.
Default Case A case in a switch statement that is executed when none of the other cases match.
Execution Path The sequence of statements executed based on the condition in an if or switch statement.
If Statement A control structure that executes a block of code if a certain condition is true.
Nested If Statement An if statement that is inside another if statement.
Selection The process of making a decision based on certain conditions.
Sequencing The order in which statements are executed in a program.
Switch Statement A control structure that selects one of many code blocks to be executed.