9. The syntax of the switch statement is: switch () { case value1: // code to be executed for value1 break; case value2: // code to be executed for value2 break; default: // code to be executed if none of the cases match }

4. The syntax of an if statement is: if : statement1 statement2

10. The if statements are used when an if statement is present inside another if statement.

1. In programming, refers to the order in which statements are executed.

2. statements are used to control the flow of a program based on certain conditions.

6. The syntax of an if-else statement is: if : statement1 statement2 else: statement3 statement4