Java-Script

Question 1
When destroy 0 method of servlet gets called?
A
The destroy 0 method is called only once at the end of the life cycle of a servlet.
B
The destroy 0 method is called after the servlet has executed service method.
C
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.
D
None of the given options
Question 2
An alternative to Java Script is
A
VBScript
B
ASP, NET
C
JSP
D
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?
A
pass
B
fail
C
80
D
Error at line 6
Question 4

In Javascript, what does in NaN function do?

A
Return true, if the argument is not a number
B
Return false, if the argument is not a number
C
Return true, if the argument is a number
D
None of the given options
There are 4 questions to complete.

Access quiz wise question and answers by becoming as a solutions adda PRO SUBSCRIBER with Ad-Free content

Register Now

If you have registered and made your payment please contact solutionsadda.in@gmail.com to get access