Single Choice Moderate

QNested if is used inside:

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

Choose the Best Option

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

  • A Another if or else
  • B Loop only
  • C Function only
  • D None
Correct Answer

Explanation

Correct Answer Explanation:

Nested if is placed inside the body of another if (or else). This allows condition dependencies.

Why the other options are incorrect:

  • Option B: Nesting isn't restricted to loops.
  • Option C: Nesting isn't restricted to functions.
  • Option D: Nesting exists in many contexts.

Share This Question

Challenge a friend or share with your study group.