Which of the following HTTP methods is designed to retrieve data safely from a specified web resource without causing any side effects or modifications on the server? MCQ with Answer and Explanation

Which of the following HTTP methods is designed to retrieve data safely from a specified web resource without causing any side effects or modifications on the server?
A. GET
B. DELETE
C. PUT
D. POST
Answer: Option A
Solution (By JKSSB Mock Tests)
The GET method is used strictly to request and fetch data from a designated resource without changing the state of that resource on the server.

Discuss this Question (0)

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

Practice More Internet and Web Technologies Questions

Question #1
Which of the following is an extension to the basic email protocol that permits the transmission of non-text attachments such as images, audio, and documents?
A. IMAP
B. MIME
C. SMTP
D. POP3

Correct Answer: Option B


Explanation:
MIME (Multipurpose Internet Mail Extensions) extends the basic email capabilities to allow multimedia attachments and non-ASCII character sets.

This question belongs to: Computer Internet and Web Technologies
Question #2
Which of the following is a common method to prevent clickjacking?
A. X-Frame-Options header
B. Both A and B
C. SameSite cookie attribute
D. Content-Security-Policy with frame-ancestors

Correct Answer: Option B


Explanation:
Both X-Frame-Options and CSP's frame-ancestors directive can be used to control iframe embedding, preventing clickjacking.

This question belongs to: Computer Internet and Web Technologies
Question #3
What is the purpose of the 'If-Modified-Since' HTTP header?
A. To request a conditional GET if the resource has been modified since the date
B. To check for updates
C. To specify cache expiration
D. To set the last modified time

Correct Answer: Option A


Explanation:
If-Modified-Since allows the client to request the resource only if it has been modified since the specified date, saving bandwidth.

This question belongs to: Computer Internet and Web Technologies