T4Tutorials .PK

SESSION MANAGEMENT MCQs – CHAPTER 7 DAE

1. . Which of the below is not a session tracking method?

(A) URL rewriting


(B) SSL sessions


(C) Cookies


(D) History




2. . Which of the following is stored at client side?

(A) URL rewriting


(B) Hidden form fields


(C) Cookies


(D) SSL sessions




3. . Which of the following leads to high network traffic?

(A) Hidden form fields


(B) URL rewriting


(C) SSL sessions


(D) Cookies




4. . What is the maximum size of cookie?

(A) 4 bytes


(B) 4 MB


(C) 4 KB


(D) 40 KB




5. . Which method creates unique fields in the HTML which are not shown to the user?

(A) User authentication


(B) HTML Hidden field


(C) URL writing


(D) HTML invisible field




6. . Which object is used by spring for authentication?

(A) ContextHolder


(B) SecurityContextHolder


(C) AnonymousHolder


(D) SecurityHolder




7. . Which object of HttpSession can be used to view and manipulate information about a session?

(A) All mentioned above


(B) Creation time


(C) Last accessed time


(D) Session identifier




8. . Which class provides stream to read binary data such as image etc. from the request object?

(A) Both A & B


(B) ServletOutputStream


(C) ServletInputStream


(D) None of the above




9. . Which of these ways used to communicate from an applet to servlet?

(A) RMI Communication


(B) All mentioned above


(C) Socket Communication


(D) HTTP Communication




10. . Which method is used to send the same request and response objects to another servlet in RequestDispatcher?

(A) Both A & B


(B) sendRedirect()


(C) forward()


(D) None of the above




Exit mobile version