_______________ method is used to remove space from beginning and end of a string.

_______________ method is used to remove space from beginning and end of a string.
A. Trim
B. Remove
C. Truncate
D. DeleteSpace
 
Answer: A
Explanation: Trim method is used to remove space from beginning and end of a string. The syntax is string.Trim. In the syntax, string can be a String variable, a String named constant, or the Text property of a control. When processing the Trim method, the computer first makes a temporary copy of the string in memory. It then performs the specified removal on the copy only. In other words, the method does not remove any characters from the original string. The method returns a string with the appropriate characters removed.
 

Tìm kiếm

Back
Top