Bird
0
0

An API client sends /items?page=2 without a limit parameter. The server defaults to 20 items per page. How many items will the client receive?

medium📝 Debug Q7 of 15
Rest API - Pagination Patterns
An API client sends /items?page=2 without a limit parameter. The server defaults to 20 items per page. How many items will the client receive?
A20
B2
C40
DDepends on total items
Step-by-Step Solution
Solution:
  1. Step 1: Understand default limit usage

    Without limit, server uses default 20 items per page.
  2. Step 2: Consider total items impact

    If total items are less than 40, page 2 may have fewer than 20 items or none.
  3. Final Answer:

    Depends on total items -> Option D
  4. Quick Check:

    Items returned depend on total data size [OK]
Quick Trick: Default limit applies; total items affect response size [OK]
Common Mistakes:
  • Assuming fixed 20 items regardless of total
  • Confusing page number with item count
  • Ignoring server default limit

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes