CS & IT

Become A Certified Node JS Developer: Practice Tests 1

Become A Certified Node JS Developer: Practice Tests 1

Google Ads:

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

Correct! Wrong!

.js is the correct option. The ".js" extension is used to save the Node.js files.

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

Correct! Wrong!

console.log('platform : ' + os.platform()); is the correct option. The os.platform() returns the operating system platform.

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

Correct! Wrong!

fsread is the correct option. The "fsread" is not a built-in node module.

The Node.js modules can be exposed using:

Correct! Wrong!

exports is the correct option. The Node.js modules can be exposed using module.exports

Advertisement

What does the fs module stand for?

Correct! Wrong!

File System is the correct option. The fs module stands for File System.

Which of the following statement defines Express?

Correct! Wrong!

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

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

Correct! Wrong!

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.

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

Correct! Wrong!

Local is the correct option. Local is the default scope in the Node.js application.

Advertisement

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

Correct! Wrong!

$ node is the correct option. We can start REPL simply by running node on shell/console without any argument.

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

Correct! Wrong!

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.

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

Correct! Wrong!

$ npm install express is the correct option. The $ npm install express command is used to install the Node.js express module.

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

Correct! Wrong!

Handlebars is the correct option. The os.platform() returns the operating system platform.

Advertisement

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

Correct! Wrong!

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 statement is correct?

Correct! Wrong!

js is Server Side Language is the correct option. Node.js is Server Side Language.

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

Correct! Wrong!

cwd(); is the correct option. The process.cwd() method is used to return the current working directory of the process.

Which of the following engine Node in core?

Correct! Wrong!

Chrome V8 is the correct option. Node uses the Chrome V8 engine in the core.

Advertisement

In which language is Node.js written?

Correct! Wrong!

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

What does the REPL stand for?

Correct! Wrong!

REPL stands for "Read Eval Print Loop." is the correct option. REPL stands for "Read Eval Print Loop".

What is Callback?

Correct! Wrong!

The callback is a technique in which a method calls back the caller method.

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

Correct! Wrong!

fs.ftruncate(fd, len, callback) is the correct option. The fs.ftruncate(fd, len, callback) method is used to truncate a file.

Click Next Button or HERE for more Questions

Related Articles

Back to top button

You cannot copy content of this page

error: Content is protected !!
Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Adblock Detected

Please consider supporting us by disabling your ad blocker