Chapter 23: The String Section (String Manipulation)
TRUE/FALSE
1. Applications rarely need to manipulate (process) string data.
2. If an application expects the user to enter a seven-digit phone number or a five-digit ZIP code, the
application’s code should verify that the user entered the required number of characters.
3. The StringLength property stores an integer that represents the number of characters contained in a
String.
4. The Trim method removes characters from the original string.
5. The Trim method returns a string that excludes any leading or trailing spaces.
6. Visual Basic provides the Replace method for replacing a sequence of characters in a string with
another sequence of characters.
7. Using the Insert method to insert a value beginning with the fifth character in a string, you use a
starting index of 5.
8. When processing the Insert method, the computer makes a temporary copy of the string in memory,
and then inserts the characters in the copy only.
9. The first character in a string has an index of 1.
10. A possible use for the Index method includes determining whether the area code “(312)” appears in a
phone number.
11. The startIndex argument is not optional in the IndexOf method’s syntax.