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