HamiIT
Sign inGet started
Home
ADD CONTENT

Sign in Required

Please sign in to add content

Sign In
ProgramsBCASemester 6Advanced Java ProgrammingUnit 4: Servlets and JSP (14Hrs)
Chapter Study

BCA Semester 6 – Advanced Java Programming – Unit 4: Servlets and JSP (14Hrs)

Comprehensive questions and detailed answers for Unit 4: Servlets and JSP (14Hrs). Perfect for exam preparation and concept clarity.

9
Questions
65
Marks
Back to All Chapters
1

How do you set and get Cookie in Servlet? Explain using a suitable Java program.

MediumTHEORY5 marks2021(TU FOHSS Final)
2

Explain different scripting elements of JSP with examples.

MediumTHEORY5 marks2021(TU FOHSS Final)
3

What are the differences between servlets and Java applications? Explain different methods used for handling cookies in Java.

MediumTHEORY5 marks2022(TU FOHSS Final)
4

Differentiate between declaration and expression tags used in JSP. Also create a JSP page that contains three textboxes to input three numbers and a button. It should display the greatest number among three numbers when the button is clicked.

HardTHEORY10 marks2022(TU FOHSS Final)
5

What are the key methods provided in HttpSession interface for handling sessions? Explain.

MediumTHEORY5 marks2023(TU FOHSS Final)
6

Differentiate between servlet and JSP. Create a servlet that computes and displays the factorial of an input number entered from a page when the button from that page is pressed by the user.

HardTHEORY10 marks2023(TU FOHSS Final)
7

What are declaration and expression tags in JSP? Explain with examples.

MediumTHEORY5 marks2024(TU FOHSS Final)
8

Explain the lifecycle of a Java Servlet. Write a servlet program that takes three numbers from an HTML page and computes the sum of natural numbers up to the greatest number among the three numbers.

HardTHEORY10 marks2024(TU FOHSS Final)
9

What is directive element in JSP? Explain in detail. Create a JSP page that verifies the username and password entered form an HTML file and if the username and password are correct it displays a greetings message. Otherwise, it redirects to the register page.

HardTHEORY10 marks2024(TU FOHSS Final)
Showing 9 questions

Questions in Unit 4: Servlets and JSP (14Hrs)

How do you set and get Cookie in Servlet? Explain using a suitable Java program.

Marks: 5

Year: 2021 Final TU FOHSS

Setting and Getting Cookies in Servlet Definition A cookie is a small piece of data sent from a server to a client browser and stored on the client-side. Cookies are used to maintain state informat

Explain different scripting elements of JSP with examples.

Marks: 5

Year: 2021 Final TU FOHSS

Scripting Elements of JSP Definition Scripting elements in JSP allow embedding Java code directly into JSP pages to control the dynamic content generation. --- 1. Declarations (<%! %>) Purpose - Us

What are the differences between servlets and Java applications? Explain different methods used for handling cookies in Java.

Marks: 5

Year: 2022 Final TU FOHSS

1. Differences Between Servlets and Java Applications | Feature | Java Application | Servlet | |---------------------------|------

Differentiate between declaration and expression tags used in JSP. Also create a JSP page that contains three textboxes to input three numbers and a button. It should display the greatest number among

Marks: 10

Year: 2022 Final TU FOHSS

1. Difference Between Declaration and Expression Tags in JSP | Feature | Declaration Tag <%! %> | Expression Tag <%= %> | |--------------------|----

What are the key methods provided in HttpSession interface for handling sessions? Explain.

Marks: 5

Year: 2023 Final TU FOHSS

Key Methods of HttpSession Interface Definition The HttpSession interface is used to maintain session information between multiple client requests in a web application. It allows storing user-speci

Differentiate between servlet and JSP. Create a servlet that computes and displays the factorial of an input number entered from a page when the button from that page is pressed by the user.

Marks: 10

Year: 2023 Final TU FOHSS

Difference Between Servlet and JSP | Feature | Servlet | JSP | |---------|---------|-----| | Definition | Java class to handle client requests and generate dynamic content. | HTML page with embedded J

What are declaration and expression tags in JSP? Explain with examples.

Marks: 5

Year: 2024 Final TU FOHSS

Declaration and Expression Tags in JSP JSP provides scripting elements to embed Java code within HTML pages. Two important scripting tags are declaration and expression tags. --- 1. Declaration Tag <

Explain the lifecycle of a Java Servlet. Write a servlet program that takes three numbers from an HTML page and computes the sum of natural numbers up to the greatest number among the three numbers.

Marks: 10

Year: 2024 Final TU FOHSS

Lifecycle of a Java Servlet Definition: A servlet is a Java class that handles client requests and generates dynamic responses in web applications. The lifecycle defines how the servlet is initializ

What is directive element in JSP? Explain in detail. Create a JSP page that verifies the username and password entered form an HTML file and if the username and password are correct it displays a gree

Marks: 10

Year: 2024 Final TU FOHSS

JSP Directive Element Definition: A directive element in JSP is used to provide global instructions to the JSP container. It does not produce output directly but affects the overall structure of the

About Unit 4: Servlets and JSP (14Hrs) Questions

This page contains comprehensive questions from the Unit 4: Servlets and JSP (14Hrs) chapter of Advanced Java Programming, part of the BCA Semester 6 curriculum. All questions include detailed model answers from past TU exam papers.

Study Tips

  • Review concepts before attempting questions
  • Practice writing complete answers
  • Compare your answers with model solutions
  • Focus on questions from recent years
  • Use direct links (#question-ID) to bookmark and share specific questions

Related Resources

← Back to Advanced Java Programming Chapters

Unit 4: Servlets and JSP (14Hrs) chapter questions with answers for Advanced Java Programming (BCA Semester 6). Prepare for TU exams with our comprehensive question bank and model answers.

H
Hami IT

Empowering IT students with quality education resources and comprehensive exam preparation materials.

Programs

  • Flutter
  • Java
  • DevOps

Company

  • About Us
  • Contact

Contact

  • 📧hamiit.dev@gmail.com
  • 📞+977 9813706443
  • 📍Kathmandu, Nepal

© 2026 Hami IT. All rights reserved.