Single Choice Moderate

QSystem.out.println() is used for:

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

Choose the Best Option

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

  • A Output with newline
  • B Input
  • C Deleting
  • D Compiling
Correct Answer

Explanation

Correct Answer Explanation:

System.out.println() prints text to the console and adds a newline character at the end (println = 'print line').

Why the other options are incorrect:

  • Option B: Input is done with Scanner, not println.
  • Option C: Deleting isn't done by println.
  • Option D: Compiling is done by javac, not println.

Share This Question

Challenge a friend or share with your study group.