HTTP questions

Q19

GATE CS 2026 CS-1Application LayerMSQ1 mark
Which of the following statements is/are true with respect to the interaction of a web browser with a web server using HTTP 1.1?
More than one option can be correct.
Show answer without attempting

Answer: A, C, D

Q16

GATE CS 2024 CS-1Application LayerMCQ1 mark−1/3 if wrong
A user starts browsing a webpage hosted at a remote server. The browser opens a single TCP connection to fetch the entire webpage from the server. The webpage consists of a top-level index page with multiple embedded image objects. Assume that all caches (e.g., DNS cache, browser cache) are all initially empty. The following packets leave the user's computer in some order.
(i) HTTP GET request for the index page
(ii) DNS request to resolve the web server's name to its IP address
(iii) HTTP GET request for an image object
(iv) TCP SYN to open a connection to the web server
Which one of the following is the CORRECT chronological order (earliest in time to latest) of the packets leaving the computer?
Show answer without attempting

Answer: C

Q52

GATE CS 2023 CSApplication LayerMSQ2 marks
Suppose in a web browser, you click on the www.gate-2023.in URL. The browser cache is empty. The IP address for this URL is not cached in your local host, so a DNS lookup is triggered (by the local DNS server deployed on your local host) over the 3-tier DNS hierarchy in an iterative mode. No resource records are cached anywhere across all DNS servers.

Let RTT denote the round trip time between your local host and DNS servers in the DNS hierarchy. The round trip time between the local host and the web server hosting www.gate-2023.in is also equal to RTT. The HTML file associated with the URL is small enough to have negligible transmission time and negligible rendering time by your web browser, which references 10 equally small objects on the same web server.

Which of the following statements is/are CORRECT about the minimum elapsed time between clicking on the URL and your browser fully rendering it?
More than one option can be correct.
Show answer without attempting

Answer: C, D

Q25

GATE CS 2020 CSApplication LayerNAT1 mark
Assume that you have made a request for a web page through your web browser to a web server. Initially the browser cache is empty. Further, the browser is configured to send HTTP requests in non-persistent mode. The web page contains text and five very small images. The minimum number of TCP connections required to display the web page completely in your browser is __________.
Show answer without attempting

Answer: 6

Q25

GATE CS 2016 CS-1Application LayerMCQ1 mark−1/3 if wrong
Which of the following is/are example(s) of stateful application layer protocols?
(i) HTTP
(ii) FTP
(iii) TCP
(iv) POP3
Show answer without attempting

Answer: C

Q25

GATE CS 2016 CS-2Application LayerMCQ1 mark−1/3 if wrong
Identify the correct sequence in which the following packets are transmitted on the network by a host when a browser requests a webpage from a remote server, assuming that the host has just been restarted.
Show answer without attempting

Answer: C

Q18

GATE CS 2015 CS-3Application LayerMCQ1 mark−1/3 if wrong
In a web server, ten WebPages are stored with the URLs of the form http://www.yourname.com/var.html; where, var is a different number from 1 to 10 for each Webpage. Suppose, the client stores the Webpage with var = 1 (say W1) in local machine, edits and then tests. Rest of the WebPages remains on the web server. W1 contains several relative URLs of the form "var.html" referring to the other WebPages. Which one of the following statements needs to be added in W1, so that all the relative URLs in W1 refer to the appropriate WebPages on the web server?
Show answer without attempting

Answer: B

Q25

GATE CS 2015 CS-1Application LayerMCQ1 mark−1/3 if wrong
Which of the following statements is/are FALSE?

I. XML overcomes the limitations in HTML to support a structured way of organizing content.
II. XML specification is not case sensitive while HTML specification is case sensitive.
III. XML supports user defined tags while HTML uses pre-defined tags.
IV. XML tags need not be closed while HTML tags must be closed.
Show answer without attempting

Answer: C

Q27

GATE CS 2015 CS-1Application LayerMCQ1 mark−1/3 if wrong
In one of the pairs of protocols given below, both the protocols can use multiple TCP connections between the same client and the server. Which one is that?
Show answer without attempting

Answer: A

Q35

GATE CS 2015 CS-2Application LayerMCQ1 mark−1/3 if wrong
Which one of the following statements is NOT correct about HTTP cookies?
Show answer without attempting

Answer: A

Q28

GATE CS 2014 CS-2Application LayerMCQ2 marks−2/3 if wrong
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)?
Show answer without attempting

Answer: B

Q25

GATE CS 2014 CS-1Application LayerMCQ1 mark−1/3 if wrong
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.
Show answer without attempting

Answer: A

0/120 correct0 marks

Related topics in Application Layer