Top 150+ Solved Enterprise Computing With JAVA MCQ Questions Answer
Q. Give the examples of Application Server from the following?
a. Apache
b. JBoss
c. Weblogic
d. Both B & C
Q. Abbreviate the term MIME?
a. Multilevel internet Mail Extension
b. Multipurpose internet Mail Extension
c. Multiuse information Mail Extension
d. None of the above
Q. Which packages represent interfaces and classes for servlet API?
a. javax.servlet
b. javax.servlet.http
c. Both A & B
d. None of the above
Q. The web container maintains the life cycle of a servlet instance,give the lifecycle of a servlet?
a. Servlet class is loaded
b. Servlet instance is created
c. init,Service,destroy method is invoked
d. All mentioned above
Q. What are the contents of web module?
a. JSP files
b. Java classes
c. Gif and Html files and
d. Web component deployment descriptors
Q. Which of the following are examples of JSP directive? Select the two correct answers.
a. include
b. exclude
c. import
d. taglibrary
Q. A JSP page uses the java.util.ArrayList class many times. Instead of referring the class by its complete package name each time, we want to just use ArrayList. Which attribute of page directive must be specified to achieve this? Select the one correct answer.
a. extends
b. import
c. include
d. package
Q. A JSP page needs to generate an XML file. Which attribute of page directive may be used to specify that the JSP page is generating an XML file?
a. contentType
b. generateXML
c. type
d. outputXML
Q. JSP pages have access to implicit objects that are exposed automatically. Name the implicit object that is of type HttpSession.
a. session
b. application
c. httpSession
d. httpsession
Q. JSP pages have access to implicit objects that are exposed automatically. One such object that is available is request. The request object is an instance of which class?
a. HttpRequest
b. ServletRequest
c. Request
d. HttpServletRequest
Q. What is the limitation of creating ActionServlet instances per web application?
a. Two
b. Three
c. Unlimited
d. One
Q. ActionServlet, RequestProcessor and Action classes are the components of
a. View
b. Model
c. Deployment
d. Controller
Q. Which of the java bean tags is used to show the bean value on the web page?
a. < bean:define>
b. < bean:message>
c. < bean:show>
d. < bean:write>
Q. Which of the following are server side programming languages? 1.HTML 2.JavaScript 3.JSP 4.Sevlets
a. 1,2,3,4
b. 1,2
c. 3,4
d. None
Q. What JSP is basically used today?
a. To make controller
b. To make GUI
c. In writing business logic
d. Deprecated