
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
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
Similar Resources on Wayground
15 questions
Wiingy: Quiz 5: Demo Scheduling, Allocation and Prep

Quiz
•
Professional Development
11 questions
Nodejs: Express

Quiz
•
Professional Development
14 questions
Configurar switch

Quiz
•
Professional Development
10 questions
Quiz for Module2

Quiz
•
Professional Development
15 questions
Cert Magento Frontend AD0-E710 - Javascript - Part 1

Quiz
•
Professional Development
10 questions
Pop Quiz week 2

Quiz
•
Professional Development
10 questions
Classroom Etiquette

Quiz
•
Professional Development
6 questions
Java_4

Quiz
•
Professional Development
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade