Q. In the context of web protocols, what does the acronym 'REST' stand for?
A.
Representational State Transfer
B.
Remote Execution State Transfer
C.
Real-time Event Stream Transfer
D.
Resource Endpoint State Transfer
Show solution
Solution
REST stands for Representational State Transfer, which is an architectural style for designing networked applications.
Correct Answer:
A
— Representational State Transfer
Learn More →
Q. What is the main advantage of using HTTPS over HTTP?
A.
Faster loading times
B.
Data encryption
C.
Lower latency
D.
Simpler implementation
Show solution
Solution
HTTPS provides data encryption, ensuring that the data transmitted between the client and server is secure from eavesdropping.
Correct Answer:
B
— Data encryption
Learn More →
Q. What is the primary function of the 'User-Agent' header in an HTTP request?
A.
To specify the type of content
B.
To identify the client software making the request
C.
To manage session state
D.
To control caching behavior
Show solution
Solution
The 'User-Agent' header identifies the client software making the request, allowing the server to tailor responses accordingly.
Correct Answer:
B
— To identify the client software making the request
Learn More →
Q. What is the purpose of the 'Cache-Control' header in HTTP?
A.
To manage user authentication
B.
To specify caching policies for responses
C.
To define the content type
D.
To indicate the server's load
Show solution
Solution
The 'Cache-Control' header specifies caching policies for responses, helping to control how and for how long responses are cached by clients and intermediaries.
Correct Answer:
B
— To specify caching policies for responses
Learn More →
Q. Which HTTP status code indicates that a resource has been successfully created?
A.
200
B.
201
C.
204
D.
404
Show solution
Solution
The HTTP status code 201 indicates that a resource has been successfully created, typically in response to a POST request.
Correct Answer:
B
— 201
Learn More →
Q. Which of the following is a characteristic of HTTP/2 compared to HTTP/1.1?
A.
Text-based protocol
B.
Single request-response per connection
C.
Multiplexing of streams
D.
No header compression
Show solution
Solution
HTTP/2 introduces multiplexing of streams, allowing multiple requests and responses to be sent simultaneously over a single connection.
Correct Answer:
C
— Multiplexing of streams
Learn More →
Q. Which of the following protocols is used to secure HTTP traffic?
A.
FTP
B.
SMTP
C.
HTTPS
D.
Telnet
Show solution
Solution
HTTPS is the secure version of HTTP, using encryption protocols like SSL/TLS to secure data transmitted over the web.
Correct Answer:
C
— HTTPS
Learn More →
Showing 1 to 7 of 7 (1 Pages)