Question
Which of the following HTTP methods is idempotent and
used to completely replace a resource on the server?ÂSolution
The HTTP PUT method is idempotent, meaning that making the same request multiple times will result in the same outcome. It is used to completely replace a resource on the server with the provided data. If the resource does not exist, PUT can create it. However, subsequent PUT requests with the same data will not change the state of the resource, ensuring idempotency. Why Other Options are Incorrect: A) GET: The GET method is idempotent but is used to retrieve data, not replace it. B) POST: The POST method is not idempotent, as multiple requests can result in the creation of multiple resources. D) DELETE: While DELETE can be idempotent (deleting the same resource multiple times has no additional effect), it does not replace a resource. E) PATCH: The PATCH method is not idempotent and is used for partial updates to a resource, not complete replacement.
Mahima will say to me, “Do you like watching Thriller movies”?
Select the correct direct form of the given sentence.
Shyam asked me how I had persuaded his sister.
He added that he was sure that whatever differences (2)/existed between two parties (3) /will be resolved through dialogue. (4) /No error (5).
Select the correct indirect/direct speech for the given sentenceÂ
Father said to son, “ what time do the schools open and close?”
...The principal of the school says that they don’t favor ragging.
Select the option which correctly converts the given sentence into indirect speech.
You said to her, "I am feeling tired and want to rest now."
Select the most appropriate direct form of the given sentence.
My brother told me that I could see any film I wanted on TV.
Choose the option that is the direct form of the sentence.
I told them to be quiet.
Choose the option that is the direct form of the sentence.
Vikas said to Navin that he hadn’t met him since February the previous year.
Rani said, “We are organizing a cleaning programme in the colony tomorrow.”