Networking MCQs multiple-choice questions with answers & explanations
All 11 Networking quiz questions on one page. Pick an answer in your head, then open Show answer to check it and read why. Want a score and a timer? Take them as a quiz instead.
Official reference: MDN: HTTP
- 1.easy
What does DNS typically provide when resolving a website hostname?
- AAn IP address record
- BThe HTML document
- CA login token
- DA database connection
Show answer
Answer: A (An IP address record)
DNS resolves names to records such as IP addresses. Fetching HTML is a separate HTTP exchange.
- 2.easy
Which HTTP status indicates that a resource was not found?
- A200
- B301
- C404
- D500
Show answer
Answer: C (404)
404 means the requested resource was not found. 500 indicates a server error, while 301 is a redirect.
- 3.easy
What does TLS primarily protect?
- AData in transit
- BAll stored database rows
- CApplication business logic
- DThe server from every attack
Show answer
Answer: A (Data in transit)
TLS protects transport confidentiality and integrity and normally authenticates the server. It does not fix application vulnerabilities or encrypt stored data.
- 4.mid
What makes an HTTP operation idempotent?
- AEvery response is identical
- BRepeating it has the same intended server-side effect as doing it once
- CIt never changes data
- DIt cannot fail
Show answer
Answer: B (Repeating it has the same intended server-side effect as doing it once)
Idempotency concerns the intended effect of repetition, not identical response bodies or status codes. A repeated DELETE can return a different status while remaining idempotent.
- 5.mid
A client sends If-None-Match with a matching ETag. Which response can tell it to reuse its cached representation?
- A201 Created
- B502 Bad Gateway
- C304 Not Modified
- D206 Partial Content
Show answer
Answer: C (304 Not Modified)
A 304 response allows reuse of a stored representation after validation. It does not contain a new representation body.
- 6.mid
Which statement about CORS is correct?
- AIt replaces API authentication
- BIt blocks every cross-origin request from being sent
- CIt encrypts requests
- DIt controls browser access to cross-origin responses
Show answer
Answer: D (It controls browser access to cross-origin responses)
CORS is a browser-enforced response access mechanism. Some requests are sent without a preflight, and non-browser clients are not constrained by browser CORS rules.
- 7.easy
What does calling HTTP stateless mean?
- ARequest semantics do not require a connection to retain application session state
- BServers cannot store data
- CCookies cannot be used
- DEvery request needs a new TCP connection
Show answer
Answer: A (Request semantics do not require a connection to retain application session state)
HTTP can carry cookies or tokens that associate requests with application sessions. Stateless request semantics do not prohibit persistence or connection reuse.
- 8.easy
What is a reverse proxy commonly used for?
- AReplacing DNS everywhere
- BReceiving client requests and forwarding them to backend servers
- CCompiling backend code
- DStoring browser history
Show answer
Answer: B (Receiving client requests and forwarding them to backend servers)
A reverse proxy fronts backend services and can provide routing, TLS termination or load balancing. It does not replace all DNS resolution.
- 9.easy
What does an IP subnet prefix describe?
- AA website path
- BA TLS certificate owner
- CThe network portion of an IP address
- DAn HTTP response format
Show answer
Answer: C (The network portion of an IP address)
A subnet prefix defines which bits identify the network. Hosts use addressing and routing information to determine where to send packets.
- 10.mid
Which HTTP response most directly indicates that a client has sent too many requests?
- A204
- B401
- C418
- D429
Show answer
Answer: D (429)
429 Too Many Requests signals rate limiting. The server may include Retry-After to guide the next attempt; clients should avoid immediate retry loops.
- 11.mid
A sender makes two writes to a TCP socket. What can the receiver assume about reads?
- AThey must return exactly two messages
- BThe bytes are ordered, but read boundaries need not match writes
- CThe second write arrives first
- DEach write becomes one permanent packet
Show answer
Answer: B (The bytes are ordered, but read boundaries need not match writes)
TCP provides a byte stream. Applications need framing such as a length prefix or delimiter because reads may split or combine writes.
No questions match these filters. Try a different subtopic or clear the filters.