Exam 8: Manipulating Strings

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

Assume that a textbox named PhoneNumberTextBox appears on the form, and contains the phone number 414-555-5555. What value will display for the length of the phone number text box?

Free
(Multiple Choice)
4.7/5
(42)
Correct Answer:
Verified

B

The difference between the Replace and the Mid statement is that the Mid statement will always replace a set of characters with another set of characters whereas the Replace method selectively replaces characters.

Free
(True/False)
4.8/5
(32)
Correct Answer:
Verified

False

Which Visual Basic .NET function is used to determine if the string stateName begins with "North"?

Free
(Multiple Choice)
4.8/5
(31)
Correct Answer:
Verified

C

To remove characters from the left, right, or within a string variable you should use the ____ function.

(Multiple Choice)
4.8/5
(41)

The data for salary is entered with both dollar symbol and space; which instructions will remove the dollar symbol?

(Multiple Choice)
4.8/5
(32)

To substitute the characters contained in a string you use the Replace method.

(True/False)
4.9/5
(35)

What is the result, in stringIn, after the execution of the following code segment in Visual Basic .NET? Dim stringIn as String = "abc1234" Mid(stringIn, 3, 1) = "d"

(Multiple Choice)
4.7/5
(37)

You can use the ____ method to insert characters within a string.

(Multiple Choice)
4.8/5
(45)

Clicking a command on a menu opens an additional menu of options.

(True/False)
4.7/5
(44)

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

(True/False)
4.8/5
(39)

The ____ property of a menu element stores the menu element's caption.

(Multiple Choice)
4.9/5
(37)

The following instruction will remove how many characters from the string? Dim myString as string = "ABCDEFGH" myString = myString.Remove(2, 3)

(Multiple Choice)
4.8/5
(33)

The EndsWith method can check only one character starting on the right side of a string.

(True/False)
4.9/5
(40)

When there are no arguments to the Trim function, nothing is removed from the string variable.

(True/False)
4.9/5
(31)

The purpose of a separator bar is to visually group together the related items on a menu or submenu.

(True/False)
4.7/5
(39)

The ____ method pads the string on the right.

(Multiple Choice)
4.8/5
(35)

If a menu item requires additional information from the user, the Windows standard is to place a(n) ____ at the end of the menu item's caption.

(Multiple Choice)
4.8/5
(34)

Each menu contains a menu title that appears on the menu bar at the top of a Windows form.

(True/False)
4.8/5
(30)

The ____ method is used to remove the "-" characters in a variable called socialSecurity that contains the value "345-00-0000".

(Multiple Choice)
4.8/5
(38)

What is the value returned from the expression stateName.Substring(1,1) when stateName contains "North Dakota"?

(Multiple Choice)
4.7/5
(42)
Showing 1 - 20 of 50
close modal

Filters

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