Single Choice Moderate

QNested if is:

ID: #25968 MCQ Quiz - Class 8 - Decision Control Structure 3 views
Question Info
#25968Q ID
ModerateDifficulty
MCQ Quiz - Class 8 - Decision Control StructureTopic

Choose the Best Option

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

  • A if inside if
  • B Two ifs same line
  • C if inside loop
  • D None
Correct Answer

Explanation

Correct Answer Explanation:

Nested if means one if statement placed INSIDE another if statement (typically inside its body).

Why the other options are incorrect:

  • Option B: Two ifs on same line don't create nesting.
  • Option C: if inside a loop is separate concept.
  • Option D: Nested if is a real construct.

Share This Question

Challenge a friend or share with your study group.