JavaScript Objective Interview Question With Answer

1. What should appear at the very end of your JavaScript?
The script LANGUAGE="JavaScript" tag
2. Which of the following can't be done with client-side JavaScript?
3. Which of the following are capabilities of functions in JavaScript?
4. Why so JavaScript and Java have similar name?
5. When a user views a page containing a JavaScript program, which machine actually 6. ______ JavaScript is also called client-side JavaScript.
7. __________ JavaScript is also called server-side JavaScript.
8. What are variables used for in JavaScript Programs?
9. _____ JavaScript statements embedded in an HTML page can respond to user events 10. Which of the following is not a valid JavaScript variable name?
11. ______ tag is an extension to HTML that can enclose any number of JavaScript 12. How does JavaScript store dates in a date object?
13. Which of the following attribute can hold the JavaScript version?
14. What is the correct JavaScript syntax to write "Hello World"?
15. Which of the following way can be used to indicate the LANGUAGE attribute?
16. Inside which HTML element do we put the JavaScript?
17. What is the correct syntax for referring to an external script called " abc.js"?
18. Which types of image maps can be used with JavaScript?
20. Which is the correct way to write a JavaScript array?
21. What does the noscript tag do?
22. If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?
23. JavaScript entities start with _______ and end with _________.
24. Which of the following best describes JavaScript?
25. Choose the server-side JavaScript object?
26. Choose the client-side JavaScript object?
27. Which of the following is not considered a JavaScript operator?
28. ______method evaluates a string of JavaScript code in the context of the specified object.
29. Which of the following event fires when the form element loses the focus: 30. The syntax of Eval is ________________
31. JavaScript is interpreted by _________
32. Using _______ statement is how you test for a specific condition.
33. Which of the following is the structure of an if statement?
34. How to create a Date object in JavaScript?
35. The _______ method of an Array object adds and/or removes elements from an array.
36. To set up the window to capture all Click events, we use which of the following statement?
37. Which tag(s) can handle mouse events in Netscape?
38. ____________ is the tainted property of a window object.
39. To enable data tainting, the end user sets the _________ environment variable.
40. In JavaScript, _________ is an object of the target language data type that encloses an object of the source language.
41. When a JavaScript object is sent to Java, the runtime engine creates a Java wrapper of type ___________
42. _______ class provides an interface for invoking JavaScript methods and examining JavaScript properties.
43. _________ is a wrapped Java array, accessed from within JavaScript code.
44. A ________ object is a reference to one of the classes in a Java package, such as netscape.javascript .
45. The JavaScript exception is available to the Java code as an instance of __________
46. The syntax of a blur method in a button object is ______________
47. The syntax of capture events method for document object is ______________
58. The syntax of close method for document object is ______________

No comments:

Post a Comment