Single Choice Moderate

QWhich is used for text of multiple characters?

ID: #25823 MCQ Quiz - Class 8 - Programming 6 views
Question Info
#25823Q ID
ModerateDifficulty
MCQ Quiz - Class 8 - ProgrammingTopic

Choose the Best Option

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

  • A String
  • B int
  • C char
  • D double
Correct Answer

Explanation

Correct Answer Explanation:

String stores text with multiple characters, like 'Hello World'. In Java, String is a class.

Why the other options are incorrect:

  • Option B: int is for integers only.
  • Option C: char stores only ONE character.
  • Option D: double is for decimal numbers.

Share This Question

Challenge a friend or share with your study group.