Exam 8: String Manipulation
Exam 1: An Introduction to Visual Basic 201259 Questions
Exam 2: Designing Applications57 Questions
Exam 3: Using Variables and Constants58 Questions
Exam 4: The Selection Structure57 Questions
Exam 5: More on the Selection Structure56 Questions
Exam 6: The Repetition Structure59 Questions
Exam 7: Sub and Function Procedures56 Questions
Exam 8: String Manipulation57 Questions
Exam 9: Arrays57 Questions
Exam 10: Structures and Sequential Access Files58 Questions
Exam 11: Classes and Objects58 Questions
Exam 12: Web Applications55 Questions
Exam 13: Working With Access Databases and Linq57 Questions
Exam 14: Access Databases and SQL58 Questions
Select questions type
Write the Visual Basic statement to assign the number of characters in the txtSSN control's Text property to the intSSNNumChar variable.
Free
(Short Answer)
4.8/5
(42)
Correct Answer:
intSSNNumChar = txtSSN.Text.Length
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.
Free
(Essay)
4.8/5
(40)
Correct Answer:
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?
Free
(Multiple Choice)
4.9/5
(31)
Correct Answer:
A
The strState variable should contain two uppercase letters.Which of the following statements determines whether the variable contains a valid state? 

(Not Answered)
This question doesn't have any answer yet
To remove characters from only the beginning of a string,use the ____ method.
(Multiple Choice)
4.7/5
(29)
____ keys appear to the right of a menu item and allow you to select an item without opening the menu.
(Multiple Choice)
4.9/5
(38)
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
(41)
Assume that the value of the string message is "Happy New Year".What value would message.IndexOf("New")yield?
(Multiple Choice)
4.9/5
(34)
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
(38)
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? 

(Not Answered)
This question doesn't have any answer yet
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
(40)
You can use a string's Value property to determine the number of characters it stores.
(True/False)
4.9/5
(26)
What is the difference between a menu item's access key and shortcut key?
(Essay)
4.9/5
(41)
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
(33)
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
(33)
How many characters will be removed from the string below? Dim myString as string = "ABCDEFGH"
MyString = myString.Remove(2,3)
(Multiple Choice)
4.7/5
(37)
Write the condition that evaluates to True when a dash (-)appears anywhere within the strItemNum variable.
(Essay)
4.8/5
(43)
Each menu in an application does not have to contain a menu title.
(True/False)
4.8/5
(33)
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
(41)
To insert characters within a string,you use the ____ method.
(Multiple Choice)
4.9/5
(31)
Showing 1 - 20 of 57
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)