MCQ Single Best Answer Moderate

QWhich of the following converts "25" to 25.0?

ID: #24164 ICSE Computer Application - Class X - 2025 PYQ 118 views
Question Info
#24164Q ID
ModerateDifficulty
ICSE Computer Application - Class X - 2025 PYQTopic

Choose the Best Option

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

  • A Double.Parsedouble("25")
  • B Double.parse("25")
  • C Double.parseDouble("25")
  • D Double.parseDouble(25)
Correct Answer: Option C

Explanation

(c) Double.parseDouble("25")
Explanation: The parseDouble() method converts a String to a double. The correct syntax is Double.parseDouble("25").

Share This Question

Challenge a friend or share with your study group.