Bird
0
0

Which of the following is the correct way to request page 3 with 10 items per page using query parameters?

easy📝 Syntax Q12 of 15
Rest API - Pagination Patterns
Which of the following is the correct way to request page 3 with 10 items per page using query parameters?
A/items?size=10&page=3
B/items?limit=3&page=10
C/items?page=10&limit=3
D/items?page=3&limit=10
Step-by-Step Solution
Solution:
  1. Step 1: Identify standard query parameters

    Page-based pagination commonly uses page for page number and limit for items per page.
  2. Step 2: Match parameters to values

    Requesting page 3 with 10 items means page=3 and limit=10.
  3. Final Answer:

    /items?page=3&limit=10 -> Option D
  4. Quick Check:

    page=3 and limit=10 [OK]
Quick Trick: Use page=number and limit=items per page [OK]
Common Mistakes:
  • Swapping page and limit values
  • Using wrong parameter names like size
  • Mixing up page number with limit count

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes