Loading

Quipoin Menu

Learn • Practice • Grow

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

Q1.

Which npm command installs Express.js?
A. npm install express
B. npm express install
C. npm add express
D. Both B and C
Direction: Choose the correct option

Q2.

What flag should you use to save Express as a dependency in package.json?
A. --save'
B. --dev'
C. --global'
D. --optional'
Direction: Choose the correct option

Q3.

After installing Express, where is it listed?
A. In a separate express.json file
B. In the dependencies section of package.json
C. In the node_modules folder only
D. In the devDependencies section
Direction: Choose the correct option

Q4.

How can you verify that Express is installed successfully?
A. Look for an express folder in node_modules
B. Check the version in package.json
C. Run express --version
D. All of the above
Direction: Choose the correct option

Q5.

What is the difference between --save and --save-dev?
A. --save installs globally, --save-dev installs locally
B. --save is for production, --save-dev is for development only
C. They are the same
D. --save adds to dependencies, --save-dev adds to devDependencies