Java Servlets

Java Servlets

University

16 Qs

quiz-placeholder

Similar activities

Servlet

Servlet

University

20 Qs

Web Technologies(A6602)

Web Technologies(A6602)

University

20 Qs

PAW Q1 2024

PAW Q1 2024

University

20 Qs

AWD - Midterm Quiz

AWD - Midterm Quiz

University

15 Qs

J2EE Programming

J2EE Programming

University

15 Qs

Advance Java

Advance Java

University

15 Qs

Let's play with 6th Team

Let's play with 6th Team

University

12 Qs

Advanced Java UNIT-2(J2EE)-Quiz-4

Advanced Java UNIT-2(J2EE)-Quiz-4

University

20 Qs

Java Servlets

Java Servlets

Assessment

Quiz

University

Hard

Created by

HAREESH KUMAR

Used 159+ times

FREE Resource

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is bytecode?

Machine-independent code

Java code

Machine-specific code

None of the mentioned

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following are interface? 1. ServletContext 2. Servlet 3. GenericServlet 4. HttpServlet

1,4

1,2,3,4

1,2

1,3,4

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The life cycle of a servlet is managed by

servlet context

servlet container

the supporting protocol (such as http or https)

All of the above

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which JDBC driver Types are for use over communications networks?

Type 3 only

Type 4 only

Both Type 3 and Type 4

Neither Type 3 nor Type 4

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How does Tomcat execute a JSP?

As a CGI script

As an independent process

By one of Tomcat's threads

None of the above is correct.

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which class provides stream to read binary data such as image etc. from the request object?

ServltInputStream

ServletOutputStream

ServletContext

None of the above

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which method of HttpServletResponse interface can be used to redirect response to another resource, it may be servlet, jsp or html file?

forward()

sendRedirect()

reDirect()

forwardReDirect()

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?