Case-Based Critical Thinking QuestionsCase 1: Human Resources ApplicationAn 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 are 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")
Answer: A
Computer Science & Information Technology
You might also like to view...
You are not required to reference information that is assumed to be general knowledge in the field
Indicate whether the statement is true or false
Computer Science & Information Technology
____ is the most widely used mobile operating system in the United States.
A. Mac OS B. Palm OS C. Windows Mobile D. Android
Computer Science & Information Technology