Top 150+ Solved Enterprise Computing With JAVA MCQ Questions Answer
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
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
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
Q. How many instances can be created per application module by the RequestProcessor class?
a. Four
b. Three
c. One
d. Uncountable instances
Q. An instance of Action is invoked by
a. ActionServlet
b. ActionListener
c. RequestProcessor
d. All of the above
Q. Application module selection is done by
a. Action class
b. ActionServlet
c. RequestProcessor
d. All of the above
Q. Which of the following methods is overridden by Action class?
a. execute()
b. service()
c. run()
d. destroy()
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
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
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
Q. Which of the following tags in struts-config.xml file defines the availability of necessary Struts JSP custom tag libraries?
a. < jsp-lib>
b. < struts-taglib>
c. < taglib>
d. < jsp-taglib>
Q. Which can generate HTML dynamically on the client but can hardly interact with the web server to perform complex tasks like database access and image processing etc. in JSP?
a. vs.Static HTML
b. vs.Server-Side Includes
c. vs.Pure Servlets
d. Vs.JavaScript
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
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