Home / CSE / Javascript - CS :: Server Side and Client Side Scripting

CSE :: Javascript - CS

  1. Which is a fast C++ based JavaScript interpreter?

  2. A.

     Node

    B.

     Sockets

    C.

     Processors

    D.

     Closures


  3. Why does the Node rely on event handlers?

  4. A.

     APIs are synchronous

    B.

     APIs are asynchronous

    C.

     APIs are reusable

    D.

     None of the mentioned


  5. What is the command to run the node programs?

  6. A.

     node(program.js)

    B.

     program.js

    C.

     node program.js

    D.

     node.program.js


  7. What is the alternative command used in Node for load()?

  8. A.

     store()

    B.

     module()

    C.

     log()

    D.

     require()


  9. What is the command used for debugging output in Node?

  10. A.

     print();

    B.

     console.log(…);

    C.

     debug(…);

    D.

     execute(…);


  11. What is the code to print hello one second from now?

  12. A.

     setTimeout(function() { console.log("Hello World"); }, 1000);

    B.

     setTimeout(function() { 1000, console.log("Hello World"); });

    C.

     setTimeout(function(1000) { console.log("Hello World"); });

    D.

     setTimeout(function() { console.log("Hello World"); });


  13. Among the below given functions, Node supports which of the following client-side timer functions?

  14. A.

     getInterval()

    B.

     Interval()

    C.

     clearTime()

    D.

     clearTimeout()


  15. The necessary globals of a node are defined under which namespace?

  16. A.

     variables

    B.

     system

    C.

     process

    D.

     using


  17. Why does Node not block while waiting for operations to complete?

  18. A.

     Static

    B.

     Asynchronous

    C.

     Synchronous

    D.

     None of the mentioned


  19. Which is the method used for registering handlers?

  20. A.

     on()

    B.

     register()

    C.

     add()

    D.

     include()