Servlet Online Exam Quiz
Servlet GK Quiz. Question and Answers related to Servlet. MCQ (Multiple Choice Questions with answers about Servlet
How is the dynamic interception of requests and responses to transform the information done?
Options
A : servlet container
B : servlet config
C : servlet context
D : servlet filter
When destroy() method of a filter is called?
Options
A : The destroy() method is called only once at the end of the life cycle of a filter
B : The destroy() method is called after the filter has executed doFilter method
C : The destroy() method is called only once at the begining of the life cycle of a filter
D : The destroyer() method is called after the filter has executed
Which are the session tracking techniques?^ i. URL rewriting^ ii. Using session object^ iii.Using response object^ iv. Using hidden fields^ v. Using cookies^ vi. Using servlet object
Options
A : i, ii, iii, vi
B : i, ii, iv, v
C : i, vi, iii, v
D : i, ii, iii, v
Which of the below is not a session tracking method?
Options
A : URL rewriting
B : History
C : Cookies
D : SSL sessions
Which of the following code retrieves the body of the request as binary data?
Options
A : DataInputStream data = new InputStream()
B : DataInputStream data = response.getInputStream()
C : DataInputStream data = request.getInputStream()
D : DataInputStream data = request.fetchInputStream()
Which of the following is not true about session?
Options
A : All users connect to the same session
B : All users have same session variable
C : Default timeout value for session variable is 20 minutes
D : New session cannot be created for a new user
Which of the following is stored at client side?
Options
A : URL rewriting
B : Hidden form fields
C : SSL sessions
D : Cookies
Which of the following is true about servlets?
Options
A : Servlets execute within the address space of web server
B : Servlets are platform-independent because they are written in java
C : Servlets can use the full functionality of the Java class libraries
D : Servlets execute within the address space of web server, platform independent and uses the functionality of java class libraries
Which of the following is used for session migration?
Options
A : Persisting the session in database
B : URL rewriting
C : Create new database connection
D : Kill session from multiple sessions
Which of the following leads to high network traffic?
Options
A : URL rewriting
B : Hidden form fields
C : SSL sessions
D : Cookies
Annotations more Online Exam Quiz
Abrasive Jet Machining - Introduction and Machining system