Servlet Basics Quiz Series 3, Servlet Basics Online Test Series 3
Finish Quiz
0 of 20 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
Information
Servlet Basics Quiz Series 3, Servlet Basics Online Test Series 3. Free Java Servlet Quiz, Online Java, online Test Quiz 3. Servlet Basics Quiz 3 Question and Answers 2019. Java online Test Quiz 3. Java Servlet Quiz 3 Free Mock Test 2019. Servlet Basics Quiz 3 Question and Answers in PDF. The Java online mock test paper is free for all students. Servlet Basics is very useful for exam preparation and getting for Rank. Servlet Basics Quiz 3 Question and Answers in English. Free Servlet Mock test for topic via Servlet Test. Here we are providing Servlet Basics Quiz in English Now Test your self for “Servlet Basics in English” Exam by using below quiz…
This paper has 20 questions.
Time allowed is 25 minutes.
The Java Servlet Mock Test is Very helpful for all students. Now Scroll down below n click on “Start Quiz” or “Start Test” and Test yourself.
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
Results
0 of 20 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
| Average score |  | 
| Your score |  | 
Categories
- Not categorized 0%
| Pos. | Name | Entered on | Points | Result | 
|---|---|---|---|---|
| Table is loading | ||||
| No data available | ||||
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- Answered
- Review
- 
                            Question 1 of 201. QuestionWhat are Servlets? Correct
 Java Servlets are programs that run on a Web or Application server and act as a middle layer between a request coming from a Web browser or other HTTP client and databases or applications on the HTTP server. Incorrect
 Java Servlets are programs that run on a Web or Application server and act as a middle layer between a request coming from a Web browser or other HTTP client and databases or applications on the HTTP server. 
- 
                            Question 2 of 202. QuestionWhich of the following is true about HTTP Post method? Correct
 The POST method sends the encoded user information as a seperate message to page request. It is used to submit form data normally. Incorrect
 The POST method sends the encoded user information as a seperate message to page request. It is used to submit form data normally. 
- 
                            Question 3 of 203. QuestionWhich of the following code is used to get session in servlet? Correct
 request.getSession() returns the current session associated with this request, or if the request does not have a session, creates one. Incorrect
 request.getSession() returns the current session associated with this request, or if the request does not have a session, creates one. 
- 
                            Question 4 of 204. QuestionWhich of the following code retrieves the MIME type of the body of the request? Correct
 request.getContentType() returns the MIME type of the body of the request, or null if the type is not known. Incorrect
 request.getContentType() returns the MIME type of the body of the request, or null if the type is not known. 
- 
                            Question 5 of 205. QuestionWhich of the following code encodes the specified URL for use in the sendRedirect method? Correct
 Incorrect
 
- 
                            Question 6 of 206. QuestionWhich of the following code can be used to add a date header? Correct
 response.addDateHeader(name,date) adds a response header with the given name and date-value. Incorrect
 response.addDateHeader(name,date) adds a response header with the given name and date-value. 
- 
                            Question 7 of 207. QuestionWhich of the following is the correct order of filter life cycle phase methods? Correct
 Incorrect
 
- 
                            Question 8 of 208. QuestionWhich of the following is true about init() method of filter? Correct
 The init method is designed to be called only once. It is called when the filter is first created, and not called again for each user request. It simply creates or loads some data that will be used throughout the life of the filter. Incorrect
 The init method is designed to be called only once. It is called when the filter is first created, and not called again for each user request. It simply creates or loads some data that will be used throughout the life of the filter. 
- 
                            Question 9 of 209. QuestionWhich of the following code is used to add an attribute in a HTTP Session object in servlets? Correct
 session.setAttribute() binds an object to this session, using the name specified. Incorrect
 session.setAttribute() binds an object to this session, using the name specified. 
- 
                            Question 10 of 2010. QuestionWhich of the following code is used to get country/region code in servlets? Correct
 request.getCountry() returns the country/region code in upper case for this locale in ISO 3166 2-letter format. Incorrect
 request.getCountry() returns the country/region code in upper case for this locale in ISO 3166 2-letter format. 
- 
                            Question 11 of 2011. QuestionThrough which tag you can define servlet context in web.xml? Correct
 Incorrect
 
- 
                            Question 12 of 2012. QuestionHow the web-application get servlet context ? Correct
 Incorrect
 
- 
                            Question 13 of 2013. QuestionGet is faster that Post method. true or false.? Correct
 Incorrect
 
- 
                            Question 14 of 2014. QuestionCan you run a servlet in application server? Correct
 Incorrect
 
- 
                            Question 15 of 2015. QuestionWhich method shows the client what server is receiving? Correct
 Incorrect
 
- 
                            Question 16 of 2016. QuestionHow many caracters we can send though doGet()? Correct
 Incorrect
 
- 
                            Question 17 of 2017. QuestionServlet is a stand-alone java application , true or false? Correct
 Incorrect
 
- 
                            Question 18 of 2018. QuestionIn which folder of tomcat you have to put your web application? Correct
 Incorrect
 
- 
                            Question 19 of 2019. QuestionThrough which tag you can define servlet config in web.xml? Correct
 Incorrect
 
- 
                            Question 20 of 2020. QuestionWhen init parameters are read by container? Correct
 Incorrect
 
