Loading

Quipoin Menu

Learn • Practice • Grow

node-js / package.json Deep Dive
mcq
Direction: Choose the correct option

Q1.

Which file contains metadata about a Node.js project?
A. README.md
B. package-lock.json
C. index.js
D. package.json
Direction: Choose the correct option

Q2.

What is the `scripts` section in `package.json` used for?
A. To define custom npm commands
B. To list dependencies
C. To store JavaScript code
D. To specify the entry point
Direction: Choose the correct option

Q3.

Which field in `package.json` specifies the entry point of the application?
A. entry
B. main
C. start
D. index
Direction: Choose the correct option

Q4.

What is the purpose of `dependencies` in `package.json`?
A. Packages required to run the application in production
B. Packages required for development only
C. Packages installed globally
D. Optional packages
Direction: Choose the correct option

Q5.

How can you run a script named `start` defined in `package.json`?
A. node start
B. Both A and B
C. npm start
D. npm run start