Multiple Choice
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 ?
A) strEmpCode = strEmpCode.Replace("04", "09")
B) strEmpCode = strEmpCode.Replace("09", "04")
C) strEmpCode = strEmpCode.Remove(0, 2) strEmpCode = strEmpCode.Insert(1, "09")
D) strEmpCode = strEmpCode.Remove(1, 2) strEmpCode = strEmpCode.Insert(1, "04")
Correct Answer:

Verified
Correct Answer:
Verified
Q6: The strCityState variable contains a string that
Q12: What is the value returned from the
Q14: Write the condition that evaluates to True
Q16: To remove characters from the left of,the
Q21: The Trim method is used to remove
Q28: What is the difference between a menu
Q35: The _ allows you to use pattern-matching
Q46: Each menu in an application does not
Q56: Case-Based Critical Thinking Questions Case 1 -
Q60: When processing the PadLeft and PadRight methods,the