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
____ keys appear to the right of a menu item and allow you to select an item without opening the menu.
Free
(Multiple Choice)
4.9/5
(34)
Correct Answer:
A
Menu title captions should be one word only and entered using uppercase letters.
Free
(True/False)
4.9/5
(34)
Correct Answer:
True
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.
-In order to remove both dashes from the SSN,you should first ____.
Free
(Multiple Choice)
4.7/5
(40)
Correct Answer:
C
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.
-Each employee is assigned an employee code,such as F01234,which is stored in the strEmpCode variable.The first character is a letter for employment status (F for Full-time,P for Part-time).The next two characters are numbers representing the employee's department number.The last three characters are numbers representing a unique value for each individual employee.Which of the following statements assigns the employee's department to the strDept variable?
(Multiple Choice)
4.9/5
(38)
A character's ____ is an integer that indicates the character's position in the string.
(Multiple Choice)
4.7/5
(37)
The strCityState variable contains a string that ends with a two-digit state abbreviation.Write the statements that determine whether the string stored in the strCityState variable ends with "NY".If it does,assign the string "New York order" to the lblState control's Text property.Use the EndsWith method.
(Short Answer)
4.9/5
(39)
Assume that the data for salary is entered with both a dollar symbol and a space.Which of the following instructions will remove the dollar symbol?
(Multiple Choice)
4.8/5
(36)
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 users of the HR application have entered some employee Social Security numbers (SSNs)with dashes (such as 222-33-4444)and some without dashes (such as 222334444).You need to remove all dashes from any SSN that contains dashes.You will use the ____ method to edit the code so that only numeric characters are stored.
(Multiple Choice)
4.7/5
(31)
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)
5.0/5
(35)
The ____ method returns an integer that represents the location of the subString within the string.
(Multiple Choice)
4.9/5
(37)
The following instruction will remove which character from the string first? Dim myString as string = "ABCDEFGH"
MyString = myString.Remove(2,3)
(Multiple Choice)
4.8/5
(35)
What is the value returned from the expression stateName.Substring(1,1)when stateName contains "North Dakota"?
(Multiple Choice)
4.8/5
(37)
The ____ method inserts the padded characters at the beginning of a string,which right-aligns the characters within the string.
(Multiple Choice)
4.8/5
(40)
Write the condition that evaluates to True when a dash (-)appears anywhere within the strItemNum variable.
(Short Answer)
4.8/5
(37)
The strCityState variable contains the string "AtlantaGA".Write the Visual Basic statements that assign the string "Atlanta" from the strCityState variable to the strCity variable,and assign the string "GA" to the strState variable.
(Short Answer)
4.8/5
(25)
To remove characters from the left of,the right of,or within a string variable,you should use the ____ function.
(Multiple Choice)
4.8/5
(26)
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
(33)
Write a Visual Basic statement that will access each character in the strNumber variable to determine if the variable contains a comma and then removes any comma that is found.
(Essay)
4.8/5
(31)
The most commonly used properties for a menu element are the Name and Text properties.
(True/False)
4.9/5
(38)
Showing 1 - 20 of 60
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)