MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
Computer Science
Jsp
Quiz 1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Q.1
<c:set> belongs to which category of JSP elements?
JSP standard action
JSP directive
JSP standard Tag Library action
Java Bean
Q.2
In ______ method data are send through HTTP request.
GET
POST
Both a or b
None of the above
Q.3
In ______ method data are send as query string.
GET
POST
Both a or b
None of the above
Q.4
Why use RequestDispatcher to forward a request to another resource, instead of using a sendRedirect?
Redirects are no longer supported in the current servlet API.
Redirects are not a cross-platform portable mechanism
The RequestDispatcher does not require a round trip to the client, and thus is more efficient and allows the server to maintain request state
The RequestDispatcher does not use the reflection API.
Q.5
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
Q.6
_________ is responsible for managing execution of servlet
Web Container
Servlet Context
JVM
Server
Q.7
Choose an incorrect statement from the following.
JSP pages are easier to maintain than a servlet.
The Web Container translate a Servlet into JSP page.
JSP is built on Java Technology so it is platform independent.
A JSP page seperates presentation and business logic.
Q.8
GenericServlet class is encapsulated inside __________ package
java.lang
javax.servlet
java.servlet
javax.servlet.http
Q.9
Deployment Descriptor(DD) is a _________ .
Servlet used to maintain other servlet.
Text document
XML document that is used by Web Container to run servlets and JSPs.
Library file.
Q.10
What are the attributes of form tag in HTML?
Action
Method
Post
Both A & B
Q.11
Find the correct syntax of the declaration which defines the XML Version?
< ?xml version= "1.0" ? >
< xml version="1.0"/ >
< ?xml version="1.0" / >
None of the above
Q.12
Which statement is true for request.getSession(true) method?
if session already exist, it return the existing session else create a new session
getSession(true) method always returns a new session
getSession(true) method always returns a pre existing session
none
Q.13
Validation is a process of checking the input data submitted by the user from client machine.
True
False
Q.14
On clicking the submit button the request will be generated and reaches a PHP file
True
False
Q.15
Text input contains performed through
Textbox
Textarea
Password
Both A & B
Q.16
Required attribute is added to input tag
True
False
Q.17
JSP is a
Server Technology
Client Technology
Both
Either
Q.18
In JSP how many implicit objects are there
7
8
9
10
Q.19
MVC Stands for
Mobile View Controller
Model Visibility Control
Model View Controller
None of the above
Q.20
JSP elements are
directive, action, and Page.
directive, action, and scripting.
Include, action, and scripting.
Include, page, and scripting.
0 h : 0 m : 1 s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Report Question
×
What's an issue?
Question is wrong
Answer is wrong
Other Reason
Want to elaborate a bit more? (optional)
Support mcqgeeks.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page