MCQ Single Best Answer Easy

QWhich of the following decision-making statements is used to test a variable against a series of constant values and execute a block of code based on the value of the variable?

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

Explanation

Answer: c) switch statement

Explanation: The switch statement is used to test a variable against a series of constant values and execute a block of code based on the value of the variable.

Share This Question

Challenge a friend or share with your study group.