Loading

Quipoin Menu

Learn • Practice • Grow

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

Q1.

What must be installed before you can use Express.js?
A. Apache
B. Python
C. Node.js and npm
D. Ruby
Direction: Choose the correct option

Q2.

Which command checks the installed version of Node.js?
A. node -v
B. npm version
C. Both B and C
D. node --version
Direction: Choose the correct option

Q3.

What is the purpose of running npm init in an Express project?
A. To start the server
B. To create a package.json file
C. To run tests
D. To install Express
Direction: Choose the correct option

Q4.

Which file is created by npm init?
A. package.json
B. package-lock.json
C. index.js
D. server.js
Direction: Choose the correct option

Q5.

What does the main field in package.json specify?
A. The main version
B. The main author
C. The main dependency
D. The entry point file of the application