Loading...
QUIZ

Certification Test

 
Que No. 1 ) Which of the following method of fs module is used to get file information?

A.) fs.open(path, flags[, mode], callback)
B.) fs.stat(path, callback)
C.) fs.readFile(path, flags[, mode], callback)
D.) None of the above.


Que No. 2 ) What is the default scope in the Node.js application?

A.) Global
B.) Local
C.) Global Function
D.) Local to object


Que No. 3 ) What does the fs module stand for?

A.) File Service
B.) File System
C.) File Store
D.) File Sharing


Que No. 4 ) Which of the following method of fs module is used to truncate a file?

A.) fs.delete(fd, len, callback)
B.) fs.remove(fd, len, callback)
C.) fs.ftruncate(fd, len, callback)
D.) None of the above.


Que No. 5 ) Which of the following template engines can be used with Node.js?

A.) Jade
B.) Vash
C.) Handlebars
D.) All of the above


Que No. 6 ) Which of the following code print the platform of operating system?

A.) console.log('platform : ' + os.platform);
B.) console.log('platform : ' + os.platform());
C.) console.log('platform : ' + os.getPlatform());
D.) None of the above.


Que No. 7 ) Which of the following method is used to return the current working directory of the process?

A.) cwd();
B.) cwd();
C.) pwd();
D.) None of the above.


Que No. 8 ) Which of the following statement defines Express?

A.) Express is an application framework that provides a robust set of features to develop desktop-based applications.
B.) Express is a minimal and flexible Node.js web application framework that provides a robust set of features to develop web and mobile applications.
C.) Both of the above.
D.) None of the above.


Que No. 9 ) Which of the following is not a benefit of using modules in Express?

A.) It provides a means of dividing up tasks.
B.) It provides a means of reuse of program code.
C.) It provides a means of reducing the size of the program.
D.) It provides a means of testing individual parts of the program.


Que No. 10 ) What is the best practice to do in your code to improve the performance of your application?

A.) Using gzip compression.
B.) Don't use synchronous functions.
C.) Do logging correctly.
D.) Handle exceptions properly.