PrepAway - Latest Free Exam Questions & Answers

You need to display the third page

DRAG DROP
You have an application that uses paging. Each page displays 10 items from a list.
You need to display the third page. (Develop the solution by selecting and ordering the required
code snippets. You may not need all of the code snippets.)

PrepAway - Latest Free Exam Questions & Answers

Answer: See the explanation

Explanation:
Box 1: var page = items
Box 2: .Skip (20)
Box 3: .Take (10)
Note:
Skip the first two page (first 20 items) then select the next page (next 10 items),
* Use the Take operator to return a given number of elements in a sequence and then skip over the
remainder.
Use the Skip operator to skip over a given number of elements in a sequence and then return the
remainder.

One Comment on “You need to display the third page


Leave a Reply