Disclaimer:
Educational Use Only:
The website links provided are to be used strictly for educational and knowledge-gaining purposes only.
No Misuse:
Do not misuse the links or the information contained therein for any commercial, illegal, or unethical activities.
Respect for Websites and Businesses:
Respect the intellectual property and business interests of the websites and their owners. Do not attempt to alter, copy, or redistribute content without proper authorization.
Acknowledge Value of Knowledge:
Recognize and value the knowledge and resources shared by these websites. Use the information responsibly and ethically.
No Endorsement:
The provision of these links does not imply endorsement of the linked sites, their content, or their products and services. Users are responsible for evaluating the suitability and accuracy of the information.
User Responsibility:
By accessing these links, you agree to use the information at your own risk and to comply with all applicable laws and website terms of use.
- Which protocol specifies how communication occurs between a web server and browser?
a. HTML
b. HTTP
c. URL
d. XML
Answer: b. HTTPtestbook - HTTP is an example of which type of protocol?
a. Application layer
b. Data link layer
c. Network layer
d. Transport layer
Answer: a. Application layertestbook - The default connection type used by HTTP 1.1 is:
a. Non-persistent
b. Persistent
c. Sequential
d. None of the above
Answer: b. Persistentsanfoundry+1 - HTTP runs on top of which protocol?
a. TCP
b. UDP
c. IP
d. SMTP
Answer: a. TCPexamradar - By default, the port used by HTTP is:
a. 20
b. 21
c. 80
d. 110
Answer: c. 80examradar - The HTTP method used to request data from a specified resource is:
a. HEAD
b. PUT
c. GET
d. POST
Answer: c. GETtestbook+1 - HTTP is considered a ________ protocol.
a. Stateful
b. Connection-oriented
c. Stateless
d. Encrypted by default
Answer: c. Statelessexamradar+1 - How many objects in a web page consisting of 4 JPEG images and 1 HTML file?
a. 4
b. 5
c. 1
d. 6
Answer: b. 5sanfoundry - The status code 404 in HTTP means:
a. Bad Request
b. File Not Found
c. OK
d. Moved Permanently
Answer: b. File Not Foundsanfoundry+1 - Which method in HTTP leaves the entity body empty?
a. POST
b. GET
c. SEND
d. PUT
Answer: b. GETsanfoundry - Which of these is not a valid HTTP status code pair?
a. 200 OK
b. 400 Bad Request
c. 301 Moved Permanently
d. 304 Not Found
Answer: d. 304 Not Foundsanfoundry - Which layer is HTTP classified under in OSI model?
a. Presentation layer
b. Application layer
c. Network layer
d. Transport layer
Answer: b. Application layerexamradar - HTTP persistent connection is also known as:
a. Keep-alive
b. Handshake
c. Session
d. Transaction
Answer: a. Keep-aliveexamradar - The HTTP method used for updating a resource is:
a. GET
b. PUT
c. POST
d. DELETE
Answer: b. PUTtestbook - What is the correct order for a web browser-server interaction sequence?
a. TCP connect → HTTP request → DNS resolve → HTTP response
b. DNS resolve → TCP connect → HTTP request → HTTP response
c. HTTP request → DNS resolve → TCP connect → HTTP response
d. HTTP request → HTTP response → DNS resolve → TCP connect
Answer: b. DNS resolve → TCP connect → HTTP request → HTTP responsetestbook - HTTP responses always contain:
a. Only a body
b. Status line, headers, and optional body
c. Only status line
d. Only headers
Answer: b. Status line, headers, and optional bodyexamradar - Which HTTP status code indicates that the client request succeeded?
a. 300
b. 404
c. 200
d. 401
Answer: c. 200testbook+1 - Which of the following is not a property of HTTP?
a. Stateless
b. Reliable delivery
c. Connectionless
d. Layer 7 protocol
Answer: c. Connectionlesstestbook+1 - What does the ‘HEAD’ HTTP method do?
a. Executes a resource
b. Requests headers only, no content
c. Updates resource
d. Creates new resource
Answer: b. Requests headers only, no contentsanfoundry+1 - HTTP version 1.1 defaults to which type of connection?
a. Persistent
b. Non-persistent
c. Secure
d. Proxy
Answer: a. Persistentexamradar - The process of sending multiple HTTP requests before receiving responses for earlier ones is called:
a. Caching
b. Pipelining
c. Fetching
d. Chaining
Answer: b. Pipeliningsanfoundry - Which field is present in both HTTP request and response messages?
a. Status code
b. URL
c. HTTP version number
d. Method
Answer: c. HTTP version numberexamradar - The port number used by HTTPS (secure HTTP) is:
a. 80
b. 8080
c. 23
d. 443
Answer: d. 443examradar - The HTTP status code “301” means:
a. Moved Permanently
b. Forbidden
c. Method Not Allowed
d. Bad Request
Answer: a. Moved Permanentlysanfoundry+1 - HTTP operates over which type of connection in version 1.0 by default?
a. Persistent
b. Non-persistent
c. Encrypted
d. Stateless
Answer: b. Non-persistentexamradar - Which HTTP message part contains the method like GET or POST?
a. Request header
b. Request line
c. Status line
d. Response body
Answer: b. Request lineexamradar - In HTTP, the set of allowed methods for a resource is returned in response to which request method?
a. PUT
b. HEAD
c. OPTIONS
d. TRACE
Answer: c. OPTIONStestbook - HTTP method used to submit data to be processed to a resource is:
a. PUT
b. POST
c. DELETE
d. TRACE
Answer: b. POSTtestbook+1 - Which component in HTTP stores copies of recent objects to reduce response time?
a. Proxy server
b. Web cache
c. Mail server
d. Switch
Answer: b. Web cachesanfoundry+1 - HTTP proxies are primarily used for:
a. Network monitoring
b. Caching content
c. Device authentication
d. Encryption
Answer: b. Caching contentexamradar - Which HTTP status code means “Bad Request”?
a. 401
b. 404
c. 400
d. 200
Answer: c. 400sanfoundry+1 - The statelessness of HTTP means each request is:
a. Linked to previous requests
b. Independent of others
c. Encrypted by default
d. Has session memory
Answer: b. Independent of otherstestbook+1 - The two main types of HTTP connections are:
a. Direct and indirect
b. Persistent and nonpersistent
c. Synchronous and asynchronous
d. Static and dynamic
Answer: b. Persistent and nonpersistentexamradar - Which is NOT a valid HTTP method?
a. PATCH
b. DELETE
c. CONNECT
d. FETCH
Answer: d. FETCHtestbook - In HTTP, which header tells the server what type of browser the client is?
a. Host
b. Content-Type
c. User-Agent
d. Accept
Answer: c. User-Agentexamradar - A complete HTTP request contains:
a. Only header
b. Request line and header
c. Status line and header
d. Only status code
Answer: b. Request line and headerexamradar - HTTP is by default:
a. Secure
b. Encrypted
c. Plain text
d. Session oriented
Answer: c. Plain texttestbook+1 - The HTTP method used to delete a resource is:
a. HEAD
b. POST
c. PUT
d. DELETE
Answer: d. DELETEtestbook+1 - Status line is present in which HTTP message?
a. Request message
b. Response message
c. Both request and response
d. Neither message
Answer: b. Response messagesanfoundry - In HTTP headers, “Content-Type: application/json” indicates:
a. Resource is an image
b. Resource is JSON data
c. Resource is executable
d. Resource is XML data
Answer: b. Resource is JSON dataexamradar - HTTP protocol was created by:
a. Tim Berners-Lee and his team
b. Vint Cerf
c. Steve Jobs
d. Dennis Ritchie
Answer: a. Tim Berners-Lee and his teamtestbook - Which protocol is the secure version of HTTP?
a. FTP
b. SFTP
c. HTTPS
d. SSH
Answer: c. HTTPStestbook+1 - Which of the following is NOT present in an HTTP response?
a. Status line
b. Headers
c. Method
d. Body (optional)
Answer: c. Methodexamradar - The HTTP status code 500 indicates:
a. Server error
b. Resource created
c. Not found
d. Unauthorized
Answer: a. Server errortestbook - HTTP defines which of the following?
a. How messages are formatted and transmitted
b. How web clients and servers respond to requests
c. Status codes for responses
d. All of the above
Answer: d. All of the abovetestbook+1 - A web server that keeps copies of recently requested objects is called a:
a. Proxy server
b. Web cache
c. DNS server
d. Application server
Answer: b. Web cacheexamradar - Which HTTP response code means unauthorized access?
a. 404
b. 403
c. 401
d. 200
Answer: c. 401examradar - Which HTTP version introduced persistent connections as default?
a. 0.9
b. 1.0
c. 1.1
d. 2.0
Answer: c. 1.1examradar - The initial version of the HTTP protocol was released in:
a. 1991
b. 1995
c. 1990
d. 1999
Answer: a. 1991testbook - What media type is represented by “Content-Type: text/html” in HTTP headers?
a. Image
b. HTML document
c. PDF file
d. CSS
Answer: b. HTML documentexamradar
- https://testbook.com/objective-questions/mcq-on-http–5eea6a0939140f30f369d901
- https://www.sanfoundry.com/computer-networks-mcqs-http/
- https://examradar.com/www-http-mcq-data-communication-networking/
- https://www.sanfoundry.com/iot-questions-answers-http-protocol/
- https://testbook.com/objective-questions/mcq-on-internet-internet-protocols–64f9c109be446ffcbc1c7c42
- https://www.youtube.com/watch?v=P9omoJXSrUU
- https://reck.ac.in/wp-content/uploads/2023/04/DCN_MCQ-Ashwini-.pdf
- https://www.scribd.com/doc/291312327/100-MCQ-Questions-for-HTML-and-Web-Page-Designing-MCQ-Sets
- https://www.uninets.com/blog/computer-networks-mcq
- https://www.scribd.com/document/513484664/Computer-Network-1
- https://www.interviewbit.com/computer-network-mcq/
- https://www.placementpreparation.io/mcq/computer-network/
- https://compsciedu.com/mcq-questions/Web-Technologies/HTTP
- https://www.objectivequiz.com/http-questions-answers
- https://www.scribd.com/document/885883490/CLASS-VIII-Chapter-1-Important-MCQs
- https://www.yogiraj.co.in/mcqs-on-what-is-http
- https://www.placementpreparation.io/mcq/web-technology/