Java-Script

Question 1
Which of the following statement(s) is/are TRUE regarding Java Servlets ?
(a) A Java Servlet is a server-side component that runs on the web server and extends the capabilities of a server.
(b) A Servlet can use the user interface classes like AWT or Swing.
A
Only (a) is TRUE.
B
Only (b) is TRUE.
C
Both (a) and (b) are TRUE.
D
Neither (a) nor (b) is TRUE.
Question 1 Explanation: 
TRUE: A Java Servlet is a server-side component that runs on the web server and extends the capabilities of a server.
FALSE: A Servlet can not use the user interface classes like AWT or Swing.
→ Servlets can respond to any types of requests, they most commonly implement web containers for hosting web applications on web servers and thus qualify as a server-side servlet web API.
Question 2
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 3
An alternative to Java Script is
A
VBScript
B
ASP, NET
C
JSP
D
None of the given options
Question 4
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
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