Q. Which statement is required to execute a block of code when the condition is false?

  • (A) for
  • (B) if
  • (C) else
  • (D) All of these
πŸ’¬ Discuss
βœ… Correct Answer: (C) else
Explanation: In the if-else block, the if block is executed when condition is True and else block is executed when condition is false.
Explanation by: Kanak Sharma
In the if-else block, the if block is executed when condition is True and else block is executed when condition is false.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
281
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Kanak Sharma
Publisher
πŸ“ˆ
93%
Success Rate