Home / CSE / Javascript - CS :: Caching and Debugging

CSE :: Javascript - CS

  1. Which of the following is one of the fundamental features of JavaScript?

  2. A.

     Single-threaded

    B.

     Single-threaded

    C.

     Both Single-threaded and Multi-threaded

    D.

     None of the mentioned


  3. Which of the following functions are synchronous?

  4. A.

     load()

    B.

     require()

    C.

     both load() and require()

    D.

     none of the mentioned


  5. Why shouldn’t JavaScript functions not be too long?

  6. A.

     User friendliness

    B.

     Tie up event loops

    C.

     Browser becomes unresponsive

    D.

     All of the mentioned


  7. The object that looks to the thread that creates it is

  8. A.

     Window

    B.

     Worker

    C.

     Element

    D.

     Hash


  9. Which of the following is a global object for a new worker?

  10. A.

     WorkerGlobalScope

    B.

     Worker

    C.

     WorkerScope

    D.

     Window


  11. Which will be invoked to create a new worker?

  12. A.

     Function

    B.

     Destructor

    C.

     Constructor

    D.

     Interface


  13. What will happen if you specify an absolute URL in the Worker constructor?

  14. A.

     Resolves itself

    B.

     Must have the same origin

    C.

     Must not have the same origin

    D.

     None of the mentioned


  15. How can you send data using a Worker object?

  16. A.

     postMessage()

    B.

     sendMessage()

    C.

     Message()

    D.

     post()


  17. Which property is used to manage multiple event handlers?

  18. A.

     onmessage

    B.

     onerror

    C.

     both onmessage and onerror

    D.

     none of the mentioned


  19. Which is the function that allows a worker to terminate itself?

  20. A.

     close()

    B.

     exit()

    C.

     terminate()

    D.

     halt()