Bird
0
0

Which of the following is the correct syntax to specify JSON format with quality factor 0.9 in the Accept header?

easy📝 Syntax Q3 of 15
Rest API - Request and Response Format
Which of the following is the correct syntax to specify JSON format with quality factor 0.9 in the Accept header?
AAccept: application/json;q=0.9
BAccept: application/json:0.9
CAccept: application/json=0.9
DAccept: application/json;quality=0.9
Step-by-Step Solution
Solution:
  1. Step 1: Recall Accept header quality factor syntax

    The correct syntax uses ';q=' followed by the quality value.
  2. Step 2: Match syntax to options

    Only Accept: application/json;q=0.9 uses 'application/json;q=0.9' which is correct.
  3. Final Answer:

    Accept: application/json;q=0.9 -> Option A
  4. Quick Check:

    Quality factor syntax = ';q=' [OK]
Quick Trick: Use ';q=' to set quality factor in Accept header [OK]
Common Mistakes:
  • Using ':' or '=' instead of ';q='
  • Writing 'quality=' instead of 'q='
  • Omitting the semicolon before q

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes