Question
In RESTful APIs, which HTTP method is typically used to
completely replace an existing resource with new data?Solution
The PUT method in RESTful APIs is used to completely replace an existing resource with new data at the given URI. Unlike POST, which creates a new resource or submits data for processing, PUT is idempotent, meaning that successive requests should have the same effect as a single request. When a PUT request is sent, the server replaces the resource with the new data provided in the request body. For example, if you are updating user information, the PUT method would replace the entire user resource with the updated data. Why Other Options Are Wrong: A) GET: This is incorrect because GET is used for retrieving data from the server, not for modifying resources. B) POST: This is incorrect because POST is used for submitting data to create or process a resource, not for replacing existing resources. D) DELETE: This is incorrect because DELETE is used to remove resources, not replace them. E) OPTIONS: This is incorrect because OPTIONS is used to describe the communication options for the target resource, not for modifying or replacing resources.
Fork() command is used to create a new process. State true or false.
Which key is used to create a digital signature?
In a wireless LAN, which IEEE standard is commonly associated with the Wi-Fi protocol?
- To evaluate a postfix expression we can use a _________
Which probability distribution represents a continuous random variable with a constant probability density function over a specified interval?
Which protocol is primarily responsible for resolving logical IP addresses to physical MAC addresses within a local network segment?
Which of the following is an example of a message-passing IPC mechanism?
The SI unit for measuring energy is:
Which of the following is NOT a potential concurrency control issue?
What is the primary difference between a breadth-first search (BFS) and a depth-first search (DFS) in graph traversal?