Single Choice Easy

QWhich of the following decision-making statements is used to execute a block of code only if the condition is true?

ID: #5910 Decision Making of C Language 158 views
Question Info
#5910Q 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

Explanation

Answer: a) if statement

Explanation: The if statement is used to execute a block of code only if the condition is true. If the condition is false, then the block of code is skipped.

Share This Question

Challenge a friend or share with your study group.