Top 150+ Solved Enterprise Computing With JAVA MCQ Questions Answer

From 31 to 45 of 173

Q. The method forward (request,response) will

a. return back to the same method from where the forward was invoked

b. not return back to the same method from where the forward was invoked and the web pages navigation continues

c. Both A and B are correct

d. None of the above

  • a. return back to the same method from where the forward was invoked

Q. Which of the following are the session tracking techniques?

a. URL rewriting, using session object, using response object, using hidden fields

b. URL rewriting, using session object, using cookies, using hidden fields

c. URL rewriting, using servlet object, using response object, using cookies

d. URL rewriting, using request object, using response object, using session object

  • b. URL rewriting, using session object, using cookies, using hidden fields

Q. The getSession() method with ‘true’ as its parameter [ getSession(true) ] it will return the appropriate session object when

a. the session is completed

b. the session object is passed to another method

c. the session does not exists

d. the session is existing

  • d. the session is existing

Q. RequestDispatcher object is used

a. to include other resources

b. to include an image

c. to include xml object

d. to include e-mailing response

  • a. to include other resources

Q. The include() method of RequestDispatcher

a. sends a request to another resource like servlet, jsp or html

b. includes resource of file like servlet, jsp or html

c. appends the request and response objects to the current servlet

d. None of the above

  • b. includes resource of file like servlet, jsp or html

Q. To get the servlet environment information

a. ServletConfig object is used

b. ServletException object is used

c. ServletContext object is used

d. ServletContainer object is used

  • c. ServletContext object is used

Q. The values of <servlet-name> and <servlet-class> in web.xml file

a. must be same

b. must not be same

c. may be same

d. None of the above

  • c. may be same

Q. In the following statements identify the disadvantages of CGI?

a. If number of clients increases, it takes more time for sending response

b. For each request, it starts a process and Web server is limited to start processes

c. It uses platform dependent language e.g. C, C++, perl

d. All mentioned above

  • d. All mentioned above

Q. Servlet technology is used to create web application?

a. True

b. False

c. all

d. none

  • a. True

Q. In the HTTP Request method which is non-idempotent?

a. GET

b. POST

c. BOTH A & B

d. None of the above

  • b. POST
Subscribe Now

Get All Updates & News