Computer Science · C Programming
Which of the following statements is NOT true about the if-else statement in C?
- 1The default scope of if and else statements is only the next statement. So, to execute multiple statements, they must be written inside a pair of braces.
- 2An if need not always be associated with an else. However, an else must always be associated with an if.
- 3If a condition is true, it is replaced by 1, if it is false, it is replaced by 0.
- 4An if-else statement cannot be nested inside another if-else statement.✓
Correct answer
An if-else statement cannot be nested inside another if-else statement.
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length Computer Science mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on C Programming?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · C Programming