Become A Certified Node JS Developer: Practice Tests 1
Google Ads:
Which of the following extension is used to save the Node.js files?
.js is the correct option. The ".js" extension is used to save the Node.js files.
Which of the following statement defines Express?
Express is a minimal and flexible Node.js web application framework that provides a robust set of features to develop web and mobile applications is the correct option. Express is a minimal and flexible Node.js web application framework that provides a robust set of features to develop web and mobile applications
Which of the following engine Node in core?
Chrome V8 is the correct option. Node uses the Chrome V8 engine in the core.
Which of the following template engines can be used with Node.js?
Handlebars is the correct option. The os.platform() returns the operating system platform.
Advertisement
Which of the following code print the platform of operating system?
console.log('platform : ' + os.platform()); is the correct option. The os.platform() returns the operating system platform.
Which of the following command is used to install the Node.js express module?
$ npm install express is the correct option. The $ npm install express command is used to install the Node.js express module.
What is the default scope in the Node.js application?
Local is the correct option. Local is the default scope in the Node.js application.
What is Callback?
The callback is a technique in which a method calls back the caller method.
Advertisement
Which of the following is not a benefit of using modules in Express?
It provides a means of reducing the size of the program is the correct option. "It provides a means of reducing the size of the program" is not a benefit of modules in Express.
What does the REPL stand for?
REPL stands for "Read Eval Print Loop." is the correct option. REPL stands for "Read Eval Print Loop".
The Node.js modules can be exposed using:
exports is the correct option. The Node.js modules can be exposed using module.exports
Which of the following command is used to start a REPL session?
$ node is the correct option. We can start REPL simply by running node on shell/console without any argument.
Advertisement
Which of the following module is not a built-in node module?
fsread is the correct option. The "fsread" is not a built-in node module.
Which of the following method of fs module is used to get file information?
fs.stat(path, callback) is the correct option. The fs.stat(path, callback) method is used to get information about a file.
Which of the following method of fs module is used to truncate a file?
fs.ftruncate(fd, len, callback) is the correct option. The fs.ftruncate(fd, len, callback) method is used to truncate a file.
Which of the following statement is correct?
js is Server Side Language is the correct option. Node.js is Server Side Language.
Advertisement
Which of the following method is used to return the current working directory of the process?
cwd(); is the correct option. The process.cwd() method is used to return the current working directory of the process.
What does the fs module stand for?
File System is the correct option. The fs module stands for File System.
What is the best practice to do in your code to improve the performance of your application?
Using gzip compression is the correct option. Using gzip compression is the best practice to do in your code to improve the performance of your application.
In which language is Node.js written?
All of the theme is the correct option. Node.js is a cross-platform, back-end JavaScript runtime environment written in JavaScript, C, C++, and CoffeeScript language
Click Next Button or HERE for more Questions