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
Q29: What is the value returned from the
Q32: In Visual Basic 2015,you use a(n)_ to
Q39: The strPassword variable contains eight characters.Two of
Q42: What is the difference between a menu
Q44: Write the Visual Basic statement that inserts
Q45: Write the Visual Basic statement that uses
Q46: Write the condition that evaluates to True
Q47: The txtGrade control contains the string "95%".Write
Q47: Problems - Correcting Logic and Code Errors
Q57: Describe four of the six menu standards
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents