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
You might also like to view...
The accompanying figure shows the xs:ID data type applied to the stuID attribute.
Answer the following statement true (T) or false (F)
In the shell sort, a list of N elements is divided into K segments, where K is known as the ____.
A. degree B. segmentation factor C. increment D. index
Grandfather-Father-Son and Tower of Hanoi are common:
A. Trojans that collect banking information. B. Backup tape rotation strategies. C. Penetration testing best practices. D. Failover practices in clustering.
What is the result of 45 / 4?
a. 10 b. 11 c. 11.25 d. 12