Single Choice Moderate

QMissing semicolon leads to:

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

Choose the Best Option

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

  • A Compile error
  • B Runtime only
  • C Nothing
  • D Warning
Correct Answer

Explanation

Correct Answer Explanation:

Java requires semicolons to end statements. Missing one causes a compile-time error, and the code won't build.

Why the other options are incorrect:

  • Option B: The error occurs at compile time, before runtime.
  • Option C: It's not ignored — the code won't compile.
  • Option D: It's a hard error, not just a warning.

Share This Question

Challenge a friend or share with your study group.