Node.js Quiz MCQ Questions with Answer part 2

Categories: Node JS MCQ

Node.js Quiz MCQ Questions with Answer part 2

 

Q1. What is the default scope in Node.js application.

 Local

 Public

 Private

 Global

Answer: Local

 

Q2. Which of the following are not Node.js web application frameworks for?

  1. Express.js
  2. Geddy
  3. Aurelia
  4. Locomotive

Answer: Aurelia

 

Q3. Which of the following template engines can be used with Node.js?

  1. Jade
  2. Vash
  3. Handlebars
  4. All of the above

Answer: Handlebars

 

Q4. Which method returns the current working directory of the process.

  1. process.cwd();
  2. cwd();
  3. pwd();

Answer: process.cwd();

 

Q5. In which of the following areas, Node.js is perfect to use?

  1. I/O bound Applications
  2. Data Streaming Applications
  3. Data Intensive Realtime Applications DIRT
  4. All of the above.

Answer: All of the above.

 

Q6. REPL stands for.

  1. Read Eval Print Loop
  2. Research Eval Program Learn
  3. Read Earn Point Learn
  4. Read Eval Point Loop

Answer: Read Eval Print Loop

 

Q7. Command to start Node REPL

  1. $ node start
  2. $ node
  3. $ node repl
  4. $ node console

Answer: $ node

 

Q8. For What npm stands?

  1. Node Project Manager
  2. Node Package Manager
  3. New Project Manager
  4. New Package Manager

Answer: Node Project Manager

 

Q9. Command to show installed version of Node?

  1. $ npm --version
  2. $ node --version
  3. $ npm getVersion
  4. $ node getVersion

Answer: $ node --version

 

Q10. Command to list all modules that are install globally?

  1. $ npm ls -g
  2. $ npm ls
  3. $ node ls -g
  4. $ node ls

Answer: $ npm ls -g

Top Blogs
Angular and Node JS difference Published at:- Node.js Interview Question for experienced 2022 Published at:- What’s New in Node v16? let's know Published at:- Node.js Interview Questions and Answer for freshers Published at:- Node.js Interview Questions and Answer set 2 Published at:- Node.js Interview Questions and Answer for freshers set 3 Published at:- Node.js Quiz MCQ Questions with Answer Published at:- Node.js Quiz MCQ Questions with Answer part 2 Published at:-
R4R.co.in Team
The content on R4R is created by expert teams.