0% found this document useful (0 votes)
10 views3 pages

Backend Development With Java (Question Bank)

The document is a question bank for a course on Backend Development with Java, covering topics such as web applications, servlets, JSP, MVC architecture, Hibernate, and Spring Framework. It includes both Part A and Part B questions, with theoretical and practical aspects to assess understanding and application of the concepts. The questions are organized into units focusing on different areas of backend development.

Uploaded by

sathiyaganapthy
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views3 pages

Backend Development With Java (Question Bank)

The document is a question bank for a course on Backend Development with Java, covering topics such as web applications, servlets, JSP, MVC architecture, Hibernate, and Spring Framework. It includes both Part A and Part B questions, with theoretical and practical aspects to assess understanding and application of the concepts. The questions are organized into units focusing on different areas of backend development.

Uploaded by

sathiyaganapthy
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

KNOWLEDGE INSTITUTE OF TECHNOLOGY, SALEM – 637 504

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


BACKEND DEVELOPMENT WITH JAVA
QUESTION BANK
UNIT 1
PART – A

1. What is meant by a web application?

2. Define HTTP and state whether it is stateful or stateless.


3. Write any two differences between GET and POST methods.
4. What is the request–response model in web applications?
5. List the methods involved in the Servlet lifecycle.
6. What is the purpose of the init() method in a servlet?
7. When is the destroy() method invoked?
8. How does the service() method work in a servlet?
9. How do you retrieve form data in a servlet?
10. What is the role of HttpServletRequest and HttpServletResponse?
11. Define JSP.
12. List the types of JSP directives.
13. What are JSP scripting elements?
14. Write the syntax for a JSP expression tag.
15. What is MVC architecture?
16. Which component acts as Controller in MVC using Servlet and JSP?
17. What is a Cookie?
18. What is HttpSession?
19. Write two differences between Cookies and HttpSession.
20. What are HTTP status codes? Give one example.

PART – B

1. Explain the HTTP protocol and the Request/Response model with a neat diagram and example.
2. Describe the Servlet lifecycle in detail. Explain the working of init(), service(), and destroy()
with a suitable example program.
3. Explain GET and POST methods in detail. Write a servlet program to handle form data using both
methods.
4. What is JSP? Explain JSP directives, scripting elements, and action tags with examples.
5. Explain MVC architecture using Servlet and JSP. Develop a simple MVC-based login application.
6. Explain session management in web applications. Compare Cookies and HttpSession. Write a
program to demonstrate session tracking.
7. Explain how form data is processed in Java EE applications. Develop a simple registration form and
process it using a servlet.
8. Compare Servlet and JSP. Explain when to use each with examples.

UNIT – II
PART – A

1. What is Object Relational Mapping (ORM)?


2. Why is ORM used in enterprise applications?
3. What is Hibernate?
4. List any two advantages of Hibernate.
5. What is a Hibernate configuration file?
6. What is the purpose of [Link]?
7. What is a SessionFactory in Hibernate?
8. What is a Hibernate Session?
9. What is an entity class?
10. What is the use of @Entity annotation?
11. What is the purpose of @Id annotation?
12. What is meant by CRUD operations?
13. How is an object saved in Hibernate?
14. What is the difference between save() and persist()?
15. What is a One-to-One relationship?
16. What is a One-to-Many relationship?
17. Which annotation is used for One-to-Many mapping?
18. What is JPA?
19. What is JPQL?
20. Write one difference between SQL and JPQL.

PART – B

1. Explain Object Relational Mapping (ORM). Discuss the architecture of Hibernate with a neat
diagram.
2. Describe the Hibernate configuration process. Explain the role of Configuration,
SessionFactory, Session, and Transaction with example code.
3. Explain entity classes in Hibernate. Discuss commonly used Hibernate annotations with
examples.
4. Explain CRUD operations in Hibernate. Write a program to perform insert, update, delete,
and retrieve operations.
5. Explain One-to-One and One-to-Many relationships in Hibernate with suitable annotations
and example programs.
6. What is JPA? Explain its architecture and how it differs from Hibernate.
7. Explain JPQL with syntax and examples. Write sample queries using SELECT, UPDATE,
and DELETE.
8. Design a simple Student–Course application using Hibernate and demonstrate relationship
mapping and CRUD operations.

UNIT – III
PART – A

1. What is the Spring Framework?


2. What is Inversion of Control (IoC)?
3. Define Dependency Injection (DI).
4. Mention any two types of Dependency Injection.
5. What is a Spring Bean?
6. What is the role of Application Context?
7. What is Bean lifecycle in Spring?
8. What annotations are used to define a Spring Bean?
9. What is Spring MVC?
10. What is the role of DispatcherServlet?
11. What is the purpose of @Controller annotation?
12. What is @RequestMapping?
13. Write the difference between @GetMapping and @PostMapping.
14. What is Thymeleaf?
15. Why is Thymeleaf used with Spring MVC?
16. What is data binding in Spring MVC?
17. What is the purpose of @ModelAttribute?
18. What is form validation in Spring MVC?
19. What annotation is used for validation in Spring?
20. What is dynamic HTML rendering?

PART – B

1. Explain the architecture of the Spring Framework. Discuss IoC and Dependency Injection
with suitable examples.
2. Explain Bean configuration and Bean lifecycle in Spring. Describe initialization and
destruction callbacks with examples.
3. Explain Spring MVC architecture with a neat diagram. Describe the role of
DispatcherServlet, Controller, Model, and View.
4. Explain request mappings and controllers in Spring MVC. Write a simple program
demonstrating @RequestMapping, @GetMapping, and @PostMapping.
5. What is Thymeleaf? Explain how to integrate Thymeleaf with Spring MVC. Write
configuration steps and sample template code.
6. Explain data binding and dynamic HTML rendering using Thymeleaf with example code.
7. Explain form handling in Spring MVC. Develop a simple registration form using Thymeleaf
and process it in a controller.
8. Explain form validation in Spring MVC. Demonstrate validation using annotations and
display error messages in Thymeleaf.

You might also like