| | | | MCQ Tutorial - JAVA->SERVLET | | | | 11.) What is the limit of data to be passed from HTML when doGet() method is used? | | Options are: | | A.) 4 KB
| | B.) 2 KB
| | C.) 8 KB
| | D.) not return back to the same method from where the forward was invoked 1 KB
| | Correct Option: B | | | | | | | 12.) Which method is used to specify before any lines that uses the PintWriter? | | Options are: | | A.) setPageType()
| | B.) setContentType()
| | C.) setResponseType()
| | D.) setContextType()
| | Correct Option: B | | | | | | | 13.) What is the limit of data to be passed from HTML when doGet() method is used? | | Options are: | | A.) 4 KB
| | B.) 2 KB
| | C.) 8 KB
| | D.) not return back to the same method from where the forward was invoked 1 KB
| | Correct Option: B | | | | | | | 14.) What is the difference between servlets and applets?
1.Servlets executes on Servers, where as Applets executes on Browser 2.Servlets have no GUI, where as an Applet has GUI 3.Servlets creates static web pages, where as Applets creates dynamic web pages 4.Servlets can handle only a single request, where as Applet can handle multiple requests | | Options are: | | A.) Only 1st & 2nd are correct
| | B.) Only 1st & 3rd are correct
| | C.) All 1st, 2nd, 3rd & 4th are correct
| | D.) Only 1st, 2nd & 3rd are correct
| | Correct Option: A | | | | | | | 15.) Which of the following are the session tracking techniques? | | Options are: | | A.) URL rewriting, using session object, using cookies, using hidden fields
| | B.) URL rewriting, using servlet object, using response object, using cookies
| | C.) URL rewriting, using request object, using response object, using session object
| | D.) URL rewriting, using session object, using response object, using hidden fields
| | Correct Option: A | | | | | | | | | | | |