Loading

Quipoin Menu

Learn • Practice • Grow

express-js / Express.js HTTP Methods
mcq
Direction: Choose the correct option

Q1.

Which HTTP method is typically used to retrieve data?
A. POST
B. PUT
C. GET
D. DELETE
Direction: Choose the correct option

Q2.

Which HTTP method is used to create a new resource on the server?
A. PUT
B. GET
C. PATCH
D. POST
Direction: Choose the correct option

Q3.

What is the purpose of the PUT method?
A. To retrieve a resource
B. To delete a resource
C. To update an entire resource or create if not exists
D. To partially update a resource
Direction: Choose the correct option

Q4.

Which method is used to remove a resource?
A. CLEAR
B. ERASE
C. DELETE
D. REMOVE
Direction: Choose the correct option

Q5.

Given the route app.put('/users/:id'), what does :id represent?
A. A header value
B. A route parameter
C. A query parameter
D. A request body field