Bird
0
0

In the URL /api/items?category=clothing&price_lt=50, what does the query parameter price_lt=50 indicate?

medium📝 Predict Output Q4 of 15
Rest API - URL and Resource Design

In the URL /api/items?category=clothing&price_lt=50, what does the query parameter price_lt=50 indicate?

AFilter items with price not equal to 50
BFilter items with price exactly 50
CFilter items with price greater than 50
DFilter items with price less than 50
Step-by-Step Solution
Solution:
  1. Step 1: Understand suffix _lt

    The suffix '_lt' commonly means 'less than' in query parameters.
  2. Step 2: Interpret the parameter

    price_lt=50 means filter items where price is less than 50.
  3. Final Answer:

    Filter items with price less than 50 -> Option D
  4. Quick Check:

    _lt means less than [OK]
Quick Trick: _lt means less than [OK]
Common Mistakes:
  • Confusing _lt with equal or greater than
  • Ignoring suffix meaning
  • Assuming it filters exact price

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes