Top 150+ Solved Enterprise Computing With JAVA MCQ Questions Answer

From 1 to 15 of 173

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

  • a. Client

Q. _________ are used to identify a user who returns to a Website.

a. Cookies

b. Plug-ins

c. Scripts

d. ASPs

  • a. Cookies

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

  • c. 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

  • a. Servlet.JSP and Java

Q. Action Servlet, Request Processor and Action classes are the components of

a. View

b. Model

c. Deployment

d. Controller

  • b. Model

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

  • b. Action class

Q. How many instances can be created per application module by the Request Processor 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 above

  • a. ActionServlet

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

  • a. A class and the main( ) method declarations.

Q. What is a compilation unit?

a. Java Byte code

b. Java source code file

c. Source code

d. Java Exe

  • b. Java source code file

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

  • b. It must be named Test.java

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

  • c. Identifiers are used for class names, method names and variable names.

Q. What is the return type of program’s main( ) method?

a. Void main()

b. Init

c. Void

d. Run

  • c. Void

Q. Which of the following are primitive types?

a. byte

b. String

c. integer

d. Float

  • a. byte
Subscribe Now

Get All Updates & News