0

web technology Online Quiz - 180

Description: web technology Online Quiz - 180
Number of Questions: 20
Created by:
Tags: web technology
Attempted 0/20 Correct 0 Score 0

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


Correct Option: C

The Struts 1 ActionServlet is based on the Design Pattern

  1. Intercepting Filter

  2. Front Controller

  3. Single Controller

  4. None of the above


Correct Option: B

Which of the following are the parameters to the execute method

  1. ActionMappings

  2. ActionForm

  3. ServletRequest

  4. ServletResponse

  5. All of the above


Correct Option: A,B

Which struts tag is used to display error messages


Correct Option: A

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


Correct Option: C

In Struts 1.3, each error message is represented as

  1. ActionError

  2. ActionMessage

  3. ErrorMessage

  4. ActionErrors


Correct Option: B

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


Correct Option: D

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

  1. Name

  2. Type

  3. Action

  4. Class


Correct Option: B

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


Correct Option: D

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


Correct Option: B

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 tag can be used to forward user to a specific view in case of an exception.


Correct Option: B,D

Which format usually works best for photos?

  1. gif

  2. jpg

  3. jpeg

  4. png


Correct Option: B

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

  1. #GGRRBB

  2. #RRBBGG

  3. #RRGGBB

  4. #BBRRGG


Correct Option: C
Explanation:

To solve this question, the user needs to know the format of the Hex color code and the order of values it represents.

The Hex color code is a 6-digit representation of Red, Green, and Blue (RGB) values of a color. Each pair of digits represents the intensity of Red, Green, and Blue, respectively. The first two digits represent the intensity of Red, the second two digits represent Green, and the last two digits represent Blue.

Going through each option:

A. #GGRRBB: This option is incorrect because it has a different order of values than the Hex color code. The correct order is #RRGGBB, where RR represents the intensity of Red, GG represents the intensity of Green, and BB represents the intensity of Blue.

B. #RRBBGG: This option is incorrect because it has a different order of values than the Hex color code. The correct order is #RRGGBB, where RR represents the intensity of Red, GG represents the intensity of Green, and BB represents the intensity of Blue.

C. #RRGGBB: This option is correct. The order of values in the Hex color code is #RRGGBB, where RR represents the intensity of Red, GG represents the intensity of Green, and BB represents the intensity of Blue. In this case, FF represents the maximum intensity of Red, 99 represents the intensity of Green, and 66 represents the intensity of Blue.

D. #BBRRGG: This option is incorrect because it has a different order of values than the Hex color code. The correct order is #RRGGBB, where RR represents the intensity of Red, GG represents the intensity of Green, and BB represents the intensity of Blue.

Therefore, the correct answer is:

The Answer is: C. #RRGGBB

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


Correct Option: A

AI Explanation

To answer this question, you need to understand the concept of password fields.

Option A) Text fields except text shows as an asterisk - This option is correct. Password fields are similar to text fields, but the entered text is masked and displayed as asterisks or bullets to provide privacy and security.

Option B) Text areas except text shows as an asterisk - This option is incorrect. Text areas are used for entering multiple lines of text, but password fields are typically single-line input fields.

Option C) Hidden fields except text shows as an asterisk - This option is incorrect. Hidden fields are used to store data that is not visible to the user, but password fields are visible to the user with masked text.

Option D) None of the above - This option is incorrect. The correct answer is option A, as explained above.

The correct answer is A) Text fields except text shows as an asterisk. This option is correct because password fields function similarly to text fields, but the entered text is masked for security purposes.

Which is NOT a predefined target for links

  1. _top

  2. _blank

  3. _son

  4. _parent


Correct Option: C

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


Correct Option: B

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


Correct Option: A

colspan=n can be added to only what tag?


Correct Option: D

Which has higher priority, cell settings or table settings?

  1. Table settings

  2. Cell settings

  3. both 1&2

  4. None


Correct Option: B

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

  1. True

  2. False


Correct Option: A
- Hide questions