1.Can javascript code be broken in different lines?
2.What is a prompt box?
3.What is the difference between an alert box and a confirmation box?
4.How to access an external javascript file that is stored externally and not embedded?
5.Is a javascript script faster than an ASP script?
6.What does the “Access is Denied” IE error mean?
7.How to set a HTML document’s background color?
8.What can javascript programs do?
9.Where are cookies actually stored on the hard disk?
10.How to detect the operating system on the client machine?
11.How to read and write a file using javascript?
12.What is JavaScript?
13.What is jrunscript?
14.Is it possible to set session variables from javascript?
15.What is Client side and server side scripting?
16.What is a Java Bean?
17.Why do you Canvas ?
18.What is the difference between this() and super()?
19.How do you get the value of a combo box in Javascript?
20.How can I call a Java method from Javascript?
21.What’s relationship between JavaScript and ECMAScript?
22.What does “1″+3+6 evaluate to and also what about 2+5+”6″?
23.What is negative infinity?
24.What does isNaN function do?
25.How do you convert numbers between different bases in JavaScript?
26.What are JavaScript data types?
27.What is the difference between error and an exception?
28.What is the future of JavaScript?
29.What about this Ecmascript? Is it just a version of Javascript?
30.How can JavaScript be used to personalize or tailor a Web site to fit individual users?
31.How can JavaScript make a Web site easier to use? That is, are there certain JavaScript techniques that make it easier for people to use a Web site?
32.Is it possible to share an HttpSession between a JSP and EJB? What happens when I change a value in the HttpSession from inside an EJB?
33.Where are cookies actually stored on the hard disk?
34.How to create a function using function constructor?
35.What does break and continue statements do?
36.What does the delete operator do?
37.What are undefined and undeclared variables?
38.Does javascript have the concept level scope?
39.What is variable typing in javascript?
40.What is the difference between undefined value and null value?
41.What does undefined value mean in javascript?
42.What does javascript null mean?
43.Name the numeric constants representing max,min values
44.How to comment javascript code?
45.How to hide javascript code from old browsers that dont run it?
46.JavaScript V/s JAVA
47.Name some builtin functions of JavaScript?
48.How to put a JavaScript into an HTML document?
Collection and sharing of, interview questions and answers asked in various interviews, faqs and articles.....
Showing posts with label JavaScript. Show all posts
Showing posts with label JavaScript. Show all posts
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 ______________
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 ______________
Subscribe to:
Posts (Atom)