Advanced Java Quiz

Advanced Java Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Om Prakash

Used 23+ times

FREE Resource

Student preview

quiz-placeholder

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()

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?