Loading

Quipoin Menu

Learn • Practice • Grow

Direction: Choose the correct option

Q1.

In a CLI notes app built with Node.js, how would you typically accept user input?
A. All of the above
B. Using `process.argv`
C. Using `readline` module
D. Using prompts
Direction: Choose the correct option

Q2.

To add a note from the command line, you might run a command like:
A. node app.js add 'Buy milk'
B. npm run add 'Buy milk'
C. All are possible
D. node app.js add --title='Buy milk'
Direction: Choose the correct option

Q3.

How would you store notes in a simple CLI app?
A. In memory
B. In a database
C. All of the above
D. In a JSON file
Direction: Choose the correct option

Q4.

What module is useful for parsing command-line arguments?
A. minimist
B. yargs
C. All of the above
D. commander
Direction: Choose the correct option

Q5.

To display a list of notes in the console, you would use:
A. process.stdout.write()
B. Any of these
C. console.log()
D. A table format