Which HTTP method is idempotent? MCQ with Answer and Explanation

Which HTTP method is idempotent?
A. Both PUT and DELETE
B. PUT
C. POST
D. DELETE
Answer: Option A
Solution (By JKExamLibrary)
PUT and DELETE are idempotent: multiple identical requests have the same effect as a single request. POST is not idempotent.

This question belongs to: Computer Internet and Web Technologies

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Internet and Web Technologies Questions

Question #1 Report Error
What mechanism does a standard web connection implement to prevent old web session cookies from tracking a client browser indefinitely across the web?
A. Shifting unencrypted HTTP sites to alternative port lines
B. Altering local hardware MAC addresses dynamically
C. Configuring explicit 'Expires' or 'Max-Age' cookie parameters
D. Running continuous database search index queries

Correct Answer: Option C


Explanation:
The 'Expires' and 'Max-Age' attributes inside HTTP cookie creation strings specify the precise lifetime or timestamp after which a browser must delete that cookie.

This question belongs to: Computer Internet and Web Technologies
Question #2 Report Error
What is the function of the 's s l' / 't l s' cryptographic layer when handling web cookies configured with the 'Secure' attribute tag flag?
A. It automatically translates the domain text string into numerical IP locations.
B. It ensures that the cookie string is only transmitted over encrypted (HTTPS) connections, preventing interception on unencrypted paths.
C. It forces the browser to discard the cookie automatically when the session closes.
D. It blocks search engine bots from parsing the webpage layout structure completely.

Correct Answer: Option B


Explanation:
The 'Secure' attribute flag on a cookie directs the client browser to only transmit that cookie back to the server when using an encrypted HTTPS connection.

This question belongs to: Computer Internet and Web Technologies
Question #3 Report Error
Which HTTP status code is returned by a web server to indicate that the requested resource could not be found?
A. 301 Moved Permanently
B. 500 Internal Server Error
C. 200 OK
D. 404 Not Found

Correct Answer: Option D


Explanation:
The 404 Not Found status code indicates that the server cannot find the specific resource or page requested by the client browser.

This question belongs to: Computer Internet and Web Technologies