Single Choice Moderate

QScanner is imported from:

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

Choose the Best Option

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

  • A java.util
  • B java.io
  • C java.lang
  • D java.math
Correct Answer

Explanation

Correct Answer Explanation:

Scanner is part of java.util package. You import it with: import java.util.Scanner;

Why the other options are incorrect:

  • Option B: java.io has other input/output classes, but not Scanner.
  • Option C: java.lang has core classes like String and System (auto-imported).
  • Option D: java.math is for mathematical operations.

Share This Question

Challenge a friend or share with your study group.