Application Layer Protocols · Computer Networks
21 questions · asked in 15 of 27 years (2000–2026)
MCQ 17 · MSQ 2 · NAT 21-mark 19 · 2-mark 2
2000Questions per year2026
Questions 11–15 of 21
Which one of the following statements is NOT correct about HTTP cookies?
Answer: (A)
A cookie is a small amount of data (text in name-value form) that the browser keeps. It is not code that can run.
The other statements are true. A cookie arrives through the Set-Cookie HTTP header. It has an expiry time. It can also be used to track how a user browses a site.
Answer: A cookie is a piece of code that has the potential to compromise security
The other statements are true. A cookie arrives through the Set-Cookie HTTP header. It has an expiry time. It can also be used to track how a user browses a site.
Answer: A cookie is a piece of code that has the potential to compromise security
Identify the correct order in which the following actions take place in an interaction between a web browser and a web server.
1. The web browser requests a webpage using HTTP.
2. The web browser establishes a TCP connection with the web server.
3. The web server sends the requested webpage using HTTP.
4. The web browser resolves the domain name using DNS.
1. The web browser requests a webpage using HTTP.
2. The web browser establishes a TCP connection with the web server.
3. The web server sends the requested webpage using HTTP.
4. The web browser resolves the domain name using DNS.
Answer: (A)
First, the browser finds the address with DNS then it sets up a TCP connection then it sends the HTTP request and last, the server sends back the page.
Answer: 4, 2, 1, 3
Answer: 4, 2, 1, 3
A graphical HTML browser resident at a network client machine Q accesses a static HTML webpage from a HTTP server S. The static HTML page has exactly one static embedded image which is also at S. Assuming no caching, which one of the following is correct about the HTML webpage loading (including the embedded image)?
Answer: (B)
The HTML page and the embedded image are two different objects. So Q must send at least 2 HTTP GET requests.
With persistent HTTP (keep-alive), Q can send both requests over one TCP connection.
Answer: Q needs to send at least 2 HTTP requests to S, but one TCP connection is enough
With persistent HTTP (keep-alive), Q can send both requests over one TCP connection.
Answer: Q needs to send at least 2 HTTP requests to S, but one TCP connection is enough
The protocol data unit (PDU) for the application layer in the Internet stack is
Answer: (C)
Each layer has its own PDU name. Application layer: message. Transport layer: segment. Network layer: datagram. Link layer: frame.
Answer: Message
Answer: Message
HTML (Hyper Text Markup Language) has language elements which permit certain actions other than describing the structure of the web document. Which one of the following actions is NOT supported by pure HTML (without any server or client side scripting) pages?
Answer: (D)
Plain HTML can embed objects from other sites, such as with iframe and img. It can also refresh a page or redirect to another page, using meta refresh. Showing the client's current time needs JavaScript, which is client-side scripting.
Answer: Display the client time as part of the page
Answer: Display the client time as part of the page
Keep practising
Topics in Computer Networks
OSI LayerPhysical LayerData Link LayerNetwork Layer ProtocolTransport Layer Protocol
Application Layer ProtocolsYou are here
Network Security