हिंदी

Which of the following functions is used to remove leading and trailing white spaces from the string? - Computer Applications

Advertisements
Advertisements

प्रश्न

Which of the following functions is used to remove leading and trailing white spaces from the string? 

विकल्प

  • trim()

  • trail()

  • truncate()

  • slice()

MCQ

उत्तर

trim()

Explanation:

Many computer languages, including Java, employ the trim() function to eliminate leading and trailing white spaces from strings. It just removes the first and last spaces from the string.

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 4: String Handling - EXERCISES [पृष्ठ २८६]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 4 String Handling
EXERCISES | Q I. 5. | पृष्ठ २८६
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×