WCF Day-11 Servlets and JSP

WCF Day-11 Servlets and JSP

Professional Development

10 Qs

quiz-placeholder

Similar activities

Business Partner Aug Meeting

Business Partner Aug Meeting

1st Grade - Professional Development

10 Qs

Dangerous Goods Module 1 General Philosophy (CAT.10)

Dangerous Goods Module 1 General Philosophy (CAT.10)

Professional Development

15 Qs

Quiz - Onboarding - 1

Quiz - Onboarding - 1

Professional Development

10 Qs

SFS Quiz All Hands

SFS Quiz All Hands

Professional Development

9 Qs

Quiz-8_Web_Servlet_Talent Next

Quiz-8_Web_Servlet_Talent Next

Professional Development

9 Qs

#D: P#ym#nt #PI V3

#D: P#ym#nt #PI V3

Professional Development

10 Qs

CCNA - SRWE&ENSA - Cap5-8

CCNA - SRWE&ENSA - Cap5-8

Professional Development

10 Qs

Flask API Lesson 5

Flask API Lesson 5

Professional Development

10 Qs

WCF Day-11 Servlets and JSP

WCF Day-11 Servlets and JSP

Assessment

Quiz

Professional Development

Professional Development

Medium

Created by

Valan Arasu

Used 53+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following code is used to get an attribute of HTTP Session object in servlets?

session.getAttribute(String name)

session.readAttribute(String name)

session.findAttribute(String name)

session.setAttribute(String name)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following code is used to get a HttpSession object in Servlet?

request.getSession()

response.getSession()

request.session()

response.session()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following code will initialize ServletConfig object in a servlet?

ServletConfig config = request.getServletConfig();

ServletConfig config = getServletConfig();

ServletConfig config = response.getServletConfig();

ServletConfig config = session.getServletConfig();

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the return type of session.getAttribute() method?

String

boolean

void

Object

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following will initialize RequestDispatcher object in a Servlet?

RequestDispatcher rd = request.getRequestDispatcher(String name)

RequestDispatcher rd = response.getRequestDispatcher(String name)

RequestDispatcher rd = session.getRequestDispatcher(String name)

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Method type "Post" is the default method in a HTML form tag.

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the followings are valid JSP tags?

<% %>

<%! %>

<%= %>

All the above

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?