Font size
WorksheetsJSP
Total questions: 47
Worksheet time: 24mins
What is a Hidden Comment in JSP?
<%– %>
<%– –%>
Which one of the following is correct for directive in JSP?
<%!directive%>
<%directive%>
<%=directive%>
<%@directive%>
Java code is embedded under which tag in JSP?
Expression
Declaration
Scriptlet
Comment
Which method stores the input data in the request body of the clients HTTP request
POST
GET
form
HTML
Which of these is the Web deployment Descriptor file required for the web applications.
WEB-INF
web.xml
webApps
META-INF
Which driver is efficient and always preferable for using JDBC applications?
Type-4
Type-3
Type-2
Type-1
Which packages contain the JDBC classes?
java.jdbc and javax.jdbc
java.jdbc and java.jdbc.sql
java.sql and javax.sql
java.rdb and javax.rdb
Which type of Statement can execute parameterized queries?
PreparedStatement
ParameterizedStatement
ParameterizedStatement and CallableStatement
All kinds of Statements (i.e. which implement a sub interface of Statement)
Two models of JSP Application Architecture are:
Select ALL that apply.
Servlet-Centric Architecture
HTML-Centric Architecture
JSP-Centric Architecture
JavaScript-Centric Architecture
The life cycle of a servlet is managed by
servlet context
servlet container
the supporting protocol (such as http or https)
All of the above
The life cycle of a servlet is managed by
servlet context
servlet container
the supporting protocol (such as http or https)
All of the above
Which JDBC driver Types are for use over communications networks?
Type 3 only
Type 4 only
Both Type 3 and Type 4
Neither Type 3 nor Type 4
What type of servlets use these methods doGet(), doPost(),doHead, doDelete(), doTrace()?
Genereic Servlets
HttpServlets
Servlets
All of the above
Which method is used to send the same request and response objects to another servlet in RequestDispacher ?
forward()
sendRedirect()
Both forward() & sendRedirect()
None of the above
Which of the following statement is not correct about HTTP method ?
A GET request append data to the end of the URL.
A POST request append data to the end of the URL.
HTTP DELETE method request for the Server to delete the resource
HTTP OPTIONS request for communication options available on the request/response chain
Java Server Pages (JSP) is a ------------------------------
client-side programming technology
server-side programming technology
Both
Select the correct statement
Every JSP page is converted into servlet
Every servlet is converted into JSP
No conversion is possible
Both conversions are possible
Which of the following is not a directive?
page
form
taglib
include
Select valid declaration in JSP
<% int data=50; %>
<%!-- int data=50; --%>
<%@ int data=50; %>
<%! int data=50; %>
<%@page attribute= %>
In above statement attribute may be
include
import
session
all the above
Which of the following is not an implicit object in jsp?
exception
date
out
context
Default value of autoFlush attribute is?
8kb
16kb
true
false
Which one is the correct order of phases in JSP life cycle?
Initialization, Cleanup, Compilation, Execution
Initialization, Compilation, Cleanup, Execution
Compilation, Initialization, Execution, Cleanup
Cleanup, Compilation, Initialization, Execution
Select the method to get form data into jsp
getParameter()
request.getparameter()
request.getParameter()
request.getString()
The code inside scriplet will be placed in _____ method of jsp life cycle.
jsp_init()
jsp_service()
_jspService()
httpService()
Which of the following is true about <jsp:forward> action?
The forward action terminates the action of the current page.
The forward action forwards the request to another resource such as a static page, another JSP page, or a Java Servlet.
Both the above
None
Which of the following is not a directive?
Include
useBean
export
page
Which is/are the comments in JSP
<%-- comment --%>
</* comment */>
both the above
none
JSP elements are
Directives
Scripting
Page
Action
Include
MVC Stands for
Mobile View Controller
Model Visibility Control
Model View Controller
None of the above
In JSP how many implicit objects are there
7
8
9
10
JSP is a
Server Technology
Client Technology
Both
Either
Which are the techniques for defining the structure of a specific type of XML documents?
Schema
DTD
Both A & B
None of the above
Javascript is _________ language.
Programming
Scripting
Application
applet
JavaScript is ______ Side Scripting Language.
JSP
Servlet
Server
Browser
JavaScript is designed for following purpose -
To Style HTML Pages
To Perform Server Side Scripting Opertion
To add interactivity to HTML Pages.
To Execute Query Related to DB on Server
JavaScript is designed for following purpose -
To Style HTML Pages
To Perform Server Side Scripting Opertion
To add interactivity to HTML Pages.
To Execute Query Related to DB on Server
JavaScript is can be written -
directly into JS file and included into HTML
directly into HTML pages
directly on the Server Script
None of these
JavaScript is an ________ language.
compiled
interpreted
JavaScript Code is written inside file having extension __________.
.jsc
.jvs
.js
.javascript
JavaScript Code is written inside file having extension __________.
.jsc
.jvs
.js
.javascript
Why JavaScript is called as Lightweight Programming Language ?
because JS can provide programming functionality inside but up to certain extend.
because JS is client side scripting
because JS is available free of cost.
because we can add programming functionality inside JS
Local Browser used for validations on the Web Pages uses __________.
HTML
CSS
js
java
JavaScript Code can be called by using _________.
RMI
Function / Method
Triggering Event
Preprocessor
Is this correct syntax to include JS Code inside HTML Page ?
<script type="text/javascript">
...
</script>
Yes
No
We cannot Place JS Code in the body tag . Say true/false.
True
False.
