Top 150+ Solved Enterprise Computing With JAVA MCQ Questions Answer

From 76 to 90 of 173

Q. Which attribute is used to hold the Java Script Version?

a. SCRIPT

b. VERSION

c. LANGUAGE

d. VER

  • c. LANGUAGE

Q. JavaScript RegExp Object has modifier 'i' to __________

a. Perform case-sensitive matching

b. Perform case-insensitive matching

c. Perform both case-sensitive&case-insensitive matching

d. None of above

  • b. Perform case-insensitive matching

Q. How many ServletContext objects are available for an entire web application?

a. One each per servlet

b. One each per request

c. One each per response

d. Only one

  • d. Only one

Q. Which of the following delegates the request handling to the RequestProcessor instance?

a. ActionServlet

b. Action class

c. Deployment descriptor

d. None of the above

  • a. ActionServlet

Q. How many instances can be created per application module by the RequestProcessor class?

a. Four

b. Three

c. One

d. Uncountable instances

  • c. One

Q. An instance of Action is invoked by

a. ActionServlet

b. ActionListener

c. RequestProcessor

d. All of the above

  • c. RequestProcessor

Q. Application module selection is done by

a. Action class

b. ActionServlet

c. RequestProcessor

d. All of the above

  • b. ActionServlet

Q. Which of the following methods is overridden by Action class?

a. execute()

b. service()

c. run()

d. destroy()

  • a. execute()

Q. Which of the following should always forwards or redirect to a resource (view) after completed?

a. HttpResponse object

b. ActionServlet

c. Action class

d. Request Processor

  • d. Request Processor

Q. Which of the following acts as a bridge between user-invoked URI and a business method?

a. HttpRequest

b. Action class

c. ActionServlet

d. RequestProcessor

  • b. Action class

Q. Struts framework

a. should always decouple the application from a specific model implementation

b. provides model components

c. does not support JavaBeans and EJB

d. has built-in support for the model

  • a. should always decouple the application from a specific model implementation

Q. Which attribute specifies a JSP page that should process any exceptions thrown but notcaught in the current page?

a. The ErrorPage Attribute

b. The IsErrorPage Attribute

c. Both A & B

d. None of the above

  • b. The IsErrorPage Attribute

Q. What technique is used for the authentication mechanism in the servlet specification?

a. Role Based Authentication

b. Form Based Authentication

c. Both A & B

d. None of the above

  • a. Role Based Authentication
Subscribe Now

Get All Updates & News