HTTP Interview/Exam Question-Answer Part 2

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

       A. Header line

       B. Status line

       C. Request line

       D. Entity body

Ans : Request line


Q.2 405 Method Not Allowed response codes in HTTP is used to shows that the request method is not supported by the requested resource.

       A. True

       B. False

Ans : True


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

       A. HEAD

       B. GET

       C. POST

       D. PUT

Ans : HEAD


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

       A. GET

       B. SEND

       C. PUT

       D. POST

Ans : GET


Q.5 408 Request Timeout response codes in HTTP is used to show that the request took longer than the server was prepared to wait.

       A. True

       B. False

Ans : True


Q.6 500 Internal Server Error response codes in HTTP is used to show that the server has encountered a situation, and it does not know how to handle it.

       A. True

       B. False

Ans : True


Q.7 Which of the following is not correct?

       A. Web cache can act both like server and client

       B. Web cache contains copies of recently requested objects

       C. Web cache might reduce the response time

       D. Web cache doesnt has its own disk space

Ans : Web cache doesnt has its own disk space


Q.8 Find the oddly matched HTTP status codes.

       A. 301 Moved permanently

       B. 400 Bad Request

       C. 304 Not Found

       D. 200 OK

Ans : 304 Not Found


Q.9 Which is the third layer in OSI Model?

       A. Network Layer

       B. Application Layer

       C. Physical Layer

       D. None of the above

Ans : Network Layer


Q.10 What is HTTPS.

       A. Hypertext Transfer Protocol Secure

       B. Hypertext Transport Protocol Secure

       C. Hypertext Transfer Prototype Secure

       D. Hyper Transfer Protocol Secure

Ans : Hypertext Transfer Protocol Secure


Q.11 Which of the following is present in both an HTTP request line and a status line?

       A. Method

       B. HTTP version number

       C. URL

       D. None of the above

Ans : HTTP version number


Q.12 The conditional GET mechanism

       A. Imposes conditions on the objects to be requested

       B. Helps to keep a cache upto date

       C. Limits the number of response from a server

       D. None of the above

Ans : Limits the number of response from a server


Q.13 IP belongs to the Network layer?

       A. True

       B. False

Ans : True


Q.14 What are different types of HTTP content negotiation?

       A. Server-driven Negotiation

       B. Agent-driven Negotiation

       C. Transparent Negotiation

       D. All of the above

Ans : All of the above


Leave a Comment