Search Header Logo

Advanced Java Quiz

Authored by Om Prakash

Computers

University

Used 23+ times

Advanced Java Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify various technology in java EE

i. Javascript

ii. java applet

iii. HTML for client side

iv. JSP for server side

i and ii

i, ii and iii

iii and iv

ii, iii and iv

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Azilah want to develop a web application in Java Platform. How to add all the classes Azilah needs?

import javax.servlet.http.*;

import java.servlet.http.*;

import java.http.*;

import javax.servlet.*;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the correct statement to describe a servlet

Servlet is a blueprint for HTML

Servlet is a file that execute on server side

Servlet execution is the same with JavaScript

Servlet is a client side application that call from server

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the correct flow of methods in a servelt life cycle

start(), run(), stop()

init(), run(), destroy()

init(), service(), stop()

init(), service(), destroy()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which class is to define getWriter() method that returns an object of type PrintWriter()

HttpServletRequest

HttpServletResponse

ServletConfig

ServletContext

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method will call either doGet or doPost based on http method on http request?

doOption

doTrace

service

doMethod

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of HttpServletResponse is used to redirect an HTTP request to another URL?

sendURL()

redirectURL()

sendRedirect()

getRequestDispatcher()

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 Computers