Question
In HTTP request methods, which of the following methods
is not idempotent ?ÂSolution
In HTTP, an idempotent operation is one that can be applied multiple times without changing the result after the initial application. For instance, if you perform a GET or PUT request multiple times with the same parameters, the result will not change beyond the initial request. However, POST is not idempotent because it is used to submit data to be processed by the server, and each POST request can result in a different outcome. For example, submitting a POST request to create a new resource will create a new instance every time, even if the same request is sent multiple times. GET requests retrieve data and have no side effects, so they are considered idempotent. PUT requests are idempotent because they replace the resource at a specific URL with the same data every time, ensuring the same result on repeated requests. DELETE requests are idempotent because, after deleting a resource, subsequent DELETE requests for the same resource do not change the state (the resource is already deleted). PATCH requests are considered idempotent when they update a resource in a way that does not alter the resource's state with repeated requests, but the primary difference with POST is that PATCH typically modifies parts of a resource, while POST often creates new resources.
What sum of money at 120% compound interest per annum amounts to Rs.376.32 in 2 years?
- Nisha placed Rs. 25,000 in plan 'P' and Rs. 40,000 in plan 'Q'. Plan 'P' earns 14% simple interest annually for 2 years, and plan 'Q' earns 9% per annum fo...
Raju invests a certain amount at an annual simple interest rate of 6% for 2 years. The total amount he receives after this period is then reinvested at ...
Sam invested a certain sum in scheme A for 5 years and in scheme B for 3 years, a sum which was double of that invested in scheme A. Both the schemes of...
A man deposited 25% of his salary to a bank which offers compound interest at the rate of 10% p.a. If the interest earned by him from the bank after 2 y...
Vikas invested Rs. 12,000 at an annual compound interest rate of 30%, with the interest being compounded annually after every 10 months. What is the in...
A table is available for Rs.350 or for Rs. 150 cash down payment together with Rs.230 to be paid after two months. Find the rate of interest charged und...
A man deposited Rs. ‘x + 1400’ at 12% per annum simple interest and earned Rs. 828 as interest after 2 years. Find the interest earned by him if he ...
A certain sum when invested at compound interest of 5% p.a. amounts to Rs. 4410.25 in 2 years. Find the amount received when the same sum is invested at...
A sum of money lent at 5% rate of simple interest. The difference between interest for 6 years and 4 years is Rs. 2000. Find the principal amount.