Mark works as a Software Developer for McRobert Inc. He develops an ASP.NET application using Visual Studio .NET. The application loads department name and employee data only once in each user’s session. Mark creates two DataTable objects, named Employees and Departments. The
Departments object remains static, but the Employees object is modified whenever new employees join the company.
Mark wants to minimize the time it takes for the application to reload an ASP.NET page after each change.
Which of the following statements will he use to accomplish this?
A . Session("Departments") = Departments
Cache("Employees") = Employees
B . Cache("Departments") = Departments
Cache("Employees") = Employees
C . Session("Departments") = Departments
Session("Employees") = Employees
D . Cache("Departments") = Departments
Session("Employees") = Employees
Answer: D
Leave a Reply