Basic Control Flow
1. Which statement is used in Switch to prevent fall-through?
2. Every switch construct can be replaced by a series of if-else statements.
3. In an if-else construct, curly braces can be ignored for the else part if the block contains only one statement.
4. An if-else construct can be replaced by a set of if constructs.
5. The default scope of the if statement is only the next statement.
6. For every if block there is always a corresponding else block.
7. What will be the output for this code:
8. What will be the output for this code:
9. What will be the output for this code:
10. What will be the output for this code: