Home »
Aptitude Questions and Answers »
Networking Aptitude Questions
Networking | HTTP Aptitude Questions and Answers
Networking | HTTP Aptitude Questions and Answers: This section contains aptitude questions and answers on Networking | Hypertext Transfer Protocol (HTTP).
Submitted by Nidhi, on May 07, 2021
Networking HTTP Aptitude Questions and Answers
1) There are the following statements that are given below, which of them are correct about HTTP?
- HTTP stands for HyperText Transfer Protocol.
- HTTP follows client/server architecture.
- HTTP is used to transfer text, audio, image, etc.
- The default port for HTTP is 80.
Options:
- A and B
- A and C
- A, C, and D
- A, B, C, and D
Correct answer: 4
A, B, C, and D
Explanation:
All statements are correct about HTTP.
2) In which year HTTP 1.0 was introduced officially?
- 1991
- 1995
- 1996
- 1998
Correct answer: 3
1996
Explanation:
The HTTP 1.0 was officially introduced in 1996.
3) Who was developed HTTP?
- Jimmy Wales
- Tim Berners-Lee
- Larry Page
- Alan Turing
Correct answer: 2
Tim Berners-Lee
Explanation:
The HTTP was developed by Tim Berners-Lee.
4) HTTP works on which layer of the OSI model?
- Network layer
- Transport layer
- Presentation layer
- Application layer
Correct answer: 4
Application layer
Explanation:
The HTTP works on the application layer of the OSI model.
5) There are the following RFC numbers are given below, which of them are related to HTTP?
- RFC 2616
- RFC 3616
- RFC 7230
- RFC 7231
Options:
- A and B
- A, C, and D
- A, B, and C
- B, C, and D
Correct answer: 2
A, C, and D
Explanation:
RFC A, C, and D are related to HTTP.
6) There are the following statements that are given below, which of them are correct about HTTP?
- HTTP is media independent protocol
- It is a stateless protocol
- It is a connectionless protocol
- HTTP is mainly used to fetch HTML documents
Options:
- A, B, C, and D
- A, B, and C
- B, C, and D
- A, C, and D
Correct answer: 1
A, B, C, and D
Explanation:
All statements are correct about HTTP.
7) There are the following options that are given below, which of them are correct parameters of HTTP?
- HTTP version
- URI
- Space locator
- Product tokens
Options:
- A and B
- C and D
- A, B, and D
- A, B, C, and D
Correct answer: 3
A, B, and D
Explanation:
Options A, B, and D are the correct parameters of HTTP.
8) The version number of HTTP contains?
- Major number
- Minor number
- UID
- All the above
Options:
- A and B
- A and C
- B and C
- D
Correct answer: 1
A and B
Explanation:
HTTP uses major and minor for its versioning scheme.
9) Why Entity Tags are used in HTTP?
- It is used to tag each item in the request created by the client.
- It is used to compare two or more entities from the same requested resource.
- It is used to download HTML documents.
- It is used to download CSS documents.
Options:
- Only A
- Only B
- A and B
- C and D
Correct answer: 2
Only B
Explanation:
Statement B describes the correct use of Entity Tags.
10) Is HTTP use content-coding?
- Yes
- No
Correct answer: 1
Yes
Explanation:
Yes, HTTP uses content coding.
11) There are the following statements that are given below, which of them are correct about HTTP Messages?
- HTTP messages are used to data CSS data from HTTP Server to the HTTP client.
- HTTP messages are used to describe how data transferred between an HTTP client and an HTTP server.
- Both of the above
- None of the above
Correct answer: 1
HTTP messages are used to data CSS data from HTTP Server to the HTTP client.
Explanation:
HTTP messages are used to describe how data transferred between the HTTP client and the HTTP server.
12) What an HTTP message contains?
- Message Header
- Message Type
- Message Body
- Message Length
Options:
- A, C, and D
- A, B, and C
- B, C, and D
- A, B, C, and D
Correct answer: 4
A, B, C, and D
Explanation:
All given options are parts of the HTTP Message.
13) Which of the following are the types of HTTP messages?
- HTTP header message
- HTTP request message
- HTTP response message
- HTTP footer message
Options:
- A and D
- B and C
- Only B
- A, B, C, and D
Correct answer: 2
B and C
Explanation:
B and C are the correct types of HTTP messages.
14) Which of the following are the types of HTTP header?
- General header
- Entity header
- Request header
- Response header
Options:
- A, B, C and D
- C and D
- A, B, and C
- A and B
Correct answer: 1
A, B, C and D
Explanation:
All given options are the correct types of HTTP headers.
15) There are the following methods that are given below, which of them are correct methods used in an HTTP request?
- GET
- POST
- CONNECT
- DELETE
Options:
- A and B
- A, B, and C
- A, B, and D
- A, B, C, and D
Correct answer: 4
A, B, C, and D
Explanation:
All given methods are used in an HTTP request.
16) There are the following statements that are given below, which of them is correct about the DELETE method of the HTTP request?
- DELETE method is used to dismiss the HTTP request.
- The DELETE method is used to remove unwanted data from the HTTP request.
- The DELETE method is used to remove all current representations of resources.
- DELETE method is used to remove all encryption information from the HTTP request.
Correct answer: 3
The DELETE method is used to remove all current representations of resources.
Explanation:
The 3rd statement is correct about the DELETE method of the HTTP request.
17) There are the following options that are given below, which of them are correct request header fields?
- Expect
- Host
- If-None-Range
- If-None-Match
Options:
- A and B
- A, B, and C
- A, B, and D
- B, C, and D
Correct answer: 3
A, B, and D
Explanation:
Options A, B, and D are correct request header fields.
18) Which of the following are the parts of the HTTP response?
- Status
- Message Body
- The encryption key used for HTTP protocol security
- Header fields for a response
Options:
- A and B
- B and D
- B, C, and D
- A, B, and D
Correct answer: 4
A, B, and D
Explanation:
Options A, B, and D are parts of the HTTP response.
19) Is it true that, each header is followed by CRLF in the HTTP request message?
- Yes
- No
Correct answer: 1
Yes
Explanation:
Yes, it is true.
21) There are the following options that are given below, which of them are correct directives of HTTP Cache request?
- no-cache
- max-state
- min-fresh
- only-if-cached
Options:
- A and B
- A, B, C, and D
- C and D
- A, B, and C
Correct answer: 2
A, B, C, and D
Explanation:
All given options are correct directives of HTTP Caching.
22) There are the following options that are given below, which of them are correct about URL encoding in HTTP?
- URL encoding is used to replace some unsafe characters with specific characters in the URL.
- URL encoding is used to encrypt data send in URL
- URL encoding is used to encrypt complete URL
- None of the above
Correct answer: 1
URL encoding is used to replace some unsafe characters with specific characters in the URL.
Explanation:
URL encoding is used to replace some unsafe characters with the specific characters in the URL.
23) What is used for '$' for URL encoding?
- %24
- %25
- %26
- %27
Correct answer: 1
%24
Explanation:
The "%24" is used for '$' in URL encoding.
24) Which of the following error code is used for "Bad Request" in HTTP protocol?
- 200
- 300
- 400
- 500
Correct answer: 3
400
Explanation:
The 400 error code is used for "Bad Request" in HTTP protocol.
25) Which of the following error code is used for "Internal Server Error" in HTTP protocol?
- 500
- 501
- 503
- 504
Correct answer: 1
500
Explanation:
The 500 error code is used for "Internal Server Error" in HTTP protocol.