Exam 8: String Manipulation
Exam 1: An Introduction to Visual Basic 201544 Questions
Exam 2: Designing Applications60 Questions
Exam 3: Using Variables and Constants60 Questions
Exam 4: The Selection Structure60 Questions
Exam 5: More on the Selection Structure58 Questions
Exam 6: The Repetition Structure60 Questions
Exam 7: Sub and Function Procedures60 Questions
Exam 8: String Manipulation60 Questions
Exam 9: Arrays60 Questions
Exam 10: Structures and Sequential Access Files60 Questions
Exam 11: Classes and Objects60 Questions
Exam 12: Web Applications60 Questions
Exam 13: Working With Access Databases and Linq60 Questions
Exam 14: Access Databases and SQL60 Questions
Select questions type
The ____ operator evaluates to True when the string matches the pattern; otherwise,it evaluates to False.
(Multiple Choice)
4.8/5
(29)
To insert characters within a string,you use the ____ method.
(Multiple Choice)
4.8/5
(32)
Neither the Trim method nor the Remove method removes any characters from the original string.
(True/False)
4.8/5
(42)
Visual Basic provides the ____ method for accessing any number of characters contained in a string.
(Multiple Choice)
5.0/5
(42)
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.9/5
(37)
Each menu in an application does not have to contain a menu title.
(True/False)
4.9/5
(37)
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
(42)
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.
(Short Answer)
4.8/5
(37)
To remove characters from only the beginning of a string,use the ____ method.
(Multiple Choice)
4.8/5
(28)
Assume that a text box named PhoneNumberTextBox appears on a form and contains the phone number 414-555-5555.What value will display for the length of the phone number text box?
(Multiple Choice)
4.8/5
(34)
The strState variable should contain two uppercase letters.Which of the following statements determines whether the variable contains a valid state?
(Multiple Choice)
4.8/5
(35)
The method that removes characters from only the right end of a string is the ____ method.
(Multiple Choice)
4.8/5
(31)
Case 1 - Human Resources Application
An application used by the Human Resources (HR) department needs to be improved. You need to use various string manipulation properties and methods to ensure all data entered by a user is accurate and stored correctly.
-The HR department has decided to change the Finance department number from 04 to 09.Which of the following statements correctly changes the contents of the strEmpCode?
(Multiple Choice)
4.8/5
(31)
The strPhone variable contains a 10-digit phone number.If the string stored in the strPhone variable begins with the "336" area code,display the phone number in the lblPhone control's Text property.Use the StartsWith method.
(Short Answer)
4.9/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
(37)
Write the Visual Basic statement that inserts "RVI" at the beginning of the string in the following strPolicyNum and assigns it to the strPolicyNum variable.
strPolicyNum = "576892"
(Short Answer)
5.0/5
(31)
Write the Visual Basic statement that uses the Contains method to determine whether the strEmployeeCode variable contains the string "NC" (entered in uppercase).Assign the method's return value to a Boolean variable named blnIsNC.
(Short Answer)
4.8/5
(39)
You can use a string's Value property to determine the number of characters it stores.
(True/False)
4.9/5
(38)
You can use the ____ method to search a string to determine whether it contains a specific sequence of characters.
(Multiple Choice)
4.8/5
(30)
When processing the PadLeft and PadRight methods,the computer makes a temporary copy of the string in memory,and then inserts the characters in the copy only.
(True/False)
4.7/5
(38)
Showing 41 - 60 of 60
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)