
WCF Day-11 Servlets and JSP
Authored by Valan Arasu
Professional Development
Professional Development
Used 53+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
13 questions
Exercise 4.2
Quiz
•
Professional Development
10 questions
Day 3 Recap - Provisioning
Quiz
•
Professional Development
10 questions
JavaScript 小測驗
Quiz
•
Professional Development
10 questions
Tip of the Week Sep 2023
Quiz
•
Professional Development
10 questions
Week 1 MMB Review
Quiz
•
Professional Development
10 questions
Data Protection quiz
Quiz
•
Professional Development
10 questions
TPAD Pre- Evaluation
Quiz
•
Professional Development
10 questions
The Need for Cybersecurity
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade