ICSE Class 10 Computer Applications Question 3 of 30

Solved 2023 Question Paper ICSE Class 10 Computer Applications — Question 3

Back to all questions
3
Question

Question 1(iii)

The Scanner class method used to accept words with space:

  1. next()
  2. nextLine()
  3. Next()
  4. nextString()
Answer

nextLine()

Reason — nextLine() reads the input till the end of line so it can read a full sentence including spaces.