Certified Node.JS Developer Sample Questions

  â†µ


Sample Questions
 

 

1. Which statement will use a Node module https in a Node based application?
A. var https = require("https");
B. var https = import("https");
C. package https;
D. import https;

2. What will show version of npm?
A. $ npm --version
B. $ node --version
C. $ npm getVersion
D. $ node getVersion

3. Which statement will use a Node module fs in a Node based application?
A. var fs = require("fs");
B. var fs = import("fs");
C. package fs;
D. import fs;

4. Which fs module's method will read a directory?
A. fs.readDirectory(path[, mode], callback)
B. fs.read(path[, mode], callback)
C. fs.readdir(path, callback)
D. None of the above

5. What will print the name of operating system?
A. console.log('type : ' + os.type);
B. console.log('type : ' + os.type());
C. console.log('type : ' + os.getType());
D. None of the above


Answers:      1 (A), 2 (A), 3 (A), 4 (C), 5 (B)
 

Apply for Certification

 

https://www.vskills.in/certification/Web-Development/Certified-Node-JS-Developer

 For Support