C++ Flow Control

Last Updated :
Discuss
Comments

Question 1

What is the use of the else if statement in C++?

  • It is used to create infinite loops

  • It allows checking multiple conditions

  • It closes a program

  • It is an invalid syntax

Question 2

Which of the following is NOT a decision-making statement in C++?

  • if

  • switch

  • while

  • else

Question 3

Which operator is used in the ternary conditional operator in C++?

  • ?:

  • ::

  • &&

  • ==

Question 4

What does the switch statement evaluate?

  • A float expression

  • A string expression

  • An integral or enumeration expression

  • A boolean expression

Tags:

There are 4 questions to complete.

Take a part in the ongoing discussion