ICSE Class 10 Computer Applications Question 6 of 30

Solved 2024 Specimen Paper ICSE Class 10 Computer Applications — Question 6

Back to all questions
6
Question

Question 1(vi)

The method of Scanner class used to accept a double value is:

  1. nextInt()
  2. nextDouble()
  3. next()
  4. nextInteger()
Answer

nextDouble()

Reason — The nextDouble() function reads the next token entered by the user as a double value.