Search Header Logo

Unit4_Servlets_Exam1

Authored by Naganjaneyulu S

Computers

Professional Development

Used 136+ times

Unit4_Servlets_Exam1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

24 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The _______ specification defines an application programming interface for communication between the server and the application program

Java Servlet

java jdbc

java applet

java swing

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which packages represent interfaces and classes for servlet API?

javax.servlet

javax.servlet.http

both 1 and 2

none of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the lifecycle of a servlet?

Servlet class is loaded

Servlet instance is created

init(),service() and destroy() methods will be called

All the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many times init() method is called during life time of a servlet?

two times

one time

several times

never called

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many time destroy() method will be called during the life time of a Servlet?

one

two

several time

never called

6.

FILL IN THE BLANKS QUESTION

30 sec • 1 pt

When will call init() method of a servlet?

(a)  

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When destroy method() of servlet called ?

for first request

when you close the browser window

when you remove the application from server

none of the above

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?