Java Web Technologies

Covers JSP, Servlets, Java EE application configuration, and XML in web applications

6 Questions Published

Questions

Question 1 True/False

XML is Case-Sensitive Language

  1. True
  2. 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

Chapter 6 Question 2

<%! int x = 0; %> <%! public void jspInit() { System.out.println(x++); } %> <%= x++ %> <% System.out.println(x); %> <% jspInit(); %>

  1. 0
  2. 1
  3. 2
  4. 3
  5. 4
  6. Page does not translate.
Question 3 Multiple Choice (Single Answer)

Mandatory Method(s) to be defined in servlets

  1. getSessionBehaviour()
  2. getApplicationId()
  3. getSecurityLevel()
  4. getServletName()
Question 4 Multiple Choice (Single Answer)

Which one of the following folder is mandatory to be defined to use the ps: custom tags

  1. TLDs
  2. DDLs
  3. Web-inf
  4. Meta-Inf
Question 5 Multiple Choice (Single Answer)

Which one is correct?

  1. <NAME>Write name here</NAME>
  2. <name>Write name here</name>
  3. <NAme>Write name here</naME>
  4. <naME>Write name here</NAme>
Question 6 Multiple Choice (Single Answer)

The file where the context root of the application is specified

  1. Web.xml
  2. application.xml
  3. ps.xml
  4. Actionconfig.xml