Loading

Quipoin Menu

Learn • Practice • Grow

node-js / Introduction to Express.js
mcq
Direction: Choose the correct option

Q1.

What is Express.js?
A. A testing framework
B. A minimal web framework for Node.js
C. A templating engine
D. A database library
Direction: Choose the correct option

Q2.

Why would you use Express over raw Node.js?
A. Built-in static file serving
B. Simplifies routing and middleware
C. All of the above
D. Easier request handling
Direction: Choose the correct option

Q3.

How do you install Express.js?
A. npm express
B. npm install express
C. npm i -g express
D. install express
Direction: Choose the correct option

Q4.

What is middleware in Express?
A. Database models
B. Template files
C. Routes
D. Functions that have access to request and response objects
Direction: Choose the correct option

Q5.

How do you create a basic Express app that listens on port 3000?
A. const app = require('express')(); app.start(3000);
B. express.createServer(3000);
C. new Express().listen(3000);
D. const express = require('express'); const app = express(); app.listen(3000);