๐Ÿงช Node JS MCQ Quiz Hub

Nodejs Mcq Question Set 1

Choose a topic to test your knowledge and improve your Node JS skills

Which of the following statement is correct?





โœ… Correct Answer: 1

What does the REPL stand for?





โœ… Correct Answer: 1

Which of the following command is used to start a REPL session?





โœ… Correct Answer: 1

In which language is Node.js written?





โœ… Correct Answer: 4

Which of the following command is used to install the Node.js express module?





โœ… Correct Answer: 1

What is Callback?





โœ… Correct Answer: 2

Which of the following extension is used to save the Node.js files?





โœ… Correct Answer: 1

The Node.js modules can be exposed using:





โœ… Correct Answer: 3

Which of the following module is not a built-in node module?





โœ… Correct Answer: 4

Which of the following method of fs module is used to get file information?





โœ… Correct Answer: 2

What does the fs module stand for?





โœ… Correct Answer: 2

Which of the following method of fs module is used to truncate a file?





โœ… Correct Answer: 3

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





โœ… Correct Answer: 3

Which of the following code print the platform of operating system?





โœ… Correct Answer: 2

Which of the following method is used to return the current working directory of the process?





โœ… Correct Answer: 1

Which of the following statement defines Express?





โœ… Correct Answer: 2

Which of the following is not a benefit of using modules in Express?





โœ… Correct Answer: 3

What is the best practice to do in your code to improve the performance of your application?





โœ… Correct Answer: 1

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





โœ… Correct Answer: 2

Which of the following engine Node in core?





โœ… Correct Answer: 1

Which of the following statement is used to execute the code of the sample.js file?





โœ… Correct Answer: 2

Which of the following is not a valid language for Node.js?





โœ… Correct Answer: 2

Which of the following shortcut command is used to kill a process in Node.js?





โœ… Correct Answer: 4

How many Node object methods are available?





โœ… Correct Answer: 2

What is the main usage of Node.js terminal (REPL)?





โœ… Correct Answer: 2

Which of the following types of applications can be built using Node.js?





โœ… Correct Answer: 4

Which of the following is used to test if two nodes are equal?





โœ… Correct Answer: 3

Which of the following tool is used to automate the various tasks of the Node.js application?





โœ… Correct Answer: 2

Which of the following areas, Node.js, is not advised to be used?





โœ… Correct Answer: 3

Which of the following route parameter formats are valid?





โœ… Correct Answer: 1

Which of the following module is required to create a web server?





โœ… Correct Answer: 4

Which of the following is the correct syntax to initiate the Node.js File?





โœ… Correct Answer: 3

Which of the following method is used to compare the placement of two nodes in the DOM hierarchy (document)?





โœ… Correct Answer: 2

Which of the following platforms does Node.js support?





โœ… Correct Answer: 4

Which of the following keyword is used to make properties and methods available outside the module file?





โœ… Correct Answer: 3

Which of the following Node.js object property is used to return the node immediately before a node?





โœ… Correct Answer: 3

Which of the following method can append specified content to a file?





โœ… Correct Answer: 1

Which of the following is a GUI-based debugging tool for Node.js?





โœ… Correct Answer: 4

What is the use of underscore variable in REPL session in Node.js?





โœ… Correct Answer: 3

The buffer class is a global class that can be accessed without importing a buffer module.





โœ… Correct Answer: 2

Is Node.js multithreaded?





โœ… Correct Answer: 2

Is the process a global object and can be accessed from anywhere?





โœ… Correct Answer: 1

Node.js uses an event-driven, non-blocking I/O model. Is it true?





โœ… Correct Answer: 1

The net.isIP(input) returns 0 for invalid input. Is it true?





โœ… Correct Answer: 1

A stream fires finish event when all data has been flushed to the underlying system. Is it true?





โœ… Correct Answer: 1

A stream fires data event when there is data available to read. Is it true?





โœ… Correct Answer: 1

Which of the following is true about RESTful web services?





โœ… Correct Answer: 3

The Node.js modules can be exposed using





โœ… Correct Answer: 3

In Nodejs how node based web servers differ from traditional web servers?





โœ… Correct Answer: 1

Which statement executes the code of sample.js file?





โœ… Correct Answer: 2