Home / CSE MCQs / Node JS ::

CSE MCQs :: Node JS

  1. Which of following are a valid form of route path?
  2. A.
    strings
    B.
    string patterns
    C.
    regular expressions
    D.
    All of above

  3. Which of the following statements holds good with respect to Node?
  4. A.
    Node being a single thread, and uses async function calls to maintain the concurrency
    B.
    Every API of Node js are asynchronous
    C.
    Node thread keeps an event loop and whenever any task get completed, it fires the corresponding event which signals the event listener function to get executed
    D.
    All of these

  5. In Nodejs what is use of underscore variable in REPL session?
  6. A.
    to store the result
    B.
    to get the last command used
    C.
    None of the above
    D.
    to get the last result

  7. Which statement is valid in using a Node module fs in a Node based application?
  8. A.
    var fs = import("fs")
    B.
    import fs
    C.
    package fs
    D.
    var fs = require("fs")

  9. Child processes always have three streams child.stdin, child.stdout, and child.stderr which may be shared with the stdio streams of the parent process.
  10. A.
    false
    B.
    true
    C.
    All the above
    D.
    None