MCQ Hive stays free thanks to ads. Please disable your ad blocker for this site so content and features keep working.
Web Development
Server-Side & Architecture
Beginner
Q
What is the difference between PUT and PATCH?
AThey are identical
BPATCH creates new resources only
CPUT replaces the whole resource; PATCH applies a partial update
DPUT is used for reading
Correct Answer:
C. PUT replaces the whole resource; PATCH applies a partial update
Explanation:
PUT is idempotent. PATCH is not guaranteed to be idempotent.
ALSO KNOW (related points):
• What does AJAX allow a web page to do? → Exchange data with the server asynchronously and update parts of the page without a full reload
• What is the main difference between a Single-Page Application (SPA) and a traditional multi-page site? → An SPA loads one HTML shell and updates content dynamically with JavaScript, instead of loading a new page from the server for each navigation
• What is the difference between progressive enhancement and graceful degradation? → Progressive enhancement starts with a working basic version and adds features for capable browsers; graceful degradation starts full-featured and provides fallbacks for older browsers
• To point a domain at a web server's IPv4 address, which DNS record do you create? → An A record