Exam 8: String Manipulation
Exam 1: An Introduction to Visual Basic 201560 Questions
Exam 2: Designing Applications60 Questions
Exam 3: Using Variables and Constants60 Questions
Exam 4: The Selection Structure59 Questions
Exam 5: More on the Selection Structure60 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
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.9/5
(38)
Each menu element is considered a(n) ____ and has a set of properties associated with it.
(Multiple Choice)
5.0/5
(32)
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
(44)
Visual Basic provides the ____ method for accessing any number of characters contained in a string.
(Multiple Choice)
4.8/5
(32)
Case-Based Critical Thinking Questions 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.8/5
(29)
The ____ method inserts the padded characters at the beginning of a string, which right-aligns the characters within the string.
(Multiple Choice)
5.0/5
(31)
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"
(Essay)
4.9/5
(35)
To remove characters from the left of, the right of, or within a string variable, you should use the ____ function.
(Multiple Choice)
4.9/5
(40)
The Trim method is used to remove characters only from the end of a string.
(True/False)
4.9/5
(26)
The ____ allows you to use pattern-matching characters to determine whether one string is equal to another string.
(Multiple Choice)
4.8/5
(46)
What is the value returned from the expression stateName.Substring(1,1) when stateName contains "North Dakota" ?
(Multiple Choice)
4.9/5
(30)
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.
(Essay)
4.8/5
(32)
Case-Based Critical Thinking Questions 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
(27)
Each menu in an application does not have to contain a menu title.
(True/False)
4.8/5
(35)
Write the condition that evaluates to True when a dash (-) appears anywhere within the strItemNum variable.
(Essay)
4.9/5
(33)
Case-Based Critical Thinking Questions 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 application needs to process benefits for full-time employees only. Which of the following statements determines whether the strEmpCode variable contains an employee code for a full-time employee?
(Multiple Choice)
4.9/5
(35)
What is the difference between a menu item's access key and shortcut key?
(Essay)
4.9/5
(32)
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.9/5
(38)
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.
(Essay)
4.9/5
(24)
Assume that the value of the string message is "Happy New Year" . What value would message.IndexOf("New") yield?
(Multiple Choice)
4.7/5
(35)
Showing 41 - 60 of 60
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)