Exam 8: String Manipulation

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

Describe four of the six menu standards that should be followed when including a menu in an application.

(Essay)
4.9/5
(37)

How many characters will be removed from the string below? Dim myString as string = "ABCDEFGH" MyString = myString.Remove(2, 3)

(Multiple Choice)
4.8/5
(26)

The method that removes characters from only the right end of a string is the ____ method.

(Multiple Choice)
4.8/5
(45)

Write the Visual Basic statements needed to format decNetPay with two decimal places, pad the formatted variable with asterisks until its length is 12, and then insert a dollar sign ($) as the first character. The result is assigned to the strNetPayFormat variable.

(Essay)
4.9/5
(35)

The ____ operator evaluates to True when the string matches the pattern; otherwise, it evaluates to False.

(Multiple Choice)
4.7/5
(38)

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

(Multiple Choice)
4.8/5
(34)

Write the Visual Basic statement to assign the number of characters in the txtSSN control's Text property to the intSSNNumChar variable.

(Essay)
4.9/5
(38)

Which of the following shortcut keys should not be used in Windows applications that have an EDIT menu for menu items not on the EDIT menu?

(Multiple Choice)
4.9/5
(40)

The ____ method pads the string on the right, which inserts the padded characters at the end of the string and left-aligns the characters within the string.

(Multiple Choice)
4.8/5
(26)

Write the condition that evaluates to True when the string stored in the strCode variable begins with "HFS", followed by two uppercase letters, followed by five numbers.

(Essay)
4.9/5
(31)

The strPhone variable should contain only numbers and no dashes (-). An error message should display if there is a dash anywhere in the variable. Which of the following statements determines whether the variable contains a dash in order to display the message?

(Multiple Choice)
4.8/5
(38)

A literal type character forces a literal constant to assume a data type other than the one its form indicates.

(True/False)
4.8/5
(29)

The ____ method performs a case-sensitive search that returns the Boolean value True when the subString is contained anywhere in the string.

(Multiple Choice)
4.8/5
(34)

Write a Visual Basic statement that removes the last four digits of the credit card number and assigns it to the strCCLastFour variable. strCCNum = "4456778996352852"

(Essay)
4.8/5
(43)

The most commonly used properties for a menu element are the Name and Text properties.

(True/False)
4.9/5
(40)

The strSerialNum variable contains the string "DRY259614". Write the Visual Basic statement that assigns the string "259614" from the strSerialNum variable to the strProductCode variable.

(Essay)
4.8/5
(41)

You can use the ____ method to search a string to determine whether it contains a specific sequence of characters.

(Multiple Choice)
4.8/5
(34)

The strPassword variable contains eight characters. Two of the characters in the password must be numeric. Which of the following statements will access each character stored in the variable, character by character?

(Multiple Choice)
4.9/5
(44)

In Visual Basic 2015, you use a(n) ____ to include one or more menus in an application.

(Multiple Choice)
4.9/5
(38)

You can use a string's Value property to determine the number of characters it stores.

(True/False)
5.0/5
(34)
Showing 21 - 40 of 60
close modal

Filters

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