Exam 23: The String Section String Manipulation

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

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.

Free
(True/False)
4.7/5
(35)
Correct Answer:
Verified

True

The startIndex argument is not optional in the IndexOf method's syntax.

Free
(True/False)
5.0/5
(40)
Correct Answer:
Verified

False

The ____ operator allows you to use pattern-matching characters to determine whether one string is equal to another string.

Free
(Multiple Choice)
4.9/5
(30)
Correct Answer:
Verified

D

When processing the Trim method, the computer first makes a permanent backup copy of the string in memory.

(True/False)
4.9/5
(33)

The syntax for the trim method is ____.

(Multiple Choice)
4.9/5
(31)

Using the Insert method to insert a value beginning with the fifth character in a string, you use a starting index of 5.

(True/False)
5.0/5
(45)

Visual Basic provides the ____ method for accessing any number of characters contained in a string.

(Multiple Choice)
4.9/5
(33)

You insert characters using the ____ method.

(Multiple Choice)
4.8/5
(35)

The first character in a string has an index of 1.

(True/False)
4.8/5
(36)

Visual Basic provides the Replace method for replacing a sequence of characters in a string with another sequence of characters.

(True/False)
4.9/5
(36)

The syntax of the insert method is ____.

(Multiple Choice)
4.7/5
(39)

The Trim method removes characters from the original string.

(True/False)
4.9/5
(34)

The syntax for the substring method is ____.

(Multiple Choice)
4.8/5
(36)

The syntax of the IndexOf method is ____.

(Multiple Choice)
4.9/5
(29)

Applications rarely need to manipulate (process) string data.

(True/False)
4.7/5
(46)

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.

(True/False)
4.8/5
(38)

The syntax of the Replace method is ____.

(Multiple Choice)
4.9/5
(38)

You also can include a range of values in a character list by using a(n) ____ to separate the lowest value in the range from the highest value in the range.

(Multiple Choice)
4.9/5
(39)

The number of characters contained in a string is stored in the string's ____ property.

(Multiple Choice)
4.8/5
(34)

You can use the ____ method to remove any spaces from both the beginning and end of a string.

(Multiple Choice)
4.8/5
(37)
Showing 1 - 20 of 25
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)