JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Javascript interview questions part 46
Javascript interview questions part 46
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 6
1. Which of the following is a global object for a new worker?
A. WorkerGlobalScope
B. Worker
C. WorkerScope
D. Window
Show Correct Answer
Correct Answer is :
WorkerGlobalScope
2. Which will be invoked to create a new worker?
A. Function
B. Destructor
C. Constructor
D. Interface
Show Correct Answer
Correct Answer is :
Constructor
3. 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. None of the mentioned
Show Correct Answer
Correct Answer is :
Must have the same origin
4. How can you send data using a Worker object?
A. postMessage()
B. sendMessage()
C. Message()
D. post()
Show Correct Answer
Correct Answer is :
postMessage()
5. Which property is used to manage multiple event handlers?
A. onmessage
B. onerror
C. both onmessage and onerror
D. none of the mentioned
Show Correct Answer
Correct Answer is :
both onmessage and onerror
6. Which is the function that allows a worker to terminate itself?
A. close()
B. exit()
C. terminate()
D. halt()
Show Correct Answer
Correct Answer is :
close()
Similar Interview Questions
Search for latest jobs
Find Jobs