PrepAway - Latest Free Exam Questions & Answers

You need to ensure that you can use the Find method to accomplish this goal

You have a DataSet object that contains a single DataTable object named Employees. Employees has a column named EmployeeID. EmployeeID contains no duplicate data.

You are creating a function that accepts a parameter of EmployeeID and searches Employees to return the DataRow object for the specified EmployeeID.

You want to use the Find method of the rows collection in Employees to return the requested DataRow object from the function. You need to ensure that you can use the Find method to accomplish this goal.

What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Ensure that EmployeeID is the first column in Employees.

B.
Ensure that EmployeeID is unique for each row in Employees.

C.
Ensure that Employees has a primary key on EmployeeID.

D.
Ensure that Employees is sorted in ascending order on EmployeeID.


Leave a Reply