Which HTTP method is idempotent? MCQ with Answer and Explanation

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

Discuss this Question (0)

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

Practice More Internet and Web Technologies Questions

Question #1
Which protocol is used for sending email between mail servers?
A. SMTP
B. POP3
C. MIME
D. IMAP

Correct Answer: Option A


Explanation:
SMTP is used for email transmission both from clients to servers and between servers for relaying messages.

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

Correct Answer: Option D


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 #3
What does the 'Content-Security-Policy' (CSP) HTTP response header instruct a web browser to enforce?
A. To restrict the specific trusted domains from which a webpage can load scripts, styles, and assets, protecting against Cross-Site Scripting (XSS) injections
B. To route incoming text emails through unencrypted FTP pathways
C. To double the physical data processing capacity of network router cards
D. To wipe local device browser cache modules automatically

Correct Answer: Option A


Explanation:
CSP is an effective security layer that allows site administrators to declare approved sources of content, preventing browsers from executing unauthorized or malicious scripts.

This question belongs to: Computer Internet and Web Technologies