JSP and Servlet Quiz - 2
Test your knowledge of JSP and Servlet programming concepts including session management, lifecycle methods, and servlet functionality.
Questions
Question 1 Multiple Choice (Single Answer)
The Maximum Length Of The Session Id(Length Identifier) Is ___________
- 4K
- 2K
- 6K
- None of the above is correct.
Question 2 Multiple Choice (Single Answer)
Following method(s) cannot be overridden in the JSP page.
- _jspService()
- jspInit()
- jspDestroy()
- getParameter()
Question 3 Multiple Choice (Single Answer)
The session tracking in the JSP can be done by :-
- URL rewriting
- Cookies
- User-Authorization
- Hidden Files
- 1,3,4 only
- 2,3,4 only
- 1,2,4 only
- 1,2,3,4
Question 4 Multiple Choice (Single Answer)
Calling of which of the following method causes unpredictable results in the Servlet.
- doPost()
- doGet()
- System.out.println()
- System.exit(0);
Question 5 Multiple Choice (Single Answer)
Some Operating Systems have a limitation on the Max Length of the URL, which are normally _______ characters.
- 255
- 225
- 264
- 250
Question 6 Multiple Choice (Single Answer)
The mails can be send from the Servlet by the usage of the following :-
- Simple Mail Transfer Protocol (SMTP) implementation in Java.
- Java Mail API
- Both a and b
- Neither a and b