Bird
0
0

You have the URL /orders?page=0&limit=10. What is the likely issue with this request?

medium📝 Debug Q6 of 15
Rest API - Pagination Patterns
You have the URL /orders?page=0&limit=10. What is the likely issue with this request?
APage number should start from 1, not 0
BLimit cannot be 10
CPage 0 returns all orders
DURL is correct and will work fine
Step-by-Step Solution
Solution:
  1. Step 1: Check valid page number range

    Page numbers usually start at 1; page=0 is invalid or undefined in most APIs.
  2. Step 2: Understand implications of page=0

    Using page=0 may cause errors or unexpected results because it is not a valid page.
  3. Final Answer:

    Page number should start from 1, not 0 -> Option A
  4. Quick Check:

    Page numbering starts at 1 [OK]
Quick Trick: Page numbers start at 1, not zero [OK]
Common Mistakes:
  • Using zero as a valid page number
  • Assuming limit must be less than 10
  • Thinking page=0 returns all data

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes