Multiple Choice
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?
A) strDept = strEmpCode.Substring(0, 1)
B) strDept = strEmpCode.Substring(1)
C) strDept = strEmpCode.Substring(0, 2)
D) strDept = strEmpCode.Substring(1, 2)
Correct Answer:

Verified
Correct Answer:
Verified
Q1: _ keys appear to the right of
Q2: Menu title captions should be one word
Q3: Case 1 - Human Resources Application<br>An application
Q5: A character's _ is an integer that
Q6: The strCityState variable contains a string that
Q7: Assume that the data for salary is
Q8: Case 1 - Human Resources Application<br>An application
Q9: The strPassword variable contains eight characters.Two of
Q10: The _ method returns an integer that
Q11: The following instruction will remove which character