956). Which of the following is one of the fundamental features of JavaScript?

[A]Single-threaded
[B]Multi-threaded
[C]Both Single-threaded and Multi-threaded
[D] Simple-threaded

Show Answer

957). Which of the following functions are synchronous?

[A]load()
[B]require()
[C]both load() and require()
[D]create()

Show Answer

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

[A]User friendliness
[B]Tie up event loops
[C]Browser becomes unresponsive
[D] All of the mentioned

Show Answer

959). The object that looks to the thread that creates it is _______________

[A]Window
[B]Worker
[C]Element
[D]Hash

Show Answer

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

[A]WorkerGlobalScope
[B]Worker
[C]WorkerScope
[D]Window

Show Answer

961). Which will be invoked to create a new worker?

[A]Function
[B]Destructor
[C]Constructor
[D]Interface

Show Answer

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

[A]Resolves itself
[B]Must have the same origin
[C]Must not have the same origin
[D]Specify the address

Show Answer

963). How can you send data using a Worker object?

[A]postMessage()
[B] sendMessage()
[C]Message()
[D]post()

Show Answer

964). Which property is used to manage multiple event handlers?

[A]onmessage
[B]onerror
[C]both onmessage and onerror
[D]postmessage

Show Answer

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

[A]close()
[B]exit()
[C] terminate()
[D] halt()

Show Answer