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
Which statement about REST APIs is correct?
AThey keep session state on the server for each request
BThey must use XML
CThey require SOAP envelopes
DThey expose resources through URLs, use HTTP methods (GET, POST, PUT, DELETE), and are stateless
Correct Answer:
D. They expose resources through URLs, use HTTP methods (GET, POST, PUT, DELETE), and are stateless
Explanation:
SOAP is an XML protocol with its own envelope format. REST is an architectural style.
ALSO KNOW (related points):
• Which of these are web server software? → Apache HTTP Server, Nginx, and Microsoft IIS
• Which statement about React is correct? → It is a JavaScript library for building user interfaces, created by Meta (Facebook), that uses a virtual DOM
• What does npm do? → It is the package manager for Node.js, used to install and manage JavaScript libraries
• Which hosting type gives you dedicated virtual resources and root access at a moderate cost? → VPS (Virtual Private Server)