Single Choice Moderate

QSystem.out.print() differs from println() because:

ID: #25850 MCQ Quiz - Class 8 - Programming 5 views
Question Info
#25850Q ID
ModerateDifficulty
MCQ Quiz - Class 8 - ProgrammingTopic

Choose the Best Option

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

  • A It doesn't add a newline
  • B It reads input
  • C It clears console
  • D None
Correct Answer

Explanation

Correct Answer Explanation:

print() outputs text WITHOUT adding a newline at the end. This lets you continue printing on the same line.

Why the other options are incorrect:

  • Option B: print() is for output, not input.
  • Option C: print() doesn't clear the console.
  • Option D: print() and println() do have a difference.

Share This Question

Challenge a friend or share with your study group.