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

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Which of the following functions are synchronous?

  4. A.

     load()

    B.

     require()

    C.

     both load() and require()

    D.

     none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  8. A.

     Window

    B.

     Worker

    C.

     Element

    D.

     Hash

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  10. A.

     WorkerGlobalScope

    B.

     Worker

    C.

     WorkerScope

    D.

     Window

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  12. A.

     Function

    B.

     Destructor

    C.

     Constructor

    D.

     Interface

    View Answer

    Workspace

    Discuss Discuss in Forum


  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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  16. A.

     postMessage()

    B.

     sendMessage()

    C.

     Message()

    D.

     post()

    View Answer

    Workspace

    Discuss Discuss in Forum


  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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  20. A.

     close()

    B.

     exit()

    C.

     terminate()

    D.

     halt()

    View Answer

    Workspace

    Discuss Discuss in Forum