Search Header Logo

Java Servlet

Authored by Sudharson Kumar

Professional Development

Professional Development

Used 210+ times

Java Servlet
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is the correct order of servlet life cycle phase methods?

A - init(), service(), destroy()

B - initialize(), service(), destroy()

C - init(), execute(), destroy()

D - init(), service(), delete()

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is true about HTTP Get method?

A - The GET method sends the encoded user information appended to the page request.

B - The GET method is the defualt method to pass information from browser to web server.

C - Both of the above.

D - None of the above.

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which are the session tracking techniques?

i. URL rewriting

ii. Using session object

iii.Using response object

iv. Using hidden fields

v. Using cookies

vi. Using servlet object

a) i, ii, iii, vi

b) i, ii, iv, v

c) i, vi, iii, v

d) i, ii, iii, v

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

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

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which method in session tracking is used in a bit of information that is sent by a web server to a browser and which can later be read back from that browser?

a. HttpSession

b. URL rewriting

c. Cookies

d. Hidden form fields

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Select the Packages to implement the Servlet

javax.servlet

javax.servlet.http

Both can be used

None of the above

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

HTTP is a

Stateful protocol

Stateless protocol

State transfer protocol

All 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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Professional Development