Sail E0 Webinar

MCQs

Total Questions : 80 | Page 3 of 8 pages
Question 21. Which is a fast C++ based JavaScript interpreter?
  1.    Node
  2.    Sockets
  3.    Processors
  4.    Closures
 Discuss Question
Answer: Option A. -> Node
Question 22. Why does the Node rely on event handlers?
  1.    APIs are synchronous
  2.    APIs are asynchronous
  3.    APIs are reusable
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> APIs are asynchronous
Question 23. What is the command to run the node programs?
  1.    node(program.js)
  2.    program.js
  3.    node program.js
  4.    node.program.js
 Discuss Question
Answer: Option C. -> node program.js
Question 24. What is the command used for debugging output in Node?
  1.    print();
  2.    console.log(…);
  3.    debug(…);
  4.    execute(…);
 Discuss Question
Answer: Option B. -> console.log(…);
Question 25. What is the alternative command used in Node for load()?
  1.    store()
  2.    module()
  3.    log()
  4.    require()
 Discuss Question
Answer: Option D. -> require()
Question 26. What is the code to print hello one second from now?
  1.    setTimeout(function() { console.log("Hello World"); }, 1000);
  2.    setTimeout(function() { 1000, console.log("Hello World"); });
  3.    setTimeout(function(1000) { console.log("Hello World"); });
  4.    setTimeout(function() { console.log("Hello World"); });
 Discuss Question
Answer: Option A. -> setTimeout(function() { console.log("Hello World"); }, 1000);
Question 27. Among the below given functions, Node supports which of the following client-side timer functions?
  1.    getInterval()
  2.    Interval()
  3.    clearTime()
  4.    clearTimeout()
 Discuss Question
Answer: Option D. -> clearTimeout()
Question 28. The necessary globals of a node are defined under which namespace?
  1.    variables
  2.    system
  3.    process
  4.    using
 Discuss Question
Answer: Option C. -> process
Question 29. Why does Node not block while waiting for operations to complete?
  1.    Static
  2.    Asynchronous
  3.    Synchronous
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> Asynchronous
Question 30. Which is the method used for registering handlers?
  1.    on()
  2.    register()
  3.    add()
  4.    include()
 Discuss Question
Answer: Option A. -> on()

Latest Videos

Latest Test Papers