Java-Script
Question 1 |
When destroy 0 method of servlet gets called?
The destroy 0 method is called only once at the end of the life cycle of a servlet. | |
The destroy 0 method is called after the servlet has executed service method. | |
The destroy 0 method is called only once at the end of the life cycle of a servlet. And destroy 0 method is called after the servlet has executed service method. | |
None of the given options
|
Question 2 |
An alternative to Java Script is
VBScript | |
ASP, NET | |
JSP | |
None of the given options |
Question 3 |
Consider the following script:
< html >
< head >< title > JavaScript < title >< / head >
< body >
< script language-“JavaScript” >
var a=80
var b=(==80 ? “pass” : “fail”):
document, write(b)
< / script >
< / body >
< / html >
What will be the output of the above script?
pass | |
fail | |
80 | |
Error at line 6 |
Question 4 |
In Javascript, what does in NaN function do?
Return true, if the argument is not a number
| |
Return false, if the argument is not a number
| |
Return true, if the argument is a number
| |
None of the given options
|