HTML and Apache Struts Framework

A quiz covering basic HTML concepts including tables, forms, and images, as well as Apache Struts 1.x framework configuration and components for Java web applications.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Number of request processor instances in a Struts application is

  1. One per application
  2. One per request
  3. One per module
  4. One per Action Servlet
Question 2 Multiple Choice (Single Answer)

The Struts 1 ActionServlet is based on the Design Pattern

  1. Intercepting Filter
  2. Front Controller
  3. Single Controller
  4. None of the above
Question 3 Multiple Choice (Multiple Answers)

Which of the following are the parameters to the execute method

  1. ActionMappings
  2. ActionForm
  3. ServletRequest
  4. ServletResponse
  5. All of the above
Question 4 Multiple Choice (Single Answer)

Which struts tag is used to display error messages

  1. <html:errors/>
  2. <bean:errors/>
  3. <html:message/>
  4. <bean: message/>
Question 5 Multiple Choice (Single Answer)

Which session parameter is used to identify the application locale info in Struts 1.2?

  1. Globals.LOCALE_ID
  2. Commons.LOCALE_ID
  3. Globals.LOCALE_KEY
  4. Constants.LOCALE_KEY
Question 6 Multiple Choice (Single Answer)

In Struts 1.3, each error message is represented as

  1. ActionError
  2. ActionMessage
  3. ErrorMessage
  4. ActionErrors
Question 7 Multiple Choice (Single Answer)

How many action objects of each action type are created in a Struts 1 Application?

  1. One per request
  2. One per module
  3. One per session
  4. One per application
Question 8 Multiple Choice (Single Answer)

Name the attribute of the tag, which is used specify the action class?

  1. Name
  2. Type
  3. Action
  4. Class
Question 9 Multiple Choice (Single Answer)

Name the struts tag used to declare forwards common to all the actions in an application?

  1. <common-forwards>
  2. <forwards-global>
  3. <common-forward>
  4. <global-forwards>
Question 10 Multiple Choice (Single Answer)

The following tag is used to define a custom request processor?

  1. <request-processor/>
  2. <controller/>
  3. <action-processor/>
  4. <action-controller/>
Question 11 Multiple Choice (Multiple Answers)

Which of the following statements are true with respect to Struts-Config.xml?

  1. The name attribute of action tag, specifies the action name
  2. Only one controller can be defined for a module in struts application
  3. Struts configuration files should be placed only inside WEB-INF folder or its sub folders
  4. The <exception> tag can be used to forward user to a specific view in case of an exception.
Question 12 Multiple Choice (Single Answer)

Which format usually works best for photos?

  1. gif
  2. jpg
  3. jpeg
  4. png
Question 13 Multiple Choice (Single Answer)

A 6 digit Hex color (#FF9966) defines values of Red, Blue and Green in which order ?

  1. #GGRRBB
  2. #RRBBGG
  3. #RRGGBB
  4. #BBRRGG
Question 14 Multiple Choice (Single Answer)

Password fields are similar to what ?

  1. Text fields except text show as asterix
  2. Text areas except text show as asterix
  3. hidden fields except text show as asterix
  4. none of the above
Question 15 Multiple Choice (Single Answer)

Which is NOT a predefined target for links

  1. _top
  2. _blank
  3. _son
  4. _parent
Question 16 Multiple Choice (Single Answer)

The value setting of a text field defines what ?

  1. What the answer should be
  2. What will appear in the field as the default value
  3. The value to be saved as the input
  4. none of the above
Question 17 Multiple Choice (Single Answer)

Rather than using Hspace and Vspace you can use which of the following to add spacing to your image ?

  1. 1x1 pixel transparent image
  2. width and height
  3. hieght and breadth
  4. both 2&3
Question 18 Multiple Choice (Single Answer)

colspan=n can be added to only what tag?

  1. <tr>
  2. <text area>
  3. <table>
  4. <td>
Question 19 Multiple Choice (Single Answer)

Which has higher priority, cell settings or table settings?

  1. Table settings
  2. Cell settings
  3. both 1&2
  4. None
Question 20 True/False

Settings for columns( tag) have higher priority than settings for rows( tag).

  1. True
  2. False