Você está na página 1de 43

Question 1 of 20

MVC stands for?

5.0/ 5.0 Points

A. Models / Views / Controllers

B. Model / View / Controller

C. Model / View / Controler

D. Model / View / Control

Question 2 of 20
Display results of Business Logic is responsibility of?

0.0/ 5.0 Points

A. M

B. V

C. C

D. All (M, V, C)

Question 3 of 20
How many instances can be created per application module by the RequestProcessor class?

A. Three

B. Uncountable instances

C. Four

D. One

5.0/ 5.0 Points

Question 4 of 20
<bean:write> tag in Struts 1.x is used to ___________

0.0/ 5.0 Points

A. Define a scripting variable based on the value(s) of the specified bean property

B. Define a scripting variable based on the value(s) of the specified request parameter

C. Render an internationalized message string to the response.

D. Render the value of the specified bean property to the current JspWriter

Question 5 of 20
To specify a form-bean of dynamic validation form, which of the following is used in <form-bean> tag

0.0/ 5.0 Points

A. type="org.apache.struts.validator.DynaValidationForm"

B. type="org.apache.struts.validator.DynaValid Form

C. type="org.apache.struts.validator.DynaValidatorForm"

D. type="org.apache.struts.validator.DynaValidateForm"

Question 6 of 20
<logic:present> tag in Struts 1.x is used to ___________

0.0/ 5.0 Points

A. Evaluate the nested body content of this tag if the requested variable is either null or an
empty string.
B. Generate the nested body content of this tag if the specified value is present in this
request.
C. Generate the nested body content of this tag if the specified value is present in this

request.
D. Evaluate the nested body content of this tag if the requested variable is not equal to the
specified value
Question 7 of 20
Which of the following methods is overridden by Action class?

5.0/ 5.0 Points

A. service()

B. destroy()

C. execute()

D. run()

Question 8 of 20
Which of the following is performed by ActionServlet and RequestProcessor?
1.Receiving the HttpServletRequest
2.Populating JavaBean from the request parameters
3.Displaying response on the web page Issues
4.Content type issues handling
5.Provide extension points

5.0/ 5.0 Points

A. 1 and 4

B. 2,3,4,5

C. 1,2,4,5

D. 3, 4, 5

Question 9 of 20
Declaration of a action as following is____________
<action-mappings>
<action path=""/logon""
type=""com.codementor.LogonAction""
name=""logonForm""
input=""/Login.jsp""
scope=""request"" >
<forward name=""success"" path=""/Success.jsp"" />
<forward name=""failure"" path=""/Failure.html"" />

5.0/ 5.0 Points

</action>
</action-mappings>
</struts-config>

True
False

Question 10 of 20
Performing DB Queries is responsibility of?

0.0/ 5.0 Points

A. M

B. V

C. C

D. All (M, V, C)

Question 11 of 20
Which of the following tag is a valid form submission in Struts framework? [ some-action.do is a sample]

5.0/ 5.0 Points

A. < html:web-form action="/some-action.do">

B. < html:form action="/some-action.do">

C. < jsp:webform action="/some-action.do">

D. < html:page-form action="/some-action.do">

Question 12 of 20
Which validation way is used at client-side?

A. Using Form Bean class

0.0/ 5.0 Points

B. Validator Framework

C. Using Action Class

D. Using javascript

Question 13 of 20
Struts framework is based on

0.0/ 5.0 Points

A. Servlet, JSP, XML and Java

B. Applet, XML and Java

C. Servlet, HTML and Java

D. Servlet, JSP and Java

Question 14 of 20
Struts framework

0.0/ 5.0 Points

A. has built-in support for the model

B. provides model components

C. should always decouple the application from a specific model implementation

D. does not support JavaBeans and EJB

Question 15 of 20
<logic:iterate> tag in Struts 1.x is used to ___________

A. Repeat the nested body content of this tag over a map

0.0/ 5.0 Points

B. Repeat the content of this tag over a list

C. Repeat the body content of this tag over an array

D. Repeat the nested body content of this tag over a specified collection

Question 16 of 20
Which of the following tags in struts-config.xml file defines the availability of necessary Struts JSP custom tag libraries?

5.0/ 5.0 Points

A. < jsp-taglib>

B. < struts-taglib>

C. < taglib>

D. < jsp-lib>

Question 17 of 20
Serves logical connection between users interaction and the business process is responsibility of?

5.0/ 5.0 Points

A. M

B. V

C. C

D. All (M, V, C)

Question 18 of 20
Which of the logic tags is used for repetitive output generation?

5.0/ 5.0 Points

A. < logic:iterate>

B. < logic:lessThan>

C. < login:redirect>

D. < logic:loop>

Question 19 of 20
Prefix of Struts1.x tag name used in JSP file is

5.0/ 5.0 Points

A. <html-

