Order PDF of any content from our website with a little minor Fee to donate for hard work. Online MCQs are fully free but PDF books are paid. For details: contact whatsapp +923028700085 Important notes based PDF Books are available in very little price, starting from 500/-PKR; Order Now: contact whatsapp +923028700085

WWW and HTTP – MCQs

Q#1: WWW stands for:
(A) World Web Wide
(B) World Wide Web
(C) Wide World Web
(D) Web Wide World
Answer: (B) World Wide Web

Q#2: HTTP stands for:
(A) HyperText Transfer Protocol
(B) Hyper Transmission Text Protocol
(C) HyperText Transfer Program
(D) Hyper Transmission Transfer Protocol
Answer: (A) HyperText Transfer Protocol

Q#3: HTTP operates at which layer of the TCP/IP model?
(A) Transport
(B) Network
(C) Application
(D) Data Link
Answer: (C) Application

Q#4: The default port for HTTP is:
(A) 20
(B) 21
(C) 80
(D) 443
Answer: (C) 80

Q#5: HTTPS is HTTP over:
(A) UDP
(B) TLS/SSL
(C) FTP
(D) TCP only
Answer: (B) TLS/SSL

Q#6: HTTPS default port is:
(A) 20
(B) 21
(C) 443
(D) 80
Answer: (C) 443

Q#7: HTTP is a:
(A) Connection-oriented protocol
(B) Stateless protocol
(C) Secure protocol only
(D) Data Link protocol
Answer: (B) Stateless protocol

Q#8: In HTTP, the client initiates communication using a:
(A) Request
(B) Response
(C) Acknowledgment
(D) Packet
Answer: (A) Request

Q#9: The server sends back:
(A) Request
(B) Response
(C) Packet only
(D) None
Answer: (B) Response

Q#10: Which HTTP method is used to retrieve data?
(A) POST
(B) GET
(C) PUT
(D) DELETE
Answer: (B) GET

Q#11: Which HTTP method is used to send data to the server?
(A) GET
(B) POST
(C) DELETE
(D) PATCH
Answer: (B) POST

Q#12: PUT method in HTTP is used to:
(A) Create or update resource
(B) Retrieve resource
(C) Delete resource
(D) List directory
Answer: (A) Create or update resource

Q#13: DELETE method is used to:
(A) Retrieve files
(B) Delete resource
(C) Update resource
(D) Create resource
Answer: (B) Delete resource

Q#14: HEAD method in HTTP retrieves:
(A) Only headers
(B) Headers and body
(C) Only body
(D) None
Answer: (A) Only headers

Q#15: OPTIONS method in HTTP is used to:
(A) Retrieve resource
(B) Check supported methods
(C) Send data
(D) Delete resource
Answer: (B) Check supported methods

Q#16: PATCH method is used for:
(A) Partial update of resource
(B) Delete resource
(C) Create new resource
(D) Retrieve headers
Answer: (A) Partial update of resource

Q#17: HTTP status code 200 means:
(A) OK
(B) Not Found
(C) Server Error
(D) Redirect
Answer: (A) OK

Q#18: HTTP status code 404 indicates:
(A) Server error
(B) Resource not found
(C) OK
(D) Redirect
Answer: (B) Resource not found

Q#19: HTTP status code 500 means:
(A) OK
(B) Client error
(C) Server error
(D) Redirect
Answer: (C) Server error

Q#20: HTTP status code 301 indicates:
(A) Temporary redirect
(B) Permanent redirect
(C) Server error
(D) Resource deleted
Answer: (B) Permanent redirect

Q#21: HTTP/1.1 supports:
(A) Persistent connections
(B) Stateless connections only
(C) Encrypted connections by default
(D) UDP transfer
Answer: (A) Persistent connections

Q#22: HTTP headers are used to:
(A) Provide metadata
(B) Encrypt data
(C) Route packets
(D) Store cookies only
Answer: (A) Provide metadata

Q#23: Content-Type header specifies:
(A) IP address
(B) Media type of resource
(C) Port number
(D) Status code
Answer: (B) Media type of resource

Q#24: User-Agent header identifies:
(A) Browser or client software
(B) Server IP
(C) Resource type
(D) Protocol version
Answer: (A) Browser or client software

Q#25: Cookie header is used to:
(A) Store client session information
(B) Encrypt data
(C) Route requests
(D) Check server status
Answer: (A) Store client session information

