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?
  1.    The ErrorPage Attribute
  2.    The IsErrorPage Attribute
  3.    Both A & B
  4.    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?
  1.    get
  2.    post
  3.    option
  4.    put
Explanation:-
Answer: Option A. -> get





Question 3. Which is not a directive?
  1.    include
  2.    page
  3.    export
  4.    useBean
Explanation:-
Answer: Option C. -> export





Question 4. JDBC is a ¦¦¦¦¦¦¦ interface, which means that it is used to invoke SQL commands directly
  1.    low-level
  2.    middle-level
  3.    higher-level
  4.    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?
  1.    Redirects are no longer supported in the current servlet API
  2.    Redirects are not a cross-platform portable mechanism
  3.    The RequestDispatcher does not use the reflection API
  4.    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?
  1.    A JSP page
  2.    A JavaBean
  3.    A servlet
  4.    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)
  1.    three
  2.    two
  3.    four
  4.    single
Explanation:-
Answer: Option A. -> three





Question 8. What is the name of the organization helping to foster security standards for cloud computing?
  1.    Cloud Security Standards Working
  2.    Cloud Security Alliance
  3.    Cloud Security Watchdog
  4.    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?
  1.    Objects with request scope are accessible from pages processing the same request where they were created
  2.    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
  3.    References to objects with request scope are stored in the request object
  4.    All of the above
Explanation:-
Answer: Option D. -> All of the above





Question 10. How to send data in get method?
  1.    We can't
  2.    Through url
  3.    Through payload
  4.    None of these
Explanation:-
Answer: Option B. -> Through url