Loading

Quipoin Menu

Learn • Practice • Grow

Direction: Choose the correct option

Q1.

What is npx?
A. A package runner tool that comes with npm
B. A new version of npm
C. A Node.js debugger
D. A package uninstaller
Direction: Choose the correct option

Q2.

When would you use `npx create-react-app my-app` instead of installing globally?
A. To avoid global installation and use the latest version
B. To run it in the background
C. To create a config file
D. It's the only way
Direction: Choose the correct option

Q3.

What happens if you run `npx cowsay Hello` and `cowsay` is not installed?
A. It installs it globally
B. It throws an error
C. It does nothing
D. It temporarily installs `cowsay` and runs it
Direction: Choose the correct option

Q4.

How is npx different from running a globally installed package?
A. npx runs from the local `node_modules` or temporary cache
B. npx is slower
C. npx requires sudo
D. There's no difference
Direction: Choose the correct option

Q5.

Which command runs a package without installing it, using npx?
A. node <package>
B. npm run <package>
C. npm exec <package>
D. npx <package>