Web Development and Software Design Fundamentals

A comprehensive quiz covering web application development technologies (servlets, JSP, web.xml), UML software design notation, and Java programming fundamentals

8 Questions Published

Questions

Question 1 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 2 Multiple Choice (Single Answer)

Mandatory Method(s) to be defined in servlets

  1. getSessionBehaviour()
  2. getApplicationId()
  3. getSecurityLevel()
  4. getServletName()
Question 3 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 4 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 5 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
Question 6 Multiple Choice (Single Answer)

In which file will the servlets and the security roles of the application will be defined

  1. Web.xml
  2. application.xml
  3. ps.xml
  4. Actionconfig.xml
Question 7 Multiple Choice (Single Answer)

The file where the task flows and the page flows of the application is specified

  1. Map.xml
  2. Web.xml
  3. ps.xml
  4. DynamicContentAliases.xml
Question 8 Multiple Choice (Single Answer)

Where does the application been first taken in to, when an URL is hit in the browser

  1. Servlet of the appilcation
  2. Deployment descriptor of the appln
  3. Context root of the application
  4. ps.xml file of the application