Which of the following is true about __filename global object?
a) The __filename represents the filename of the code being executed.
b) The __filename represents the resolved absolute path of code file.
c) Both of the above.
d) None of the above.
Which of the following code prints current directory?
a) console.log('Current directory: ' + process.cwd());
b) console.log('Current directory: ' + console.cwd());
c) console.log('Current directory: ' + process.currenWorkingDirectory());
d) None of the above.
Which of the following module is required for path specific operations?
a) os module
b) fs module
c) path module
d) path module
Which of the following stands true for dns.lookup(hostname[, options], callback) method?
a) Resolves a hostname (e.g. 'google.com') into the first found A (IPv4) or AAAA (IPv6) record.
b) If options is not provided, then IP v4 and v6 addresses are both valid. If options is an integer, then it must be 4 or 6.
c) Both of the above.
d) None of the above.
What REST stands for?
a) REpresentational State Transfer
b) Resource Efficient State Transfer
c) Real Elegant State Transfer
d) Resource Elegant State Transfer
Each type of Stream is an EventEmitter.
a) true
b) false
0
{"name":"Node JS", "url":"https://www.quiz-maker.com/Q3NU2T8","txt":"Which of following command starts a REPL session?, By default, npm installs any dependency in the global mode., Which of the following provides in-built events.","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}