During HTTP content negotiation, a client sends 'Accept: text/html;q=0.9, application/json;q=1.0, */*;q=0.5'. What will the server prefer to return, and what does 'q' represent?
- A.q stands for 'queue position' (not a weight) ranking the order the server processes each representation, so 'application/json;q=1.0' means process JSON requests first: text/html (queued second) is served as a fallback when nothing else matches
- B.q stands for a version number the client supports (not a preference weight), so the server picks the highest q value as the required protocol version: JSON here (q=1.0) would need at least version 1.0 client support
- C.q is a quality factor (preference weight) from 0 to 1.0; the server should prefer 'application/json' (q=1.0, highest) over 'text/html' (q=0.9), with any other type (q=0.5) as a last resort
- D.q is a byte-order preference for the response encoding (not a quality score), so the server negotiates endianness accordingly: 'application/json' (q=1.0) would be returned in network byte order as the primary format
Why C is correct