Q#26: HTTPS ensures:
(A) Authentication, encryption, integrity
(B) Only encryption
(C) Only authentication
(D) Only integrity
Answer: (A) Authentication, encryption, integrity

Q#27: HTTP/2 introduced:
(A) Multiplexing
(B) Stateless connections
(C) Only TCP
(D) Only UDP
Answer: (A) Multiplexing

Q#28: HTTP/2 improves performance using:
(A) Header compression
(B) Multiple connections
(C) UDP
(D) No improvement
Answer: (A) Header compression

Q#29: HTTP/3 is based on:
(A) TCP
(B) UDP with QUIC
(C) SSL only
(D) SMTP
Answer: (B) UDP with QUIC

Q#30: RESTful web services use:
(A) SMTP
(B) FTP
(C) HTTP methods
(D) DNS
Answer: (C) HTTP methods

Q#31: HTTPS uses which certificate standard?
(A) X.509
(B) SSL only
(C) DNSSEC
(D) IPSEC
Answer: (A) X.509

Q#32: Which header is used for caching control?
(A) Cache-Control
(B) Content-Type
(C) User-Agent
(D) Server
Answer: (A) Cache-Control

Q#33: Persistent connections allow:
(A) Multiple requests over single TCP connection
(B) One request per connection
(C) UDP transfer only
(D) Connectionless transfer
Answer: (A) Multiple requests over single TCP connection

Q#34: Stateless protocol means:
(A) Server keeps session info
(B) Server does not retain info between requests
(C) Client stores everything
(D) Only HTTPS
Answer: (B) Server does not retain info between requests

Q#35: URL stands for:
(A) Uniform Resource Locator
(B) Universal Resource Link
(C) Uniform Routing Location
(D) User Resource Locator
Answer: (A) Uniform Resource Locator

Q#36: Components of URL include:
(A) Protocol, domain, path
(B) IP only
(C) Header only
(D) Port only
Answer: (A) Protocol, domain, path

Q#37: HTTP/1.0 opens:
(A) One connection per request
(B) Persistent connection by default
(C) UDP connection
(D) Secure connection
Answer: (A) One connection per request

Q#38: HTTPS prevents:
(A) URL parsing
(B) Man-in-the-middle attacks
(C) TCP errors
(D) Routing loops
Answer: (B) Man-in-the-middle attacks

Q#39: HTTP/2 uses which transport protocol?
(A) TCP
(B) UDP
(C) ICMP
(D) ARP
Answer: (A) TCP

Q#40: HTTP request line consists of:
(A) Method, URL, version
(B) URL only
(C) Header only
(D) Body only
Answer: (A) Method, URL, version

Q#41: HTTP response line consists of:
(A) Status code and version
(B) Headers only
(C) Body only
(D) Method only
Answer: (A) Status code and version

Q#42: Secure HTTP uses:
(A) SSL/TLS
(B) IPSEC
(C) DNSSEC
(D) FTP
Answer: (A) SSL/TLS

Q#43: Web browser is an example of:
(A) HTTP client
(B) HTTP server
(C) DNS server
(D) SMTP server
Answer: (A) HTTP client

Q#44: Web server software is an example of:
(A) HTTP client
(B) HTTP server
(C) DNS server
(D) SMTP server
Answer: (B) HTTP server

Q#45: Redirection in HTTP is indicated by:
(A) 1xx codes
(B) 3xx codes
(C) 4xx codes
(D) 5xx codes
Answer: (B) 3xx codes

Q#46: Client caching improves:
(A) Network load
(B) Performance
(C) Errors
(D) Congestion
Answer: (B) Performance

Q#47: Chunked transfer encoding is used to:
(A) Send dynamic content in pieces
(B) Encrypt messages
(C) Route packets
(D) Change URL
Answer: (A) Send dynamic content in pieces

Q#48: HTTP persistent connections are also called:
(A) Keep-alive
(B) Stateless
(C) Non-persistent
(D) Chunked
Answer: (A) Keep-alive

Q#49: HTTP/2 supports:
(A) Multiplexed streams
(B) Single stream only
(C) UDP transfer
(D) Stateless only
Answer: (A) Multiplexed streams

Q#50: The main purpose of HTTP and WWW is:
(A) File transfer only
(B) Accessing and sharing web resources
(C) Remote login
(D) Email sending
Answer: (B) Accessing and sharing web resources

Contents Copyrights Reserved By T4Tutorials