Java Web Technologies
Covers JSP, Servlets, Java EE application configuration, and XML in web applications
Questions
Question 1 True/False
XML is Case-Sensitive Language
- True
- False
Question 2 Multiple Choice (Single Answer)
What is output to the web page on the second access to the same instance of the following JSP? (Choose one.) <%@ page language="java" %>
Chapter 6 Question 2
<%! int x = 0; %> <%! public void jspInit() { System.out.println(x++); } %> <%= x++ %> <% System.out.println(x); %> <% jspInit(); %>- 0
- 1
- 2
- 3
- 4
- Page does not translate.
Question 3 Multiple Choice (Single Answer)
Mandatory Method(s) to be defined in servlets
- getSessionBehaviour()
- getApplicationId()
- getSecurityLevel()
- getServletName()
Question 4 Multiple Choice (Single Answer)
Which one of the following folder is mandatory to be defined to use the ps: custom tags
- TLDs
- DDLs
- Web-inf
- Meta-Inf
Question 5 Multiple Choice (Single Answer)
Which one is correct?
- <NAME>Write name here</NAME>
- <name>Write name here</name>
- <NAme>Write name here</naME>
- <naME>Write name here</NAme>
Question 6 Multiple Choice (Single Answer)
The file where the context root of the application is specified
- Web.xml
- application.xml
- ps.xml
- Actionconfig.xml