Sail E0 Webinar

MCQs

Total Questions : 25 | Page 2 of 3 pages
Question 11. How can we check the current version of NPM?
  1.    npm --version
  2.    npm --ver
  3.    npm help
  4.    None of the above
 Discuss Question
Answer: Option A. -> npm --version




Question 12. What is the advantage of using node.js?
  1.    It provides an easy way to build scalable network programs
  2.    Generally fast
  3.    Great concurrency
  4.    All of these
 Discuss Question
Answer: Option D. -> All of these




Question 13. Why a Node.JS code is pretty fast although being written in JavaScript?
  1.    Node.JS internally converts JavaScript code to Java based code and then execute the same
  2.    Node.JS internally converts JavaScript code to C based code and then execute the same
  3.    Being built on Google Chrome's V8 JavaScript Engine
  4.    None of the above
 Discuss Question
Answer: Option C. -> Being built on Google Chrome's V8 JavaScript Engine




Question 14. Which module is used to serve static resources in Node.js?
  1.    node-static
  2.    http
  3.    node-resource
  4.    static
 Discuss Question
Answer: Option A. -> node-static




Question 15. What is REPL in Node.js?
  1.    Eval
  2.    Print
  3.    Loop
  4.    All of these
 Discuss Question
Answer: Option D. -> All of these




Question 16. What should you do in your code to improve your application's performance?
  1.    Use gzip compression
  2.    Don't use synchronous functions
  3.    Do logging correctly
  4.    Handle exceptions properly
 Discuss Question
Answer: Option A. -> Use gzip compression




Question 17. Which of the following tool automates various tasks of Node.js application?
  1.    Express.js
  2.    GruntJS
  3.    NPM
  4.    None of the above
 Discuss Question
Answer: Option B. -> GruntJS




Question 18. To install Node.js express module
  1.    $ npm install express
  2.    $ node install express
  3.    $ install express
  4.    None of above
 Discuss Question
Answer: Option A. -> $ npm install express




Question 19. Is console a global object?
  1.    null
  2.    false
  3.    true
  4.    None
 Discuss Question
Answer: Option A. -> null




Question 20. Which of the followings are valid languages for Node.js?
  1.    JavaScript
  2.    Java
  3.    C++
  4.    C#
 Discuss Question
Answer: Option A. -> JavaScript




Latest Videos

Latest Test Papers