Home / CSE MCQs / Node JS ::

CSE MCQs :: Node JS

  1. Which of the following is true about RESTful web services?
  2. A.
    Webservices based on REST Architecture are known as RESTful web services
    B.
    Webservices uses HTTP methods to implement the concept of REST architecture
    C.
    Both of the above
    D.
    None of the above

  3. The Node.js modules can be exposed using
  4. A.
    module.expose
    B.
    module
    C.
    module.exports
    D.
    All of the above

  5. In Nodejs how node based web servers differ from traditional web servers?
  6. A.
    Node based server uses a single threaded model and can serve much larger number of requests compared to any traditional server like Apache HTTP Server.
    B.
    Node based server process request much faster than traditional server.
    C.
    There is no much difference between the two.
    D.
    All of the above

  7. Which statement executes the code of sample.js file?
  8. A.
    nodejs sample.js
    B.
    node sample.js
    C.
    sample.js
    D.
    None of the above

  9. What are the key features of Node.js?
  10. A.
    Real time Data intensive
    B.
    Highly scalable servers for Web Applications
    C.
    Builds fast and scalable network Applications
    D.
    All of the above

  11. How can we check the current version of NPM?
  12. A.
    npm --version
    B.
    npm --ver
    C.
    npm help
    D.
    None of the above

  13. What is the advantage of using node.js?
  14. A.
    It provides an easy way to build scalable network programs
    B.
    Generally fast
    C.
    Great concurrency
    D.
    All of these

  15. Why a Node.JS code is pretty fast although being written in JavaScript?
  16. A.
    Node.JS internally converts JavaScript code to Java based code and then execute the same
    B.
    Node.JS internally converts JavaScript code to C based code and then execute the same
    C.
    Being built on Google Chrome's V8 JavaScript Engine
    D.
    None of the above

  17. What is REPL in Node.js?
  18. A.
    Eval
    B.
    Print
    C.
    Loop
    D.
    All of these

  19. Which module is used to serve static resources in Node.js?
  20. A.
    node-static
    B.
    http
    C.
    node-resource
    D.
    static