← All topics
Quiz: Pagination and Sorting: questions with answers
10 questions, each with the answer and a short explanation.
Take the timed quiz + get a certificate →- Q1. With size = 20, what is the offset for page 3 (pages start at 0)?
- Q2. There are 101 courses and the page size is 10. How many pages are there?
- Q3. What does this print? (code)
- Q4. What does PageRequest.of(1, 10) request?
- Q5. What is the main difference between Page<T and Slice<T?
- Q6. Courses are sorted only by fee, and many have the same fee. What can go wrong?
- Q7. What does this print? (code)
- Q8. Why should a controller cap the page size?
- Q9. Why does OFFSET 100000 LIMIT 10 get slow?
- Q10. What is a limitation of keyset pagination?