B. <html:

C. <s:

D. <s-

Question 20 of 20
Represents Output/Input of the application is responsibility of?

5.0/ 5.0 Points

A. M

B. V

C. C

D. All (M, V, C)

Question 1 of 20

5.0/ 5.0 Points

Which of the following tag is a valid form submission in Struts framework? [ some-action.do is a sample]

A. < html:page-form action="/some-action.do">

B. < html:form action="/some-action.do">

C. < jsp:webform action="/some-action.do">

D. < html:web-form action="/some-action.do">

Question 2 of 20
Which tag is used along with uri, to specify the tiles frameworks .tld file?

A. < %@taglib uri="/WEB-INF/tlds/tiles.tld" prefix="tiles"%>

B. < %@taglib url="/WEB-INF/tile.tld" prefix="tiles"%>

C. < %@taglibs uri="/WEB-INF/tiles.tld" prefix="tiles"%>

D. < %@taglib uri="/WEB-INF/tiles.tld" prefix="tiles"%>

0.0/ 5.0 Points

Question 3 of 20

5.0/ 5.0 Points

Serves logical connection between users interaction and the business process is responsibility of?

A. M

B. V

C. C

D. All (M, V, C)

Question 4 of 20
Responsible for making decision among multiple presentation is responsibility of?

A. M

B. V

C. C

0.0/ 5.0 Points

D. All (M, V, C)

Question 5 of 20

0.0/ 5.0 Points

Which of the following is performed by ActionServlet and RequestProcessor?


1.Receiving the HttpServletRequest
2.Populating JavaBean from the request parameters
3.Displaying response on the web page Issues
4.Content type issues handling
5.Provide extension points

A. 1,2,4,5

B. 3, 4, 5

C. 1 and 4

D. 2,3,4,5

Question 6 of 20
Represents Output/Input of the application is responsibility of?

A. M

5.0/ 5.0 Points

B. V

C. C

D. All (M, V, C)

Question 7 of 20

5.0/ 5.0 Points

Display results of Business Logic is responsibility of?

A. M

B. V

C. C

D. All (M, V, C)

Question 8 of 20
An instance of Action is invoked by

0.0/ 5.0 Points

A. ActionServlet

B. ActionListener

C. RequestProcessor

D. All of the above

Question 9 of 20

5.0/ 5.0 Points

<bean:write> tag in Struts 1.x is used to ___________

A. Render the value of the specified bean property to the current JspWriter

B. Define a scripting variable based on the value(s) of the specified bean


property
C. Render an internationalized message string to the response.

D. Define a scripting variable based on the value(s) of the specified request


parameter

Question 10 of 20

5.0/ 5.0 Points

Business delegate pattern

A. Hides remote services complexity

B. Reduces coupling and increases manageability

C. Eases failure recovery

D. All of the above

Question 11 of 20
What is the limitation of creating ActionServlet instances per web application?

A. One

B. Unlimited

C. Three

5.0/ 5.0 Points

D. Two

Question 12 of 20

5.0/ 5.0 Points

Which of the following delegates the request handling to the RequestProcessor instance?

A. ActionServlet

B. Action class

C. Deployment descriptor

D. None of the above

Question 13 of 20

5.0/ 5.0 Points

How many instances can be created per application module by the RequestProcessor class?

A. Four

B. One

C. Uncountable instances

D. Three

Question 14 of 20

0.0/ 5.0 Points

Which of the following methods is overridden by Action class?

A. run()

B. service()

C. destroy()

D. execute()

Question 15 of 20

0.0/ 5.0 Points

Which of the following should always forwards or redirect to a resource (view) after completed?

A. Action class

B. ActionServlet

C. HttpResponse object

D. Request Processor

Question 16 of 20

0.0/ 5.0 Points

Prefix of Struts1.x tag name used in JSP file is

A. <s:

B. <html-

C. <s-

D. <html:

Question 17 of 20
Which validation way is used at client-side?

5.0/ 5.0 Points

A. Using Form Bean class

B. Using Action Class

C. Using javascript

D. Validator Framework

Question 18 of 20

0.0/ 5.0 Points

Performing DB Queries is responsibility of?

A. M

B. V

C. C

D. All (M, V, C)

Question 19 of 20

5.0/ 5.0 Points

The dispatch from the controller to the Action class is based on a configuration that is provided by a

A. struts-processor-conifg.xml

B. struts-action-config.xml

C. struts-config.xml

D. struts-configs.xml

Question 20 of 20
Which of the following acts as a bridge between user-invoked URI and a business method?

A. Action class

B. HttpRequest

C. ActionServlet

D. RequestProcessor

5.0/ 5.0 Points

Part 1 of 1 -

Question 1 of 20

25.0/ 100.0 Points

0.0/ 5.0 Points

<logic:empty> tag in Struts 1.x is used to ___________

