Jsp(Engineering > Computer Science And Engineering ) Questions and Answers
Question 1. Which attribute specifies a JSP page that should process any exceptions thrown but not caught in the current page?
The ErrorPage Attribute
The IsErrorPage Attribute
Both A & B
None of the above
Explanation:-
Answer: Option A. -> The ErrorPage Attribute
Question 2. Which http method send by browser that asks the server to get the page only?
get
post
option
put
Explanation:-
Answer: Option A. -> get
Question 3. Which is not a directive?
include
page
export
useBean
Explanation:-
Answer: Option C. -> export
Question 4. JDBC is a ¦¦¦¦¦¦¦ interface, which means that it is used to invoke SQL commands directly
low-level
middle-level
higher-level
user
Explanation:-
Answer: Option A. -> low-level
Question 5. Why use Request Dispatcher 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 use the reflection API
The RequestDispatcher does not require a round trip to the client, and thus is more efficient and allows the server to maintain request state
Explanation:-
Answer: Option D. -> The RequestDispatcher does not require a round trip to the client, and thus is more efficient and allows the server to maintain request state
Question 6. What is the initial contact point for handling a web request in a Page-Centric architecture?
A JSP page
A JavaBean
A servlet
A session manager
Explanation:-
Answer: Option A. -> A JSP page
Question 7. Java Soft provides ¦¦¦¦¦.. JDBC product components as part of the java Developer's Kit (JDK)
three
two
four
single
Explanation:-
Answer: Option A. -> three
Question 8. What is the name of the organization helping to foster security standards for cloud computing?
Cloud Security Standards Working
Cloud Security Alliance
Cloud Security Watchdog
Security in the Cloud Alliance
Explanation:-
Answer: Option B. -> Cloud Security Alliance
Question 9. Which of the following statements is true regarding the scope of 'request' in JSP?
Objects with request scope are accessible from pages processing the same request where they were created
All references to the object shall be released after the request is processed; in particular, if the request is forwarded to a resource in the same run time, the object is still reachable
References to objects with request scope are stored in the request object