Top 150+ Solved Enterprise Computing With JAVA MCQ Questions Answer
Q. The __________tier processes HTTP protocol, scripting tasks, performs calculations, and provides access to data.
a. Client
b. Applications/Web server
c. Enterprise server
d. DBA
Q. _________ are used to identify a user who returns to a Website.
a. Cookies
b. Plug-ins
c. Scripts
d. ASPs
Q. Which one of the following objects is passed to a Java Bean when one of its properties isset via a JSP action?
a. Servlet Request
b. Http Servlet Request
c. Servlet Response
d. Http Servlet Response
Q. Struts framework is based on
a. Servlet.JSP and Java
b. Servlet,.HTML and Java
c. Servlet JSP, XML and Java
d. Applet, XML and Java
Q. Action Servlet, Request Processor and Action classes are the components of
a. View
b. Model
c. Deployment
d. Controller
Q. Which of the following delegates the request handling to the Request Processor instance?
a. Action Servlet
b. Action class
c. Deployment descriptor
d. None of the above
Q. How many instances can be created per application module by the Request Processor 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 above
Q. What declarations are required for every Java application?
a. A class and the main( ) method declarations.
b. A class with void method
c. A class with main method
d. A class with init method
Q. What is a compilation unit?
a. Java Byte code
b. Java source code file
c. Source code
d. Java Exe
Q. In order for a source code file, containing the public class Test, to successfully compile, which of the following must be true?
a. It must have a package statement
b. It must be named Test.java
c. It must import java.lang
d. It must declare a public class named Test
Q. What are identifiers and what is naming convention?
a. Identifiers are used for class names
b. Identifiers are used for class names, method names
c. Identifiers are used for class names, method names and variable names.
d. None of above