A. Evaluate the nested body content of this tag if the requested variable is
greater than the specified value.
B. Evaluate the nested body content of this tag if the requested variable is
equal to the specified value
C. Evaluate the nested body content of this tag if the specified value is an
appropriate substring of the requested variable
D. Evaluate the nested body content of this tag if the requested variable is
either null or an empty string

Question 2 of 20

5.0/ 5.0 Points

ActionServlet, RequestProcessor and Action classes are the components of

A. Model

B. Controller

C. View

D. Deployment

Question 3 of 20

0.0/ 5.0 Points

Calculating Business Process is responsibility of?

A. M

B. V

C. C

D. All (M, V, C)

Question 4 of 20

How many instances can be created per application module by the


RequestProcessor class?

5.0/ 5.0 Points

A. Four

B. One

C. Uncountable instances

D. Three

Question 5 of 20

0.0/ 5.0 Points

<logic:iterate> tag in Struts 1.x is used to ___________

A. Repeat the body content of this tag over an array

B. Repeat the content of this tag over a list

C. Repeat the nested body content of this tag over a specified collection

D. Repeat the nested body content of this tag over a map

Question 6 of 20

0.0/ 5.0 Points

To specify a form-bean of dynamic validation form, which of the following is used in


<form-bean> tag

A. type="org.apache.struts.validator.DynaValidatorForm"

B. type="org.apache.struts.validator.DynaValidateForm"

C. type="org.apache.struts.validator.DynaValid Form

D. type="org.apache.struts.validator.DynaValidationForm"

Question 7 of 20

Display results of Business Logic is responsibility of?

A. M

B. V

C. C

0.0/ 5.0 Points

D. All (M, V, C)

Question 8 of 20

5.0/ 5.0 Points

Which of the following tag is a valid form submission in Struts framework? [ someaction.do is a sample]

A. < html:page-form action="/some-action.do">

B. < html:form action="/some-action.do">

C. < jsp:webform action="/some-action.do">

D. < html:web-form action="/some-action.do">

Question 9 of 20

Represents Output/Input of the application is responsibility of?

A. M

B. V

0.0/ 5.0 Points

C. C

D. All (M, V, C)

Question 10 of 20

0.0/ 5.0 Points

Struts framework is based on

A. Servlet, JSP, XML and Java

B. Servlet, HTML and Java

C. Servlet, JSP and Java

D. Applet, XML and Java

Question 11 of 20

Prefix of Struts1.x tag name used in JSP file is

A. <s:

0.0/ 5.0 Points

B. <html-

C. <s-

D. <html:

Question 12 of 20

5.0/ 5.0 Points

What is the limitation of creating ActionServlet instances per web application?

A. One

B. Unlimited

C. Three

D. Two

Question 13 of 20

Application module selection is done by

0.0/ 5.0 Points

A. Action class

B. ActionServlet

C. RequestProcessor

D. All of the above

Question 14 of 20

Declaration of a action as following is____________


<action-mappings>
<action path=""/logon""
type=""com.codementor.LogonAction""
name=""logonForm""
input=""/Login.jsp""
scope=""request"" >
<forward name=""success"" path=""/Success.jsp"" />
<forward name=""failure"" path=""/Failure.html"" />
</action>
</action-mappings>
</struts-config>

True

False

5.0/ 5.0 Points

Question 15 of 20

0.0/ 5.0 Points

An instance of Action is invoked by

A. ActionServlet

B. ActionListener

C. RequestProcessor

D. All of the above

Question 16 of 20

0.0/ 5.0 Points

Which of the following acts as a bridge between user-invoked URI and a business
method?

A. Action class

B. HttpRequest

C. ActionServlet

D. RequestProcessor

Question 17 of 20

0.0/ 5.0 Points

The dispatch from the controller to the Action class is based on a configuration that
is provided by a

A. struts-processor-conifg.xml

B. struts-action-config.xml

C. struts-config.xml

D. struts-configs.xml

Question 18 of 20

A Form Bean class in Struts 1.x extends

A. FormBean class

B. ActionBean class

0.0/ 5.0 Points

C. None of above

D. ActionForm class

Question 19 of 20

0.0/ 5.0 Points

Which of the following delegates the request handling to the RequestProcessor


instance?

A. ActionServlet

B. Action class

C. Deployment descriptor

D. None of the above

Question 20 of 20

0.0/ 5.0 Points

Serves logical connection between users interaction and the business process is
responsibility of?

A. M

B. V

C. C

D. All (M, V, C)

Question 1 of 20

5.0/ 5.0 Points

<bean:write> tag in Struts 1.x is used to ___________

A. Render the value of the specified bean property to the current JspWriter

B. Define a scripting variable based on the value(s) of the specified bean


property
C. Render an internationalized message string to the response.

D. Define a scripting variable based on the value(s) of the specified request


