Java Struts Framework Quiz

Test your knowledge of the Apache Struts MVC framework, including ActionForms, ActionMappings, tags, configuration, and core concepts for Java web development.

18 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Struts was first developed

  1. in an online exchange between several open source developers
  2. over a long holiday weekend
  3. as a commercial package
  4. none
Question 2 Multiple Choice (Single Answer)

The reset method on an ActionForm

  1. Sets all properties to their initial value
  2. Sets all properties to null
  3. Repopulates all properties from the request parameters
  4. none
Question 3 Multiple Choice (Single Answer)

Each Struts Action element is uniquely identified by its

  1. Input attribute
  2. Page attribute
  3. Name attribute
  4. Path attribute
Question 4 Multiple Choice (Single Answer)

The name of the Application Resources file is set by the servlet init-param named

  1. application
  2. resources
  3. ApplicationResources
  4. messages
Question 5 Multiple Choice (Single Answer)

The validating init-param of the ActionServlet is used to

  1. Bypass calls to the ActionForm validate method
  2. Bypass validation of the Struts configuration file
  3. Generate an error message if an unknown message key is used
  4. none
Question 6 Multiple Choice (Single Answer)

To specify an ActionMapping to use when a request doesn't match any other mapping, you can

  1. Use an asterisk for the path property
  2. Set the "default" property of the mapping to "true"
  3. Set the "unknown" property of the mapping to "true"
  4. Set the "missing" init-param of the ActionServlet to the mapping's path
Question 7 Multiple Choice (Single Answer)

If you have created a custom ActionMapping subclass with the property "service", you can initialize the value to "selectRecord" using

  1. <init-property name="service" value="selectRecord"/>
  2. <set-property property="service" value="selectRecord"/>
  3. <put-field key="service" content="selectRecord"/>
  4. none
Question 8 Multiple Choice (Single Answer)

In Struts 1.1, you can change how Struts populates a form by

  1. Overriding the populate method of the ActionForm
  2. Overriding the processPopulate method of the Request Processor
  3. Overriding the populateBean method of the ActionMapping
  4. None
Question 9 Multiple Choice (Single Answer)

The bean:write tag is:

  1. Always converts HTML markup to entity equivalents, like <
  2. Never converts HTML markup to entity equivalents
  3. Converts markup when filter=true
  4. Converts markup when markup=false
Question 10 Multiple Choice (Single Answer)

To prevent possible security issues with the html:password tag, you should

  1. Call the reset method if validation fails
  2. Set the tag's redisplay property to false
  3. Set the tag's reset property to false
  4. Use a plain html tag instead
Question 11 Multiple Choice (Multiple Answers)

What are all the valid queries to rename a table employee to employee_copy?

  1. rename table employee as employee_copy
  2. rename employee to employee_copy
  3. alter employee rename to employee_copy
  4. alter table employee rename as employee_copy
  5. alter table employee rename to employee_copy
Question 12 Multiple Choice (Multiple Answers)

Which two are true about the JSTL core iteration custom tags?

  1. It may iterate over arrays, collections, maps and strings.
  2. The body of the tag may contain EL code, but not scripting code.
  3. When looping over collections, a loop status object may be used in the tag body.
  4. It may iterate over a map, but only the key of the mapping may be used in the tag body.
  5. When looping over integers (for example begin1='1' end='10'), a loop status object may not be used in the tag body.
Question 13 Multiple Choice (Single Answer)

The .NET Framework provides a runtime environment called..... ?

  1. RMT
  2. CLR
  3. CMT
  4. RC
Question 14 Multiple Choice (Single Answer)

Find the term: The .NET framework which provides automatic memory management using a technique called ______________ ?

  1. serialization
  2. garbage collection
  3. assemblies
  4. overriding
Question 15 Multiple Choice (Single Answer)

WSDL stands for _________________ ?

  1. Web Server Description Language
  2. Web Server Descriptor Language
  3. Web Services Description Language
  4. Web Services Descriptor Language
Question 16 Multiple Choice (Single Answer)

Which of the following is FALSE?

  1. ASP.NET applications run without a Web Server
  2. ASP+ and ASP.NET refer to the same thing
  3. ASP.NET is a major upgrade over ASP
  4. None of the Above
Question 17 Multiple Choice (Single Answer)

The type of code found in Code-Behind class is ________ ?

  1. Server-side code
  2. Client-side code
  3. Both A) and B)
  4. None of the above
Question 18 Multiple Choice (Single Answer)

Suppose a .NET programmer wants to convert an object into a stream of bytes then the process is called ______________ ?

  1. Serialization
  2. Threading
  3. RCW
  4. AppDomain