Node.js Test
What does process.argv[1] contain?
What does the following code do? var http = require('http'); var fs = require('fs'); var file = fs.createWriteStream("file.png"); var request = http.get("http://path/to/file.png", function(respon...
What does the following command do? npm view <package-name> version
Which array contains the command line arguments in Node.js?
Which Node.js module can be used to get the IP address of the server the program is running on?
Which of the following can be used to access the environment variable, "ENV_VARIABLE" in Node.js?
Which of the following can be used to get the currently running script's path in Node.js?
Which of the following command-line arguments to "npm install" will allow an NPM package's binaries to be run outside the project folder?
Which of the following console commands will update all installed global packages to the latest available versions?
Which of the following methods can be used to read the contents of a directory?
Which of the following methods can be used to write a file in Node.js?
Which of the following methods will print to the console without a trailing new line?
Which of the following NPM commands will install both dependencies and devDependencies of a given project?
Which of the following statements are true about the child_process module in Node.js?
Which of the following statements are true about the module.exports object in Node.js?
Which of the following statements is true about the console Object in Node.js?
Which of the following statements is true about the process object in Node.js?
Which of the following will copy a file in Node.js?
Which of the following will open a file, then read its contents one line at a time?
Which of the following will synchronously check if a file/directory exists?
What does the following code do? var http = require('http'); var fs = require('fs'); var file = fs.createWriteStream("file.png"); var request = http.get("http://path/to/file.png", function(response) { response.pipe(file); });

Which of the following file extensions supports Node Module System ?

Which following functions are partially buffered?

Which of the following is the result of module.id ?

Which of the following variables you can use in modules?

You have a file rect.js with the following contents, What would be the appropriate ways to call the exported function? module.exports = function area(a, b) { return a*b; }
Which module of core node.js API is used for writing unit tests for your applications?
Which of the following will remove a file from your file system?

Which of the libs are exists in Node Core Libraries?

What happens when executing the following code? assert = require('assert'); assert(false, 'assert false');

Which of the following template engines is working with Express.js?

Which of the following names is second param of res.render method?

Which of the following keywords is used to achieve await-like behaviour?

Which of the following is correct while using a Node module http in a Node based application?

Which of the following frameworks is most popular Node.js framework?

Which of the following implements stream.Readable interface?
How would you get the name of the JavaScript file being executed?

Which following code is valid to convert a buffer buf to JSON object?

Which of the following classes is the parent for repl.REPLServer class?

Which following code is valid to print the current operating system?

How would you get operating system name?

Which of the following libraries are used for mocking modules?

Which of the following events are emitted by the Readable Stream?

Which of the following engine built of NodeJS framework/platform?

You would like to inherit the prototype methods from one constructor into another. How could that be accomplished with core node.js functionality?

Which following command ___ shows version of Node?

Which following code is valid to get a joint path?

Which of the following modules is required to create server for NodeJS?

How can you stop reading from stdin?

Which of the following is operates asynchronous logic?

Which of the following flags working with npm?

Which of the following methods can be used to write a file in Node.js? (check all that apply)
Which command enables you to input data using keyboard into your node application?