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

WCF Day-11 Servlets and JSP

Quiz
•
Professional Development
•
Professional Development
•
Medium
Valan Arasu
Used 53+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Similar Resources on Quizizz
15 questions
GraphQL

Quiz
•
Professional Development
10 questions
#D: P#ym#nt #PI V3

Quiz
•
Professional Development
10 questions
Quiz - Onboarding - 1

Quiz
•
Professional Development
15 questions
AWS Certified Cloud Practitioner

Quiz
•
Professional Development
10 questions
GCE1_Activity

Quiz
•
Professional Development
10 questions
Flask API Lesson 4

Quiz
•
Professional Development
8 questions
Day 3 Quiz

Quiz
•
Professional Development
10 questions
Instructional Leadership Preparation Review

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade