1. Which is the function that is called to validate a data?
Correct Answer is : none of the mentioned
2. How to find the index of a particular string?
Correct Answer is : indexOf()
3. How do you focus a particular part of the HTML page in JavaScript?
Correct Answer is : focus()
4. Which of the following is the child object of the JavaScript navigator?
Correct Answer is : Plugins
5. Which of the following are the properties of a plug-in entry?
Correct Answer is : all of the mentioned
6. What is the purpose of the mimeTypes property of a plug-in entry?
Correct Answer is : Contains MIME types
7. Which of the following is a stateless protocol?
8. What does the value 2 of the WebSocket attribute Socket.readyState indicate?
Correct Answer is : Handshake connection
9. How many WebSocket events are available?
10. Which method is used to close the WebSocket?
Correct Answer is : Socket.close()
11. How does the client and the server communicate following the rules defined by the WebSocket protocol?
Correct Answer is : Long-lived TCP Socket
12. Which of the following is not a socket property?
Correct Answer is : ready
13. Consider the following one-line code.
var httpserver = new http.Server();
What does the above code do?
Correct Answer is : Create an HTTP Server
14. How can we check the subprotocol being used by the client?
Correct Answer is : protocol property
15. How will you transmit data using the connection?
Correct Answer is : Socket.send(data)
16. Which of the following is not a WebSocket event?
17. Which of the following is one of the fundamental features of JavaScript?
Correct Answer is : Single-threaded
18. Which of the following functions are synchronous?
Correct Answer is : both load() and require()
19. Why shouldn’t JavaScript functions not be too long?
Correct Answer is : All of the mentioned
20. The object that looks to the thread that creates it is
Correct Answer is : Worker