Q. What does the 'GET' method in HTTP do?
-
A.
Sends data to the server
-
B.
Requests data from the server
-
C.
Deletes data on the server
-
D.
Updates data on the server
Solution
The 'GET' method in HTTP is used to request data from a specified resource on the server.
Correct Answer:
B
— Requests data from the server
Learn More →
Q. What does the status code 404 indicate in an HTTP response?
-
A.
OK
-
B.
Created
-
C.
Not Found
-
D.
Bad Request
Solution
The status code 404 indicates that the requested resource was not found on the server.
Correct Answer:
C
— Not Found
Learn More →
Q. What is the main function of cookies in HTTP?
-
A.
Data encryption
-
B.
Session management
-
C.
File storage
-
D.
Network routing
Solution
Cookies are used for session management, allowing servers to remember user sessions and preferences.
Correct Answer:
B
— Session management
Learn More →
Q. What is the main function of the 'POST' method in HTTP?
-
A.
To retrieve data
-
B.
To send data to the server
-
C.
To update data
-
D.
To delete data
Solution
The 'POST' method in HTTP is used to send data to the server, often resulting in a change in state or side effects on the server.
Correct Answer:
B
— To send data to the server
Learn More →
Q. What is the primary purpose of the HTTP header?
-
A.
To store data
-
B.
To provide metadata about the request/response
-
C.
To encrypt data
-
D.
To route packets
Solution
HTTP headers provide metadata about the request or response, such as content type, length, and caching policies.
Correct Answer:
B
— To provide metadata about the request/response
Learn More →
Q. Which HTTP status code indicates a successful request?
-
A.
200
-
B.
404
-
C.
500
-
D.
301
Solution
HTTP status code 200 indicates that the request was successful and the server returned the requested resource.
Correct Answer:
A
— 200
Learn More →
Q. Which of the following is NOT a characteristic of HTTP?
-
A.
Stateless
-
B.
Connection-oriented
-
C.
Text-based
-
D.
Request-response model
Solution
HTTP is a stateless protocol and is connectionless, meaning it does not maintain a persistent connection between requests.
Correct Answer:
B
— Connection-oriented
Learn More →
Q. Which protocol is commonly used for sending emails?
-
A.
HTTP
-
B.
FTP
-
C.
SMTP
-
D.
IMAP
Solution
SMTP (Simple Mail Transfer Protocol) is the protocol commonly used for sending emails over the internet.
Correct Answer:
C
— SMTP
Learn More →
Q. Which protocol is used to transfer files over the web?
-
A.
FTP
-
B.
HTTP
-
C.
SMTP
-
D.
SNMP
Solution
HTTP (Hypertext Transfer Protocol) is the protocol used for transferring web pages and files over the internet.
Correct Answer:
B
— HTTP
Learn More →
Showing 1 to 9 of 9 (1 Pages)