MCQ Single Best Answer Easy

QWhich of the following decision-making statements is used to execute one block of code if the condition is true and another block of code if the condition is false?

ID: #5911 Decision Making of C Language 142 views
Question Info
#5911Q ID
EasyDifficulty
Decision Making of C LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A if statement
  • B if-else statement
  • C switch statement
  • D while loop
Correct Answer: Option B

Explanation

Answer: b) if-else statement

Explanation: The if-else statement is used to execute one block of code if the condition is true and another block of code if the condition is false.

Share This Question

Challenge a friend or share with your study group.