Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

ENTERPRISE COMPUTING WITH ADVANCED JAVA

Total questions: 18

Worksheet time: 14mins

Name
Class
Date
1.

Purpose of J2EE is_____

a)

to provide a platform for developing and running enterprise applications

b)

to enhance desktop application and Enterprise performance

c)

to provide a platform for running only enterprise applications

d)
to create simple web pages
2.

______ is used to find and fix bugs in Java programs

a)
Compiler
b)

JDM

c)
JVM
d)

JDB

3.

What does JDK stand for in Java programming?

a)

Java Development Kit

b)

Java Data Kit

c)

Java Deployment Kit

d)

Java Design Kit

4.

What are the key differences between List and Set in the Java Collection Framework?

a)
List does not allow duplicates and guarantees order.
b)
Set allows duplicates and maintains order.
c)

List Maintains order

d)

List allows duplicates and Set does not allow duplicates

5.

Which method is used to check if a specific element exists in a collection?

a)

has()

b)

find()

c)

exists()

d)

contains()

6.

The retainAll() method of Java Collection Interface keeps only those elements in this queue that are present in the specified collection.

a)

TRUE

b)

FALSE

7.

The addAll(Collection c) method adds all elements of the specified collection to the current collection from index 1.

a)
FALSE
b)
TRUE
8.

In the J2EE architecture, which tier is responsible for handling the business logic?

a)

Middle Tier

b)
Database tier
c)

EIS tier

d)
Client tier
9.

The client request is processed by the (a)  

10.

S______C______ object is used to store data that is accessible to all servlets in a web application?

(a)  

11.

Which of the following best describes the init() method in a servlet?

a)

It is called once for each request.

b)

It is called when the servlet is first loaded

c)

It is called every time a servlet is destroyed.

d)

It is called to handle client requests

12.

(a)   Method in HTTP partially updates a resource on the server

13.

What does the <%-- --%> syntax represent in JSP?

a)

An HTML comment.

b)

A JSP comment.

c)

A Java code block.

14.

Which of the following are valid elements in a JSP page? (Select all that apply)

a)

Directives

b)

Scriptlets

c)

Expressions

d)

Declarations

15.

What concepts are depicted in the image?

a)

JSP Elements

b)

JSP LifeCycle

c)

JSP Compilation

d)

Servlet Lifecycle

16.

What is the primary purpose of the Java Virtual Machine (JVM)?

a)

To compile Java code

b)

To execute Java bytecode

c)

To manage memory

d)

To provide a user interface

17.

(a)   Method is used to send data to a server to create or update a resource

18.

Which of the following are the most appropriate features of Servlet?

a)

 Platform Independence

b)

Portable

c)

 Efficient and scalable

d)

Containerless Sever