Single Choice Moderate

QGrading system is a good example of:

ID: #25864 MCQ Quiz - Class 8 - Programming 4 views
Question Info
#25864Q ID
ModerateDifficulty
MCQ Quiz - Class 8 - ProgrammingTopic

Choose the Best Option

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

  • A Else-if ladder
  • B Loop
  • C Function only
  • D None
Correct Answer

Explanation

Correct Answer Explanation:

Grade calculation (>90:A, >80:B, >70:C, etc.) fits perfectly with else-if ladder for handling multiple ranges.

Why the other options are incorrect:

  • Option B: Loops repeat; grading is a decision, not repetition.
  • Option C: Functions organize code; the logic here is decision-making.
  • Option D: It's a classic example of else-if usage.

Share This Question

Challenge a friend or share with your study group.