Which of the following methods can be used to read the contents of a directory?
Correct Answer: fs.readdir()
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Node.js Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Node.js MCQ Questions
Which of the following statements is true about the console Object in Node.js?
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 Node.js module can be used to get the IP address of the server the program is running on?
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 flags working with npm?
Which of the following code snippets should be added at the top of those files that use the mongodb module?
The following code snippet should provide the output '[125, 450, 80]'. However, line 3 contains an error. What should be the correct syntax of line 3? 1)var m1 =[5.10. 35,125,450. 80. 40]; 2)var _ = require(’underscore'); 3)var output = _(m1. function (vall) 4)[ 5) return val1 >50 6)}): 7)console.log(output);
Which of the following methods is used for setting a signed cookie? Note: Consider the function inside which the method setting is performed as: function (r, s).
Which of the following is the correct function of the ng-repeat directive?
Which of the following commands in the Node debugger helps user to step out of the current executing function?