Computer Networks » Http
Which of the following is not Correct?

A. Web cache doesnt has its own disk space
B. Web cache can act both like server and client
C. Web cache might reduce the response time
D. Web cache contains copies of recently requested objects

Explanation: Web cache or also known as HTTP cache is a temporary storage where HTML pages and images are stored temporarily so that server lag could be reduced.

The number of objects in a Web page which consists of 4 jpeg images and HTML text is ________

A. 4
B. 1
C. 5
D. 7

Explanation: 4 jpeg images + 1 base HTML file.

The default connection type used by HTTP is _________

A. Persistent
B. Non-persistent
C. Can be either persistent or non-persistent depending on connection request
D. None of the mentioned

Explanation: By default the http connection is issued with persistent connection. In persistent connection server leaves connection open after sending response. As little as one RTT (Time for a small packet to travel from client to server and back) is required for all referenced objects.

The HTTP request message is sent in _________ part of three-way handshake.

A. First
B. Second
C. Third
D. Fourth

Explanation: In first step client sends a segment to establish a connection with the server. In the second the step the client waits for the acknowledgement to be received from the server. After receiving the acknowledgement, the client sends actual data in the third step.

In the process of fetching a web page from a server the HTTP request/response takes __________ RTTs.

A. 2
B. 1
C. 4
D. 3

Explanation: By default the http connection will be persistent connection. Hence it will take only 1 RTT to fetch a webpage from a server.

The first line of HTTP request message is called _____________

A. Request line
B. Header line
C. Status line
D. Entity line

Explanation: The line followed by request line are called header lines and status line is the initial part of response message.

The values GET, POST, HEAD etc are specified in ____________ of HTTP message

A. Request line
B. Header line
C. Status line
D. Entity body

Explanation: It is specified in the method field of request line in the HTTP request message.

The __________ method when used in the method field, leaves entity body empty.

A. Post
B. Send
C. Get
D. Put

Explanation: There are two methods which help to request a response from a server. Those are GET and POST. In GET method, the client requests data from server. In POST method the client submits data to be processed to the server.

The HTTP response message leaves out the requested object when ____________ method is used

A. Get
B. Post
C. Head
D. Put

Explanation: HEAD method is much faster than GET method. In HEAD method much smaller amount of data is transferred. The HEAD method asks only for information about a document and not for the document itself.