Which code segment should you use?

You are developing an application that includes a class named Employee and a generic list of
employees. The following code segment declares the list of employees:
List<Employee> employeesList = new List<Employee>();
You populate the employeesList object with several hundred Employee objects.
The application must display the data for five Employee objects at a time.
You need to create a method that will return the correct number of Employee objects.
Which code segment should you use?

You are developing an application that includes a class named Employee and a generic list of
employees. The following code segment declares the list of employees:
List<Employee> employeesList = new List<Employee>();
You populate the employeesList object with several hundred Employee objects.
The application must display the data for five Employee objects at a time.
You need to create a method that will return the correct number of Employee objects.
Which code segment should you use?

A.
Option A

B.
Option B

C.
Option C

D.
Option D



Leave a Reply 5

Your email address will not be published. Required fields are marked *


Najlepszy Programista Swiata DAGO

Najlepszy Programista Swiata DAGO

B

Twórca C#

Twórca C#

B jak bajlando

Najlepszy Programista

Najlepszy Programista

B

Lord Vader

Lord Vader

has to b B. if page =1. skip is equal to zero and take just takes the number of records given by the page size