W3
Teacher
Explore
Browse by field
Artificial Intelligence
Accounting & Finance
Information Technology
Show all fields
Interview Q&A
All Interview Questions
Beginner
Intermediate
Advanced
Practice
MCQs
Quizzes
Mock Interviews
About
Light
Dark
Auto
Sign in
Get Started
Search interview questions
Search
12 questions for “npm & Packages”
Found in 1 field. Select a question to see its full answer.
Information Technology
12 questions in 1 technology
#
Question
Technology
Topic
Level
1
What is a monorepo, and what specific tooling (like
npm
workspaces or Turborepo) helps manage multiple related Node.js
packages
within a single repository?
Node.js › Git & Project Management
Node.js
Git & Project Management
Intermediate
2
What is
npm
, and what is its relationship to the Node.js runtime itself?
Node.js › Node.js Fundamentals & Runtime Architecture
Node.js
Node.js Fundamentals & Runtime Architecture
Beginner
3
What is the difference between
npm
, Yarn, and p
npm
as Node.js package managers, and what specific advantage does p
npm
offer regarding disk space?
Node.js › Git & Project Management
Node.js
Git & Project Management
Intermediate
4
What is the purpose of a package-lock.json file in a Node.js project, and why should it be committed to version control?
Node.js › Git & Project Management
Node.js
Git & Project Management
Beginner
5
What is the purpose of a .gitignore file in a Node.js project, and what should always be included in it?
Node.js › Git & Project Management
Node.js
Git & Project Management
Beginner
6
What is the purpose of a CHANGELOG.md file in a Node.js project, and what should typically be included in each entry?
Node.js › Git & Project Management
Node.js
Git & Project Management
Beginner
7
What is a shebang line, and why does it need to be the first line of an executable Node.js CLI script?
Node.js › CLI Tools & Scripting with Node.js
Node.js
CLI Tools & Scripting with Node.js
Beginner
8
What is a Dockerfile, and what are the essential steps in a basic Dockerfile for a Node.js application?
Node.js › Docker & Containerization for Node.js
Node.js
Docker & Containerization for Node.js
Beginner
9
What is semantic versioning (semver), and how does it inform how a Node.js package's version number should change between releases?
Node.js › Git & Project Management
Node.js
Git & Project Management
Intermediate
10
How would you parse command-line arguments and flags in a Node.js CLI tool using a library like commander or yargs?
Node.js › CLI Tools & Scripting with Node.js
Node.js
CLI Tools & Scripting with Node.js
Intermediate
Show all 12 questions in Information Technology