Question

1.
2.
3.
4.
Answer (Detailed Solution Below)

Option 3 : GET, PUT and DELETE are idempotent, while POST is not. / GET, PUT और DELETE आइडेम्पोटेंट हैं, जबकि POST नहीं है।

Advertisement

Detailed Solution

सही उत्तर GET, PUT and DELETE are idempotent, while POST is not. / GET, PUT और DELETE आइडेम्पोटेंट हैं, जबकि POST नहीं है। है।

Key Points
Helpful?
PrepSnapprepsnap.in • Part -A

Question:

A teacher asks students to analyse the following HTTP method data and choose the correct statement. / एक शिक्षक विद्यार्थियों से निम्नलिखित HTTP मेथड डेटा का विश्लेषण करके सही कथन चुनने को कहता है।

Method data :

GET : Retrieves a resource without changing server state : Yes POST : Submits data to create or process a resource : No PUT : Replaces the entire target resource : Yes DELETE : Removes the identified resource : Yes

1.
All four methods are idempotent because each names a resource. / चारों मेथड आइडेम्पोटेंट हैं क्योंकि प्रत्येक किसी संसाधन का नाम लेता है।
2.
POST and PUT are non-idempotent, while GET and DELETE are idempotent. / POST और PUT अनाइडेम्पोटेंट हैं, जबकि GET और DELETE आइडेम्पोटेंट हैं।
3.
GET, PUT and DELETE are idempotent, while POST is not. / GET, PUT और DELETE आइडेम्पोटेंट हैं, जबकि POST नहीं है।
4.
DELETE is non-idempotent because the resource disappears after the first call. / DELETE अनाइडेम्पोटेंट है क्योंकि पहली कॉल के बाद संसाधन गायब हो जाता है।

Correct Answer: GET, PUT and DELETE are idempotent, while POST is not. / GET, PUT और DELETE आइडेम्पोटेंट हैं, जबकि POST नहीं है।

Repeating GET, PUT or DELETE with the same request leaves the same server state, so they are idempotent; repeated POSTs can create multiple resources. / समान अनुरोध से GET, PUT या DELETE दोहराने पर सर्वर स्थिति समान रहती है, अतः वे आइडेम्पोटेंट हैं; दोहराए गए POST से कई संसाधन बन सकते हैं।

Downloaded from PrepSnap (prepsnap.in)