HTTP

HTTP

Test your HTTP knowledge with free quizzes on MyCodeSkills covering core concepts.


  1. What does HTTP stand for?

    • HyperText Transfer Protocol
    • HighText Transfer Protocol
    • Hyperlink Transfer Program
    • High Transfer Text Process
  2. Which port is the default for HTTP?

    • 25
    • 21
    • 80
    • 443
  3. Which port is the default for HTTPS?

    • 21
    • 25
    • 443
    • 110
  4. HTTP is based on which model?

    • Peer-to-peer
    • Client-Server
    • Ring Topology
    • Mesh Network
  5. HTTP is considered a ______ protocol.

    • Stateful
    • Stateless
    • Secure
    • Peer-to-Peer
  6. Which header is used to specify the type of content in an HTTP request/response?

    • Accept
    • Host
    • Content-Type
    • Authorization
  7. Which HTTP header is responsible for controlling caching policies?

    • Cache-Control
    • Content-Length
    • User-Agent
    • Set-Cookie
  8. What does the ETag header represent?

    • Expiration time of resource
    • Unique identifier for resource version
    • The type of entity
    • Cache size limit
  9. Which status code indicates 'No Content'?

    • 200
    • 201
    • 202
    • 204
  10. What does the HTTP OPTIONS method do?

    • Deletes a resource
    • Retrieves supported methods for a resource
    • Uploads data to the server
    • Authenticates a user
  11. Which key improvement does HTTP/2 bring over HTTP/1.1?

    • Request pipelining
    • Multiplexing over a single TCP connection
    • Plain text communication
    • No header compression
  12. Which algorithm is used for header compression in HTTP/2?

    • LZ77
    • Huffman coding
    • HPACK
    • Brotli
  13. Which transport protocol does HTTP/3 use?

    • TCP
    • UDP (via QUIC)
    • SCTP
    • ICMP
  14. Which feature of HTTP/3 improves connection migration?

    • Multiplexing
    • QUIC connection IDs
    • Header compression
    • TLS handshake
  15. What is 'server push' in HTTP/2?

    • Client requests multiple resources
    • Server preemptively sends resources before client requests them
    • Client pushes updates to server
    • Server initiates WebSocket