Professional Documents
Culture Documents
A. <a name="">A</a>
B. <a href="http://www.example.com">example</a>
C. <a url="http://www.example.com">example</a>
D. <a>B</a>
Question 2 of 20
Question 3 of 20
A. <font color-font="blue">blue</font>
B. <font font-color="blue">blue</font>
C. <font color="blue">blue</font>
Question 4 of 20
B. <check>
D. <checkbox>
Question 5 of 20
A. <br />
B. <lb />
C. <p />
D. <break />
Question 6 of 20
You do not have to connect to the internet to verify changes to a Web page on your
computer.
True
False
Question 7 of 20
A. <LI></LI>
B. <OL></OL>
C. <UL></UL>
D. <DL></DL>
Question 8 of 20
A. <ul></ul>
B. <list></list>
C. <ol></ol>
D. <bullet></bullet>
Question 9 of 20
A. <select>
B. <list>
Question 10 of 20
C. <meta> </meta>
Question 2 of 20
Display results of Business Logic is responsibility of?
A. M
B. V
C. C
D. All (M, V, C)
B. Uncountable instances
C. Four
D. One
Question 4 of 20
<bean:write> tag in Struts 1.x is used to ___________
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
D. Render the value of the specified bean property to the current JspWriter
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 ___________
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
B. destroy()
C. execute()
D. run()
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"" >
Question 10 of 20
Performing DB Queries is responsibility of?
A. M
B. V
C. C
D. All (M, V, C)
Question 12 of 20
B. Validator Framework
D. Using javascript
Question 13 of 20
Struts framework is based on
Question 14 of 20
Struts framework
Question 15 of 20
<logic:iterate> tag in Struts 1.x is used to ___________
D. Repeat the nested body content of this tag over a specified collection
B. < struts-taglib>
C. < taglib>
D. < jsp-lib>
B. V
C. C
D. All (M, V, C)
Question 18 of 20
Which of the logic tags is used for repetitive output generation?
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
A. <html-
B. <html:
C. <s:
D. <s-
Question 20 of 20
Represents Output/Input of the application is responsibility of?
A. M
B. V
C. C
D. All (M, V, C)
Question 1 of 20
Question 2 of 20
Represents Output/Input of the application is responsibility of?
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
A. < logic:lessThan>
B. < logic:iterate>
C. < logic:loop>
D. < login:redirect>
Question 5 of 20
Prefix of Struts1.x tag name used in JSP file is
A. <s:
B. <s-
C. <html-
D. <html:
Question 6 of 20
A. M
B. V
C. C
D. All (M, V, C)
Question 7 of 20
Struts framework
Question 8 of 20
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.DynaValidateForm"
B. type="org.apache.struts.validator.DynaValid Form
C. type="org.apache.struts.validator.DynaValidationForm"
D. type="org.apache.struts.validator.DynaValidatorForm"
Question 9 of 20
Responsible for making decision among multiple presentation is responsibility of?
A. M
B. V
C. C
D. All (M, V, C)
Question 10 of 20
A. None of above
B. ActionBean class
C. FormBean class
D. ActionForm class
Question 11 of 20
Which of the following tags in struts-config.xml file defines the availability of necessary Struts JSP custom tag
libraries?
A. < jsp-lib>
B. < taglib>
C. < struts-taglib>
D. < jsp-taglib>
Question 12 of 20
True
False
Question 13 of 20
Which tag is used along with uri, to specify the tiles frameworks .tld file?
Question 14 of 20
What is the limitation of creating ActionServlet instances per web application?
A. One
B. Three
C. Unlimited
D. Two
Question 15 of 20
A. Evaluate the nested body content of this tag if the requested variable is not
equal to the specified value
B. Evaluate the nested body content of this tag if the requested variable is
either null or an empty string.
C. Generate the nested body content of this tag if the specified value is
present in this request.
D. Generate the nested body content of this tag if the specified value is
present in this request.
Question 16 of 20
Which of the java bean tags is used to show the bean value on the web page?
A. < bean:define>
B. < bean:write>
C. < bean:message>
D. < bean:show>
Question 17 of 20
Question 18 of 20
ActionServlet, RequestProcessor and Action classes are the components of
A. Model
B. Controller
C. View
D. Deployment
Question 19 of 20
Which of the following delegates the request handling to the RequestProcessor instance?
A. ActionServlet
B. Action class
C. Deployment descriptor
Question 20 of 20
Display results of Business Logic is responsibility of?
A. M
B. V
C. C
D. All (M, V, C)
Question 1 of 20
How many instances can be created per application module by the RequestProcessor class?
A. Three
B. Uncountable instances
C. Four
D. One
Question 2 of 20
Question 3 of 20
A. A validation error, which can handle all errors and exceptions of application
D. Contains an error key (which may be used with the resourse bundle)
Question 4 of 20
A. M
B. V
C. C
D. All (M, V, C)
Question 5 of 20
Application module selection is done by
A. Action class
B. ActionServlet
C. RequestProcessor
Question 6 of 20
A. < logic:lessThan>
B. < logic:iterate>
C. < logic:loop>
D. < login:redirect>
Question 7 of 20
The dispatch from the controller to the Action class is based on a configuration that is provided by a
A. struts-config.xml
B. struts-processor-conifg.xml
C. struts-action-config.xml
D. struts-configs.xml
Question 8 of 20
Which of the following tag is a valid form submission in Struts framework? [ some-action.do is a sample]
Question 9 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
A. 1 and 4
B. 2,3,4,5
C. 3, 4, 5
D. 1,2,4,5
Question 10 of 20
Which of the following acts as a bridge between user-invoked URI and a business method?
A. HttpRequest
B. ActionServlet
C. Action class
D. RequestProcessor
Which of the following tags in struts-config.xml file defines the availability of necessary Struts JSP custom tag
libraries?
A. < jsp-lib>
B. < taglib>
C. < struts-taglib>
D. < jsp-taglib>
Question 12 of 20
A. Evaluate the nested body content of this tag if the requested variable is
either null or an empty string
B. Evaluate the nested body content of this tag if the specified value is an
appropriate substring of the requested variable
C. Evaluate the nested body content of this tag if the requested variable is
greater than the specified value.
D. Evaluate the nested body content of this tag if the requested variable is
equal to the specified value
Question 13 of 20
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.DynaValidateForm"
B. type="org.apache.struts.validator.DynaValid Form
C. type="org.apache.struts.validator.DynaValidationForm"
D. type="org.apache.struts.validator.DynaValidatorForm"
Question 14 of 20
Which of the following delegates the request handling to the RequestProcessor instance?
A. ActionServlet
B. Action class
C. Deployment descriptor
Question 15 of 20
Question 16 of 20
Struts framework
Question 17 of 20
True
False
Question 18 of 20
A. M
B. V
C. C
D. All (M, V, C)
Question 19 of 20
Calculating Business Process is responsibility of?
A. M
B. V
C. C
D. All (M, V, C)
Question 20 of 20
Question 1 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
Question 2 of 20
A. M
B. V
C. C
D. All (M, V, C)
Question 3 of 20
A. Evaluate the nested body content of this tag if the requested variable is not
equal to the specified value
B. Evaluate the nested body content of this tag if the requested variable is
either null or an empty string.
C. Generate the nested body content of this tag if the specified value is
present in this request.
D. Generate the nested body content of this tag if the specified value is
present in this request.
Question 4 of 20
A. <s:
B. <s-
C. <html-
D. <html:
Question 5 of 20
An instance of Action is invoked by
A. ActionServlet
B. ActionListener
C. RequestProcessor
Question 6 of 20
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.DynaValidateForm"
B. type="org.apache.struts.validator.DynaValid Form
C. type="org.apache.struts.validator.DynaValidationForm"
D. type="org.apache.struts.validator.DynaValidatorForm"
A. run()
B. service()
C. destroy()
D. execute()
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
A. 1 and 4
B. 2,3,4,5
C. 3, 4, 5
D. 1,2,4,5
Question 9 of 20
Question 10 of 20
Represents Output/Input of the application is responsibility of?
A. M
B. V
C. C
D. All (M, V, C)
Question 11 of 20
A. M
B. V
C. C
D. All (M, V, C)
Question 12 of 20
Struts framework is based on
Question 13 of 20
A. Model
B. Controller
C. View
D. Deployment
Which of the following should always forwards or redirect to a resource (view) after completed?
A. Action class
B. HttpResponse object
C. ActionServlet
D. Request Processor
Question 15 of 20
Which of the following tag is a valid form submission in Struts framework? [ some-action.do is a sample]
Question 16 of 20
A. M
B. V
C. C
D. All (M, V, C)
Question 17 of 20
Which of the following tags in struts-config.xml file defines the availability of necessary Struts JSP custom tag
libraries?
A. < jsp-lib>
B. < taglib>
C. < struts-taglib>
D. < jsp-taglib>
Question 18 of 20
B. Validator Framework
C. Using javascript
Question 19 of 20
A. Repeat the nested body content of this tag over a specified collection
Question 20 of 20
A. A validation error, which can handle all errors and exceptions of application
D. Contains an error key (which may be used with the resourse bundle)
Question 1 of 20
Which of the following tools can be used to stress test the Servlet
1. JMeter from Apache
2. Mercury LoadRunner
A. 1 only
B. 2 only
C. 1,2 both
D. Neither 1 nor 2.
Question 2 of 20
A.Custom tags
B.Scriplets
C.Directives
D.Beans
Question 3 of 20
URL encoding is the method of replacing all the spaces and other extra characters
into their corresponding _______ Characters
A. Octal
B. Decimal
C. Binary
D. Hex
Question 4 of 20
A. location
B. exception-type
C. error-page
Question 5 of 20
The ________________________ when added to the user session tells us that the
session timed out.
A. SessionTimeoutIndicator
B. SessionTotalTimedoutIndicator
C. SessionTotalTimeOutIndicator
D. SessionTimedoutIndicator
Question 6 of 20
Which codeline must be set before any of the lines that use the PrintWriter?
A. setPrintType()
B. setContentWriter()
C. setWriter()
D. setContentType()
Question 7 of 20
All the ___________ data is kept at the application server ___________ data is kept at
the web server
A. dynamic, static
B. static, dynamic
C. HTML, Servlet
D. Servlet, HTML
Question 8 of 20
The _____ method performs the cleanup of objects created during requests and
responses between clients and servers
A. Init()
B. Destroy()
C. Run()
D. Resume()
Question 9 of 20
A. Content safe
B. Synchornised
C. Thread safe
Question 10 of 20
The three main types of JSP constructs that can be embedded in a Java Server page
are
A.Scripting Elements
B.Actions
C.Methods
D.Directives
Part 2 of 2 - Part 2
Question 11 of 20
Question 12 of 20
A. servlet container
B. servlet config
C. servlet filter
D. servlet context
Question 13 of 20
A. servlet container
B. servlet context
C. servlet filter
D. servlet config
Question 14 of 20
A. servlet context
B. servlet container
Question 16 of 20
The init parameter name and value pairs that are defined in web.xml file are
handled by
A. ServletResponse object
B. ServletConfig object
C. ServletRequest object
D. ServletContext object
Question 17 of 20
Question 18 of 20
Question 19 of 20
B. contextInitialized((),contextDestroyed()
Question 20 of 20
A. URL rewriting, using request object, using response object, using session
object
B. URL rewriting, using session object, using response object, using hidden
fields
C. URL rewriting, using servlet object, using response object, using cookies
D. URL rewriting, using session object, using cookies, using hidden fields