Become a GOLD member of Deccansoft and get access to 40+ courses!!
NewBatches/Webinars
Packages
Gold Membership
Bestseller
Microsoft Azure Suite & Suite Plus
Power Platform Acadamy
New
Azure DevOps Expert & Expert Plus
MS.NET Foundation For Beginners
MS.NET Full Stack Developer
UI / Web Development
SQL Server & MSBI Tools
Software Testing
Courses
MS.NET Courses (Includes Live Project)
Complete C#, OOPs and Windows Programing
ASP.NET MVC Online Training
ASP.NET WebForms
ASP.NET Core
WCF incl. Web Services and Remoting
WPF incl. MVVM and Prism
LINQ and Entity Framework
Live Project Training for Developing Enterprise Application
Live Project using Ntier Arch (.NET5 + EF Core + Angular)
Gold Membership
CareerStep IT Program
Client-side UI Technologies
Building Static Web Pages using HTML and CSS
JavaScript and HTML DOM
jQuery, AJAX and JSON
Building Interactive Web Pages using HTML5 and CSS3
BootStrap + Live Examples
AngularJS + Live Project
Angular + Typescript
ReactJS
KnockoutJS
Xamarin
SQL Server + MSBI
SQL Server 2017
Querying Data with Transact-SQL(70-761)
SQL Server Integration Service (SSIS)
SQL Server Reporting Service (SSRS)
SQL Service Analysis Service (SSAS)
Cloud Computing / Azure / AWS
AZ-900: Microsoft Azure Fundamentals
Azure Suite (AZ-104+AZ-204+AZ-305+ AZ-500)
AZ-104: Microsoft Azure Administrator
AZ-204: Developing Solutions for Microsoft Azure
AZ-305: Microsoft Azure Architect Technologies and Design
AZ-400: Microsoft Azure DevOps
DP-203: Data Engineering on Microsoft Azure
Amazon Web Services (AWS)
Testing Tools
Manual Testing
Selenium Testing with Java(Live Training)
SharePoint
SharePoint 2013
Microsoft Power Platform
Microsoft Power Platform
Data Analytics using PowerBI (DA-100)
DevOps
Docker
Kubernetes
Microservices using .NET Core
Others
C and Data Structure
Core Java
OOPs and C++
Advance Java
Python Programming
Complete Azure Training
Pricing
Videos
Testimonials
Azure Certification
Contact Us
Login
Login or Register
×
Sign In
Register
Forgot Password?
How did you find us
WhatsApp
YouTube
LinkedIn
Facebook
Telegram
Twitter
Google
Referred by Friend
Refresh
Input symbols
By clicking Register, you accept to the
terms and conditions
and that you have read our
privacy policy.
Recover Password
×
Submit
Enquiry Now
Where did you come to know about us
WhatsApp
YouTube
LinkedIn
Facebook
LinkedIn Ad
Email
Twitter
Google
Referred
Other
Refresh
Input symbols
State Management in Web App
Interview Questions and Answer
1. 1.Connection Pooling Class manages no of user requests for connections to improve the performance.
Options:
a. True
b. False
Reveal Answer
2. 2.Which object of HttpSession can be used to view and manipulate information about a session?
Options:
a. session identifier
b. creation time
c. last accessed time
d. All mentioned above
Reveal Answer
3. 3.Using mail API we cannot send mail from a servlet.
Options:
a. True
b. False
Reveal Answer
4. 4.Which class provides stream to read binary data such as image etc. from the request object?
Options:
a. ServltInputStream
b. ServletOutputStream
c. Both A & B
d. None of the above
Reveal Answer
5. 5.The sendRedirect() method of HttpServletResponse interface can be used to redirect response to another resource, it may be servlet, jsp or html file.
Options:
a. False
b. True
Reveal Answer
6. 6. Which of these ways used to communicate from an applet to servlet?
Options:
a. RMI Communication
b. HTTP Communication
c. Socket Communication
d. All mentioned above
Reveal Answer
7. 7.Which methods are used to bind the objects on HttpSession instance and get the objects?
Options:
a. setAttribute
b. getAttribute
c. Both A & B
d. None of the above
Reveal Answer
8. 8.Which type of ServletEngine is a server that includes built-in support for servlets?
Options:
a. Add-on ServletEngine
b. Embedded ServletEngine
c. Standalone ServletEngine
d. None of the above
Reveal Answer
9. 9. What type of servlets use these methods doGet(), doPost(),doHead, doDelete(), doTrace()?
Options:
a. Genereic Servlets
b. HttpServlets
c. All of the above
d. None of the above
Reveal Answer
10. 10.Which cookie it is valid for single session only and it is removed each time when the user closes the browser?
Options:
a. Persistent cookie
b. Non-persistent cookie
c. All the above
d. None of the above
Reveal Answer
11. 11.Sessions is a part of the SessionTracking and it is for maintaining the client state at server side.
Options:
a. True
b. False
Reveal Answer
12. 12.Web server is used for loading the init() method of servlet.
Options:
a. True
b. False
Reveal Answer
13. 13) Servlets handle multiple simultaneous requests by using threads.
Options:
a. True
b. False
Reveal Answer
14. 13) Servlets handle multiple simultaneous requests by using threads.
Options:
a. True
b. False
Reveal Answer
15. 14.Which method is used to send the same request and response objects to another servlet in RequestDispacher ?
Options:
a. forward()
b. sendRedirect()
c. Both A & B
d. None of the above
Reveal Answer
16. 15.Which packages represent interfaces and classes for servlet API?
Options:
a. javax.servlet
b. javax.servlet.http
c. Both A & B
d. None of the above
Reveal Answer
17. 16.Which class can handle any type of request so that it is protocol-independent?
Options:
a. GenericServlet
b. HttpServlet
c. Both A & B
d. None of the above
Reveal Answer
18. 17.Which HTTP Request method is non-idempotent?
Options:
a. GET
b. POST
c. BOTH A & B
d. None of the above
Reveal Answer
19. 17.Which HTTP Request method is non-idempotent?
Options:
a. GET
b. POST
c. BOTH A & B
d. None of the above
Reveal Answer
20. 18.Which object is created by the web container at time of deploying the project?
Options:
a. ServletConfig
b. ServletContext
c. Both A & B
d. None of the above
Reveal Answer
21. 18.Which object is created by the web container at time of deploying the project?
Options:
a. ServletConfig
b. ServletContext
c. Both A & B
d. None of the above
Reveal Answer
22. 19. What is the lifecycle of a servlet?
Options:
a. Servlet class is loaded
b. Servlet instance is created
c. init,Service,destroy method is invoked
d. All mentioned above
Reveal Answer
23. 20.Which method in session tracking is used in a bit of information that is sent by a web server to a browser and which can later be read back from that browser?
Options:
a. HttpSession
b. URL rewriting
c. Cookies
d. Hidden form fields
Reveal Answer
Packages
Gold Membership
Microsoft Azure Suite &Suite Plus
Azure DevOps Expert &Expert Plus
MS.NET Foundation For Beginners
MS.NET Full Stack Developer
UI / Web Development
SQL Server & MSBI Tools
Software Testing
Resources
Blog
Deccansoft
AzureA2Z
Wall of Fame
On-Job Tech Support
About
About BestDotNetTraining
About Trainer
Testimonials
FAQ
Other links
About Us
Contact Us
Leave us a feedback
Sitemap
Privacy Policy
Terms & Conditions
Proudly Powered by