Home / CSE MCQs / Node JS ::

CSE MCQs :: Node JS

  1. What should you do in your code to improve your application's performance?
  2. A.
    Use gzip compression
    B.
    Don't use synchronous functions
    C.
    Do logging correctly
    D.
    Handle exceptions properly

  3. Is console a global object?
  4. A.
    null
    B.
    false
    C.
    true
    D.
    None

  5. To install Node.js express module
  6. A.
    $ npm install express
    B.
    $ node install express
    C.
    $ install express
    D.
    None of above

  7. Which of the followings are valid languages for Node.js?
  8. A.
    JavaScript
    B.
    Java
    C.
    C++
    D.
    C#

  9. Which of the following tool automates various tasks of Node.js application?
  10. A.
    Express.js
    B.
    GruntJS
    C.
    NPM
    D.
    None of the above

  11. In Node.js APIs of Node.JS are which of the following?
  12. A.
    Asynchronous
    B.
    Synchronous
    C.
    Both of the above
    D.
    None of the above

  13. Which of the following class is used to create and consume custom events in Node.js?
  14. A.
    EventEmitter
    B.
    Events
    C.
    NodeEvent
    D.
    None of the above

  15. Which of the following template engines can be used with Node.js?
  16. A.
    Jade
    B.
    Vash
    C.
    Handlebars
    D.
    All of the above

  17. How can we create instance of http module?
  18. A.
    var http = require("http")
    B.
    var http = new require("http")
    C.
    var http = new http()
    D.
    None of the above

  19. Node.js supports which of the following platform?
  20. A.
    Windows
    B.
    Macintosh
    C.
    Unix/Linux
    D.
    All of the above