Professional Documents
Culture Documents
This section presents you various set of Mock Tests related to JSP Framework. You can download
these sample mock tests at your local machine and solve offline at your convenience. Every mock
test is supplied with a mock test key to let you verify the final score and grade yourself.
A - name, property
B - type, id
C - name, type
D - id, property
A - name, property
B - type, id
C - name, type
D - id, property
A - id, type
B - id, class
C - type, class
D - type,property
A - Object created with request scope are accessible only from the page in which they are
created.
B - Object created with request scope are accessible only from the pages which are in same
session.
C - Object created with request scope are accessible only from the pages which are processing
the same request.
D - Object created with request scope are accessible only from the pages which reside in same
application.
A - Object created with request scope are accessible only from the page in which they are
created.
B - Object created with request scope are accessible only from the pages which are in same
session.
C - Object created with request scope are accessible only from the pages which are processing
the same request.
D - Object created with request scope are accessible only from the pages which reside in same
application.
A - Object created with request scope are accessible only from the page in which they are
created.
B - Object created with request scope are accessible only from the pages which are in same
session.
C - Object created with request scope are accessible only from the pages which are processing
the same request.
D - Object created with request scope are accessible only from the pages which reside in same
application.
A - Object created with request scope are accessible only from the page in which they are
created.
B - Object created with request scope are accessible only from the pages which are in same
session.
C - Object created with request scope are accessible only from the pages which are processing
the same request.
D - Object created with request scope are accessible only from the pages which reside in same
application.
Q 9 - Which of the following is true about language attribute?
A - The language attribute indicates the programming language used in scripting the servlet.
B - The language attribute indicates the programming language used in scripting the html page.
C - The language attribute indicates the programming language used in scripting the JSP page.
A - error
B - errorPage
C - exception
D - exceptionPage
A - isErrorPage
B - errorPage
C - exception
D - exceptionPage
A - id, type
B - page, flush
C - type, class
D - type,page
A - include
B - page
C - scriptlet
D - useBean
A - pageContext
B - servletContext
C - httpContext
D - sessionContext
A - True
B - False
A - javax.servlet.jsp.JspWriter
B - javax.servlet.jsp.PringWriter
C - javax.servlet.Writer
D - javax.servlet.jsp.Writer
A - javax.servlet.ServletContext
B - javax.servlet.HttpContext
C - javax.servlet.Context
D - javax.servlet.Application
A - javax.servlet.ServletContext
B - javax.servlet.ServletConfig
C - javax.servlet.Context
D - javax.servlet.Application
A - javax.servlet.ServletContext
B - javax.servlet.ServletConfig
C - javax.servlet.jsp.PageContext
D - javax.servlet.Application
Q 20 - Which of the following method can be used to read a form parameter in JSP?
A - request.getParameter
B - response.getParameter
C - request.getValue
D - response.getValue
Q 21 - Which of the following method can be used to read a multiple values with same
name, for example check box selections?
A - request.getParameter
B - response.getParameter
C - request.getParameterValues
D - response.getParameterValues
A - request.getParameter
B - response.getParameter
C - request.getParameterNames
D - response.getParameterNames
Q 23 - Which of the following method can be used to read binary data stream coming
from the client?
A - request.getInputStream
B - response.getInputStream
C - request.getInputStreamData
D - response.getInputStreamData
A - JSP Filters are used to intercept requests from a client before they access a resource at back
end.
B - JSP Filters are used to manipulate responses from server before they are sent back to the
client.
1 A
2 A
3 B
4 A
5 C
6 A
7 B
8 D
9 C
10 B
11 A
12 B
13 C
14 A
15 B
16 A
17 A
18 B
19 C
20 A
21 C
22 C
23 A
24 C
25 A
Loading [MathJax]/jax/output/HTML-CSS/jax.js