Professional Documents
Culture Documents
0 Points
Question 1 of 20
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>
A. <font color-font="blue">blue</font>
B. <font font-color="blue">blue</font>
C. <font color="blue">blue</font>
B. <check>
D. <checkbox>
A. <br />
B. <lb />
C. <p />
D. <break />
You do not have to connect to the internet to verify changes to a Web page on your computer.
True
False
5.0/ 5.0 Points
Question 7 of 20
A. <LI></LI>
B. <OL></OL>
C. <UL></UL>
D. <DL></DL>
A. <ul></ul>
B. <list></list>
C. <ol></ol>
D. <bullet></bullet>
A. <select>
B. <list>
C. <meta> </meta>
Part 2 of 2 - Part 2
A. a {decoration:no underline}
B. a {underline:none}
C. a {text-decoration:none}
D. a {text-decoration:no underline}
color:#0000FF;
}
</style>
Guess in which color link will be displayed if user has not clicked on any of the link before.
A. #FF0000
B. #FF00FF
C. #0000FF
D. #00FF00
A. f:
B. font-style:
C. font-face:
D. font-family:
Currently clicking and holding down the mouse button on represents ___________ pseudo class.
A. a:visited
B. a:active
C. a:hover
D. a:link
What is the correct CSS syntax for making all the <span> elements bold?
A. span {text-size:bold}
B. <span style="text-size:bold">
C. <span style="font-size:bold">
D. span {font-weight:bold}
A. <stylesheet>
B. <style>
C. <script>
D. <css>
A. <background>yellow</background>
B. <body background="yellow">
C. <body style="background-color:yellow">
D. All of Above
How do you make each word in a text start with a capital letter?
A. text-transform:capitalize
B. text-transform:uppercase
C. FPT,Software,JSC,Danang,Branch
D. "FPT
Software
JSC
Danang
Branch"
A. onchange()
B. blur()
C. focus()
A. |
B. &
C. ~
D. !
A. Semicolon
B. Hash
C. Colon
D. Dot
A. setTimeout("a["+i+"]",1000)
B. k = a(i)
C. k = a & i
What is the correct syntax for referring to an external script called "xxx.js"?
D. A, B, C are right
B. Both the <head> section and the <body> section are correct
A. //This is a comment
B. <!--This is a comment-->
C. 'This is a comment
Part 2 of 3 - Part 2
What is AJAX ?
B. is a program
C. None
D. is a country name
A. It provides a means of exchanging structured data between the Web server and client.
B. It provides the ability to mark up and style the display of Web-page text.
C. It provides the ability to asynchronously exchange data between Web browsers and a Web
server.
Part 3 of 3 - Part 3
jQuery method to set one or more style properties for selected elements?
A. property()
B. css()
C. html()
D. style()
A. jQuery.ajaxSync()
B. jQuery.ajax()
C. jQuery.ajaxSetup()
D. jQuery.ajaxAsync()
When a user views a page containing a JavaScript program, which machine actually executes the
script
$(function(){});
What does this piece of jQuery do?
What is the correct jQuery code for making all div elements 100 pixels high?
A. $("div").yPos(100)
B. $("div").height(100)
C. $("div").height="100"
Which jQuery method is used to switch between adding/removing one or more classes (for CSS) from
selected elements?
A. switch()
B. altClass()
C. toggleClass()
D. switchClass()
A. link.redirect.href
B. window.location.href
C. java.redirect.url
D. document.href
A. Semicolon
B. Hash
C. Colon
D. Dot
How do you write a conditional statement for executing some statements only if "i" is equal to 5?
A. if i=5 then
B. if i==5 then
C. if (i==5)
D. if i=5
A. setTimeout("a["+i+"]",1000)
B. k = a(i)
C. k = a & i
A. A function
B. An operator
C. A statement
D. A method
A. onchange()
B. blur()
C. focus()
A. browser.name
B. navigator.appName
C. client.navName
A."MIDDLE TIER/
APPLICATION TIER"
B.PRESENTATION TIER
C.DATA/EIS TIER
D.CLIENT TIER
A. Thu / Tue
B. Wed / Thu
C. Tue / Thu
D. Thu / Wed
Part 2 of 3 - Part 2
A. It provides a means of exchanging structured data between the Web server and client.
B. It provides the ability to mark up and style the display of Web-page text.
C. It provides the ability to asynchronously exchange data between Web browsers and a Web
server.
What is AJAX ?
B. is a program
C. None
D. is a country name
Part 3 of 3 - Part 3
With jQuery, look at the following selector: $("div"). What does it select?
A. $(#temp)
B. $(class)
C. $(temp).class
D. $(.temp)
A. AJAX
B. PHP Bytecode
C. HTML/DOM Manipulation
D. HTML events
A. jQuery.ajaxSync()
B. jQuery.ajax()
C. jQuery.ajaxSetup()
D. jQuery.ajaxAsync()
With jQuery, look at the following selector: $("div.intro"). What does it select?
Question 1 of 20
MVC stands for?
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?
A. M
B. V
C. C
D. All (M, V, C)
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
C. Render an internationalized message string to the response.
D. Render the value of the specified bean property to the current JspWriter
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
Which of the following methods is overridden by Action class?
A. service()
B. destroy()
C. execute()
D. run()
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"" />
</action>
</action-mappings>
</struts-config>
True
False
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
Which validation way is used at client-side?
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 ___________
A. < jsp-taglib>
B. < struts-taglib>
C. < taglib>
D. < jsp-lib>
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. <htmlB. <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)
A. M
B. V
C. C
D. All (M, V, C)
A. Three
B. Uncountable instances
C. Four
D. One
A. < logic:lessThan>
B. < logic:iterate>
C. < logic:loop>
D. < login:redirect>
A. <s:
B. <s-
C. <html-
D. <html:
A. M
B. V
C. C
D. All (M, V, C)
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. M
B. V
C. C
D. All (M, V, C)
A. None of above
B. ActionBean class
C. FormBean class
D. ActionForm class
A. < jsp-lib>
B. < taglib>
C. < struts-taglib>
D. < jsp-taglib>
True
False
0.0/ 5.0 Points
Question 13 of 20
Which tag is used along with uri, to specify the tiles frameworks .tld file?
A. One
B. Three
C. Unlimited
D. Two
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.
A. < bean:define>
B. < bean:write>
C. < bean:message>
D. < bean:show>
A. Model
B. Controller
C. View
D. Deployment
A. ActionServlet
B. Action class
C. Deployment descriptor
A. M
B. V
C. C
D. All (M, V, C)
5.0/ 5.0 Points
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
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)
A. M
B. V
C. C
D. All (M, V, C)
A. Action class
B. ActionServlet
C. RequestProcessor
A. < logic:lessThan>
B. < logic:iterate>
C. < logic:loop>
D. < login:redirect>
A. struts-config.xml
B. struts-processor-conifg.xml
C. struts-action-config.xml
D. struts-configs.xml
A. 1 and 4
B. 2,3,4,5
C. 3, 4, 5
D. 1,2,4,5
A. HttpRequest
B. ActionServlet
C. Action class
D. RequestProcessor
A. < jsp-lib>
B. < taglib>
C. < struts-taglib>
D. < jsp-taglib>
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
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. ActionServlet
B. Action class
C. Deployment descriptor
Struts framework
True
False
5.0/ 5.0 Points
Question 18 of 20
Encapsulates Domain Logic which are independent of Presentation is responsibility of?
A. M
B. V
C. C
D. All (M, V, C)
A. M
B. V
C. C
D. All (M, V, C)
True
False
5.0/ 5.0 Points
Question 2 of 20
Performing DB Queries is responsibility of?
A. M
B. V
C. C
D. All (M, V, C)
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.
A. <s:
B. <s-
C. <html-
D. <html:
A. ActionServlet
B. ActionListener
C. RequestProcessor
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()
A. 1 and 4
B. 2,3,4,5
C. 3, 4, 5
D. 1,2,4,5
A. M
B. V
C. C
D. All (M, V, C)
A. M
B. V
C. C
D. All (M, V, C)
A. Model
B. Controller
C. View
D. Deployment
A. Action class
B. HttpResponse object
C. ActionServlet
D. Request Processor
A. M
B. V
C. C
D. All (M, V, C)
A. < jsp-lib>
B. < taglib>
C. < struts-taglib>
D. < jsp-taglib>
B. Validator Framework
C. Using javascript
A. Repeat the nested body content of this tag over a specified collection
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)
5.0/ 5.0 Points
Question 1 of 20
Which of the following tools can be used to stress test the Servlet
A. 1 only
B. 2 only
C. 1,2 both
D. Neither 1 nor 2.
A.Custom tags
B.Scriplets
C.Directives
D.Beans
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
A. location
B. exception-type
C. error-page
The ________________________ when added to the user session tells us that the session timed out.
A. SessionTimeoutIndicator
B. SessionTotalTimedoutIndicator
C. SessionTotalTimeOutIndicator
D. SessionTimedoutIndicator
Which codeline must be set before any of the lines that use the PrintWriter?
A. setPrintType()
B. setContentWriter()
C. setWriter()
D. setContentType()
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
The _____ method performs the cleanup of objects created during requests and responses between
clients and servers
A. Init()
B. Destroy()
C. Run()
D. Resume()
A. Content safe
B. Synchornised
C. Thread safe
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
The tasks authentication-blocking of requests, data compression, logging and auditing are
performed by
A. servlet container
B. servlet config
C. servlet filter
D. servlet context
A. servlet container
B. servlet context
C. servlet filter
D. servlet config
A. servlet context
B. servlet container
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
B. contextInitialized((),contextDestroyed()
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
5.0/ 5.0 Points
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.
A.Custom tags
B.Scriplets
C.Directives
D.Beans
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
A. location
B. exception-type
C. error-page
The ________________________ when added to the user session tells us that the session timed out.
A. SessionTimeoutIndicator
B. SessionTotalTimedoutIndicator
C. SessionTotalTimeOutIndicator
D. SessionTimedoutIndicator
Which codeline must be set before any of the lines that use the PrintWriter?
A. setPrintType()
B. setContentWriter()
C. setWriter()
D. setContentType()
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
The _____ method performs the cleanup of objects created during requests and responses between
clients and servers
A. Init()
B. Destroy()
C. Run()
D. Resume()
A. Content safe
B. Synchornised
C. Thread safe
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
The tasks authentication-blocking of requests, data compression, logging and auditing are
performed by
A. servlet container
B. servlet config
C. servlet filter
D. servlet context
A. servlet container
B. servlet context
C. servlet filter
D. servlet config
A. servlet context
B. servlet container
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
B. contextInitialized((),contextDestroyed()
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
Question 1 of 20
<input type="text" /> defines a ... input field that a user can enter text into
one-line
Question 7 of 20
Question 10 of 20
An ordered list starts with the ... tag. Each list item starts with the ... tag.
"<ol>
<li>"
Part 2 of 2 - Part 2
Question 11 of 20
To define the space between the element's border and content, you use the padding property, but are you allowed to
use negative values?
False
Question 13 of 20
How do you display a border like this: The top border = 10 pixels, The bottom border = 5 pixels, The left border = 20
pixels, The right border = 1pixel?
border-width:10px 1px 5px 20px
Question 17 of 20
Which of the following tags below are used for a multi-line text input control?
textarea tag
Question 18 of 20
Question 1 of 20
True
Question 3 of 20
A table is divided into rows (with the (1) tag), and each row is divided into data cells (with the (2) tag). A (3) tag
can contain text, links, images, lists, forms, other tables
"(1): <tr>
(2): <td>
(3): <td>"
Question 5 of 20
The error message displayed when the page is not found at the correct location.
404
Question 8 of 20
Question 10 of 20
True
Part 2 of 2 - Part 2
Question 11 of 20
Currently clicking and holding down the mouse button on represents ___________ pseudo class.
a:active
Question 12 of 20
Which of the following tags below are used for a multi-line text input control?
textarea tag
Question 13 of 20
Question 7 of 20
A homepage is __________
the first page of a website
Question 11 of 20
What is the correct syntax for removing the default underline from links?
a { text-decoration: none; }
Question 13 of 20
a {text-decoration:none}
Question 18 of 20
Question 5 of 20
Question 12 of 20
What is AJAX ?
is a program
Question 15 of 20
jQuery method to set one or more style properties for selected elements?
css()
Question 16 of 20
Question 20 of 20
URL encoding is the method of replacing all the spaces and other extra characters into their
corresponding _______ Characters
Hex
Question 2 of 20
The ________________________ when added to the user session tells us that the session timed out.
SessionTimeoutIndicator
Question 3 of 20
The two different errors that may occur during the lifecycle of JSP are
Request time errors
Translation time errors
Question 4 of 20
The three main types of JSP constructs that can be embedded in a Java Server page are
Actions
Scripting Elements
Directives
Question 5 of 20
The _____ method performs the cleanup of objects created during requests and responses between
clients and servers
Destroy()
Question 6 of 20
The three basic bean tags used in JavaServer Pages are
Jsp:getProperty
Jsp:useBean
Jsp:setProperty
Question 7 of 20
Which of the following tools can be used to stress test the Servlet
1. JMeter from Apache
2. Mercury LoadRunner
1,2 both
Question 9 of 20
In the properties files _________ defines global Servlet settings and list of servlets in the system.
Session.properties
Question 10 of 20
Which of the tag is used to show the comments in the JSP page?
<%-- comment -- %>
Question 11 of 20
The tasks authentication-blocking of requests, data compression, logging and auditing are
performed by
servlet filter
Question 13 of 20
How many ServletContext objects are available for an entire web application?
Only one
Question 14 of 20
Question 15 of 20
The include() method of RequestDispatcher
includes resource of file like servlet, jsp or html
Question 16 of 20
What is the disadvantage of Type-4 Native-Protocol Driver?
At client side, a separate driver is needed for each database.
Question 17 of 20
The method forward(request,response) will
return back to the same method from where the forward was invoked
Question 18 of 20
What is the limit of data to be passed from HTML when doGet() method is used?
2K
Question 1 of 20
_____ is a process which allows the bean container to examine any class at run-time to
determine its method signatures
Reflection
Question 2 of 20
Under JSP 1.0 , the implicit object which can be used for reference. It is used to refer to the
______________
Servlet generated by the JSP page
Question 5 of 20
Which of the tag contains a code fragment valid in the page scripting language?
<% code fragment %>
Question 8 of 20
In the properties files _________ defines global Servlet settings and list of servlets in the
system.
Session.properties
Question 10 of 20
JSP is the Java platform technology for building applications containing dynamic web
contents such as __________________
1. XHTML
2. XML
3. DHTML
4. HTML
1234
Question 11 of 20
The getSession() method with true as its parameter [ getSession(true) ] it will return the
appropriate session object when
the session is existing
Question 12 of 20
Question 14 of 20
Which method is used to specify before any lines that uses the PintWriter?
setContentType()
Question 15 of 20
How many ServletContext objects are available for an entire web application?
Only one
Question 18 of 20
Java Server Pages technology commonly called JSP technology offers the following
advantages
1. Separation of dynamic and static content.
2. Support for scripting and tags
3. Reuse of components and tags.
4. Web access layer for N-tier enterprise application architecture
All of 1 2 3 4
Question 9 of 20
_______ is the process of creating a copy of an object suitable for passing to another
object
Reflection
Question 12 of 20
What are the mechanisms available in ServletContextListener interface?
contextInitialized((),contextDestroyed()
Question 17 of 20
How many instances can be created per application module by the RequestProcessor
class?
One
Question 4 of 20
Question 6 of 20
True
5.0/ 5.0 Points
Question 10 of 20
5/5
Which of the following methods is overridden by Action class?
execute()
Question 11 of 20
Calculating Business Process is responsibility of?
M
Question 12 of 20
Which of the java bean tags is used to show the bean value on the web page?
< bean:write>
Question 13 of 20
Action class
5.0/ 5.0 Points
Question 19 of 20
Question 20 of 20
<logic:iterate> tag in Struts 1.x is used to ___________
Repeat the nested body content of this tag over a specified collection
5.0/ 5.0 Points
Question 1 of 20
Which of the following tags in struts-config.xml file defines the availability of
necessary Struts JSP custom tag libraries?
< taglib>
Question 2 of 20
Render the value of the specified bean property to the current JspWriter
5.0/ 5.0 Points
Question 3 of 20
The dispatch from the controller to the Action class is based on a
configuration that is provided by a
struts-config.xml
Question 6 of 20
Request Processor
Question 9 of 20
type="org.apache.struts.validator.DynaValidationForm"
Question 19 of 20
Question 1 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
1,2,4,5
Question 6 of 20
Encapsulates Domain Logic which are independent of Presentation is responsibility of?
M
5.0/ 5.0 Points
Question 13 of 20
Serves logical connection between users interaction and the business process is responsibility of?
C
</action-mappings>
</struts-config>
True
False
5.0/ 5.0 Points
Question 2 of 20
Performing DB Queries is responsibility of?
A. M
B. V
C. C
D. All (M, V, C)
A. <s:
B. <s-
C. <html-
D. <html:
A. ActionServlet
B. ActionListener
C. RequestProcessor
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()
A. 1 and 4
B. 2,3,4,5
C. 3, 4, 5
D. 1,2,4,5
A. M
B. V
C. C
D. All (M, V, C)
A. M
B. V
C. C
D. All (M, V, C)
A. Model
B. Controller
C. View
D. Deployment
A. Action class
B. HttpResponse object
C. ActionServlet
D. Request Processor
A. M
B. V
C. C
D. All (M, V, C)
A. < jsp-lib>
B. < taglib>
C. < struts-taglib>
D. < jsp-taglib>
B. Validator Framework
C. Using javascript
collection
resourse bundle)