DotLinux.net
Toggle Menu
Home
Topics
Linux Basics
Command Line
Shell Scripting
Networking
Security
Administration
Blogs
Latest Blogs
Quizzes
Disk and Storage Management
File System and Permissions
Linux Command Line Basics
Linux Environment and Variables
Networking Fundamentals
Package Management
Process and System Monitoring
Shell Scripting Basics
System Boot and Services
User and Group Management
Tools
Online Bash Compiler
About
Package Management
Quiz on installing,updating,and managing software packages on Linux.
1. Which package manager is primarily used for Python?
pip
npm
yarn
apt
2. Select all package managers used for JavaScript development.
npm
pip
yarn
pnpm
3. The 'package.json' file is used to declare project dependencies in Node.js projects.
True
False
4. What is the filename of the file used by Composer to manage PHP dependencies? (include .json extension)
5. What does the '-g' flag indicate when using 'npm install'?
Install globally
Install as a dev dependency
Update the package
Uninstall the package
6. Which of the following are standard types of dependencies in a package.json file?
dependencies
devDependencies
peerDependencies
systemDependencies
7. Yarn and npm use the same lock file format.
True
False
8. Which command updates all npm packages to their latest versions within version constraints?
npm update
npm upgrade
npm install latest
npm refresh
9. What command installs a package as a dev dependency with npm? (format: npm install <flag> <package>)
10. Which package managers are commonly used on Linux systems?
apt
yum
brew
dnf
11. What is the primary purpose of a lock file (e.g., package-lock.json, yarn.lock)?
To lock the project from editing
To ensure consistent dependency versions across installs
To encrypt sensitive data
To list dev dependencies only
12. Running 'npm install' without arguments installs all dependencies listed in package.json.
True
False
13. Which package manager is used for Ruby gems?
gem
pip
composer
npm
14. What does the 'npm audit' command do? (briefly describe its purpose)
15. Which commands uninstall a package using npm?
npm remove
npm uninstall
npm delete
npm rm
16. What is the default registry for npm packages?
https://registry.npmjs.org/
https://github.com/
https://npmjs.com/
https://yarnpkg.com/
17. Dev dependencies are required for the application to run in production.
True
False
18. Which package manager is commonly used for macOS to install command-line tools?
Homebrew (brew)
apt
yum
choco
19. Which are valid ways to specify a package version in package.json?
^1.2.3
~1.2.3
1.2.x
latest
20. What is the abbreviation for 'Node Package Manager'?
Reset
Answered 0 of 0 — 0 correct