parameter

Question 2 of 20

0.0/ 5.0 Points

Which of the java bean tags is used to show the bean value on the web page?

A. < bean:write>

B. < bean:define>

C. < bean:message>

D. < bean:show>

Question 3 of 20

Struts framework is based on

A. Servlet, JSP and Java

B. Servlet, JSP, XML and Java

C. Servlet, HTML and Java

D. Applet, XML and Java

5.0/ 5.0 Points

Question 4 of 20

5.0/ 5.0 Points

<logic:iterate> tag in Struts 1.x is used to ___________

A. Repeat the body content of this tag over an array

B. Repeat the content of this tag over a list

C. Repeat the nested body content of this tag over a specified collection

D. Repeat the nested body content of this tag over a map

Question 5 of 20

Prefix of Struts1.x tag name used in JSP file is

A. <s:

B. <html-

C. <s-

5.0/ 5.0 Points

D. <html:

Question 6 of 20

5.0/ 5.0 Points

Serves logical connection between users interaction and the business process is
responsibility of?

A. M

B. V

C. C

D. All (M, V, C)

Question 7 of 20

Application module selection is done by

A. Action class

0.0/ 5.0 Points

B. ActionServlet

C. RequestProcessor

D. All of the above

Question 8 of 20

5.0/ 5.0 Points

Which of the following is performed by ActionServlet and RequestProcessor?


1.Receiving the HttpServletRequest
2.Populating JavaBean from the request parameters
3.Displaying response on the web page Issues
4.Content type issues handling
5.Provide extension points

A. 1,2,4,5

B. 3, 4, 5

C. 1 and 4

D. 2,3,4,5

Question 9 of 20

0.0/ 5.0 Points

Contains data and Related Functionality is responsibility of?

A. M

B. V

C. C

D. All (M, V, C)

Question 10 of 20

0.0/ 5.0 Points

Which is not True about ActionErrors in Struts 1.x?

A. Contains an error key (which may be used with the resourse bundle)

B. A specific validation error, which will be put in the ActionErrors

C. Used in struts to contain all the errors from a validation point

D. A validation error, which can handle all errors and exceptions of

application

Question 11 of 20

5.0/ 5.0 Points

Which validation way is used at client-side?

A. Using Form Bean class

B. Using Action Class

C. Using javascript

D. Validator Framework

Question 12 of 20

Struts framework is based on

A. Servlet, JSP, XML and Java

B. Servlet, HTML and Java

0.0/ 5.0 Points

C. Servlet, JSP and Java

D. Applet, XML and Java

Question 13 of 20

0.0/ 5.0 Points

Encapsulates Domain Logic which are independent of Presentation is responsibility


of?

A. M

B. V

C. C

D. All (M, V, C)

Question 14 of 20

Performing DB Queries is responsibility of?

A. M

5.0/ 5.0 Points

B. V

C. C

D. All (M, V, C)

Question 15 of 20

5.0/ 5.0 Points

The dispatch from the controller to the Action class is based on a configuration that
is provided by a

A. struts-processor-conifg.xml

B. struts-action-config.xml

C. struts-config.xml

D. struts-configs.xml

Question 16 of 20

5.0/ 5.0 Points

Which of the following delegates the request handling to the RequestProcessor

instance?

A. ActionServlet

B. Action class

C. Deployment descriptor

D. None of the above

Question 17 of 20

Business delegate pattern

A. Hides remote services complexity

B. Reduces coupling and increases manageability

C. Eases failure recovery

D. All of the above

5.0/ 5.0 Points

Question 18 of 20

0.0/ 5.0 Points

Calculating Business Process is responsibility of?

A. M

B. V

C. C

D. All (M, V, C)

Question 19 of 20

0.0/ 5.0 Points

<logic:present> tag in Struts 1.x is used to ___________

A. Generate the nested body content of this tag if the specified value is
present in this request.
B. Evaluate the nested body content of this tag if the requested variable is
either null or an empty string.

C. Evaluate the nested body content of this tag if the requested variable is not
equal to the specified value
D. Generate the nested body content of this tag if the specified value is
present in this request.

Question 20 of 20

An instance of Action is invoked by

A. ActionServlet

B. ActionListener

C. RequestProcessor

D. All of the above

0.0/ 5.0 Points

Question 1 of 20

0.0/ 5.0 Points

Which of the following statement is false for the tag?

A. Can include dynamically generated output.

B. Provides benefit of automatic recompilation.

C. It offers option of sharing local variables and better run time


efficiency
D. Can be used to incorporate contents from static documents

Question 2 of 20

0.0/ 5.0 Points

Implementing the tag < %@ page isThreadSafe="false" % >implements


the SingleThreadModel interface making the Jsp _________________

A. Content safe

B. Synchornised

C. Thread safe

Você também pode gostar