ICSE Class 10 Computer Applications Question 16 of 30

Solved Sample Paper 2 — Question 16

Back to all questions
16
Question

Question 1(xvi)

A string function which removes the blank spaces provided in the prefix and suffix of a string.

  1. String.trim()
  2. String.ltrim()
  3. String.rtrim
  4. String.strim
Answer

String.trim()

Reason — String.trim() function removes the blank spaces provided in the prefix and suffix of a string.