Loading

Quipoin Menu

Learn • Practice • Grow

express-js / Mini Full-Stack Project (Blog/E-commerce API)
mcq
Direction: Choose the correct option

Q1.

In a blog API, which route would you use to get all posts?
A. GET /getPosts
B. GET /posts/all
C. GET /posts
D. GET /blog
Direction: Choose the correct option

Q2.

In an e-commerce API, how would you handle adding an item to a user's cart?
A. POST /cart/addItem
B. GET /cart/add
C. POST /cart with item details in the body
D. PUT /cart/item
Direction: Choose the correct option

Q3.

What is a common way to structure a full-stack project with Express backend and React frontend?
A. All code in one folder
B. Both A and C are common
C. Separate folders for backend and frontend with API calls
D. Backend serves frontend as static files
Direction: Choose the correct option

Q4.

Which of the following is a key consideration when building a full-stack project?
A. All of the above
B. Error handling
C. Data validation
D. Authentication and authorization
Direction: Choose the correct option

Q5.

What is the role of environment variables in a full-stack project?
A. To set up middleware
B. To compile code
C. To store configuration settings like database URLs and API keys securely
D. To define routes