ICSE Class 10 Computer Applications Question 7 of 30

Solved 2025 Specimen Paper ICSE Class 10 Computer Applications — Question 7

Back to all questions
7
Question

Question 1(vii)

Which of the following returns a String?

  1. length()
  2. charAt(int)
  3. replace(char, char)
  4. indexOf(String)
Answer

replace(char, char)

Reason — The given methods return:

MethodReturn
Type
length()int
charAt(int)char
replace(char, char)String
indexOf(String)int