State True or False:
1. The if-else is a looping control structure.
2. The break statement should be written with every case.
3. To check multiple conditions, nested control structure can be used.
4. Default is the last statement of switch case.
5. Statements enclosed within a pair of braces are called the Compound statements.
6. C provides three types of Conditional control structure.
7. The if block executes only if the condition is false.
Answers
Answered by
10
Answer:
true
false
true
false
true
false
false
Answered by
1
The answers to all statements are:
1) False
2) False
3) True
4) False
5) True
6) False
7) False
- Looping control structures are all types of loops. go to, break, and continue are loop control statements with no work in the if-else statements. Thus, the first statement is surely a false statement.
- A break statement is not needed exclusively in each case of for loop. It is this reason why the second statement is a false one.
- A nested control structure helps in checking multiple conditions at a time. So the third statement is true.
- No, the default need not be at the end of the switch case usually. So the fourth statement is false.
- Those statements which are within curly braces {} are referred to as compound statements. Thus, the fifth statement is a true one.
- Conditional control structures are of two types: if and if-else. So the sixth statement is a false statement.
- The if block executes only if the condition is true. Otherwise, it will exit the block. Hence, the seventh statement is a false one.
#SPJ3
Similar questions