0% found this document useful (0 votes)
11 views

AJAVA

This document contains a table listing 41 questions related to Java programming, databases, web technologies, and related topics. The table includes information on the unit each question falls under, how many marks it was worth in previous GTU exams for each semester from Summer 2019 to Summer 2022, and a total mark column. Questions cover topics such as sockets, JDBC, servlets, JSP, filters, sessions, and more. The table provides a high-level overview of past exam questions organized by topic area and semester.

Uploaded by

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

AJAVA

This document contains a table listing 41 questions related to Java programming, databases, web technologies, and related topics. The table includes information on the unit each question falls under, how many marks it was worth in previous GTU exams for each semester from Summer 2019 to Summer 2022, and a total mark column. Questions cover topics such as sockets, JDBC, servlets, JSP, filters, sessions, and more. The table provides a high-level overview of past exam questions organized by topic area and semester.

Uploaded by

hariom patel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Sr Unit Question

summer 2022

summer 2019
winter 2022

winter 2021

winter 2019

Total
1 1 Write a java program where client sends a string as a message 7 7
and sever counts the characters in the received message from
client. Server sends this value back to the client. Server should
be able to serve multiple clients simultaneously.
2 1 Write a program in which client sends string from its standard 7 7
input to the server. The server reads the string, converts the
string into upper case and sends back to client. Use connection-
oriented communication
3 1 Write a client-server program using TCP sockets to echo the 7 7
message send by the client.
4 1 Write a client-server java programs using TCP sockets to get 7 7
server date on client machine.
5 1 What is connection URL? How do you make a database 7 7
connection? Explain various ways to make the database
connection using JDBC code snippets.
6 1 Write a sample code for client send a “Hello” message to server. 4 4
7 1 Explain the usage of InetAddress class 3 3
8 1 Compare Socket with ServerSocket. 3 3
9 1 What are the differences between a TCP socket and UDP socket? 3 3
How are they created in Java?
10 1 Explain the following classes with their use. i. URLConnection 3 3
class
ii. DatagramSocket (iii) DatagramPacket class
11 1 Mention advantages of J2EE. 3 3
12 1 How do you get the IP address of a machine from its hostname? 1 1
13 2 What is JDBC driver? Explain its role and compare various JDBC 7 4 3 14
drivers.Explain Thin driver.
14 2 Explain the use of PreparedStatement with appropriate example. 3 7 2 12
15 2 Write a JDBC program for banking application in which consider 7 7
bank table with attributes AccountNo, CustomerName, Phone
and Address, and perform followings:
1. Insert two records using prepared statement.
2. Display all the records.
16 2 What is ResultSet interface. Write various method for ResultSet 7 7
interface. Write a code to update record using this interface.
17 2 Explain JDBC Transaction Management in detail. 7 7
18 2 What is the use of CallableStatement? How will you use it? 3 2 5
19 2 Write a sample code to store image in Database. 4 4
20 2 Discuss the use of execute(), executeUpdate() and 3 3
executeQuery() methods.
21 2 Discuss concept of JDBC. 3 3
22 2 Write difference between statement and prepared statement 3 3
interface.
23 3 Discuss Servlet life cycle methods. Explain role of web container. 4 4 7 7 22
* Given marks are based on previous GTU Papers
summer 2022

summer 2019
Sr Unit Question

winter 2022

winter 2021

winter 2019

Total
24 3 What do you mean by session tracking? What are the session 7 3 4 3 17
tracking
techniques? Demonstrate any of them.
25 3 What is filter? Explain the configuration of filter using 4 4 3 11
deployment descriptor. Write applications of filter.
26 3 What is Request Dispatcher? What is the difference between 4 7 11
RequestDispatcher’s forward() and include() method? Explain it
in detail with program.
27 3 Differentiate ServletConfig and ServletContext objects. 4 4 3 11
28 3 What are cookies? Demonstrate the use of cookies in servlet. 7 3 10
29 3 Write a servlet code which reads the student details from web 7 7
page and stores it in database.
30 3 Write a servlet code to demonstrate prepare statement and 7 7
callable statement to retrieve and store employee data.
31 3 Write a Java Servlet to print BE Semester Marksheet of entered 7 7
enrollment number and sem no by student using JDBC.
32 3 Write difference between (1) Generic Servlet and Http Servlet (2) 4 4
doGet and doPost
33 3 What is FilterConfig? How will you use it? 4 4
34 3 Write a Web application using servlet to find the sum of all the 4 4
digits of an input integer.
35 3 Write a Web application using servlet to find whether entered 4 4
number is prime or not.
36 3 Explain Request and Response object in Servlet. 4 4
37 3 Differentiate HTTP Get and Post methods. 3 3
38 3 List out the important methods of HttpServletResponse. 1 1
39 4 What are the implicit objects of JSP? Write a JSP page to 7 7 4 4 22
demonstrate the use them.
40 4 What is JSTL? Explain the core tags of the SQL tag library. 3 4 4 4 15
41 4 What are the directive tags of JSP? Write a JSP page to 7 7 14
demonstrate the use of them.
42 4 List and explain various phases of JSP life cycle? 7 7 14
43 4 Write a JSP Page which use available java bean. Discuss 3 4 7
functionality of used java beans.
44 4 Write a student bean class with property student_id, name, 7 7
semester, address and percentage. Write jsp page to set and
display all property

* Given marks are based on previous GTU Papers


Sr Unit Question

summer 2022

summer 2019
winter 2022

winter 2021

winter 2019

Total
45 4 Develop a web application as following to demonstrate the use 7 7
of
<jsp:useBean>.
· Create a Java Bean named Employee with attributes name and
age.
· Create a web page to set the properties of Employee using
<jsp:useBean>.
· Create a web page to display the properties of Employee using
<jsp:useBean>.
46 4 Develop a web application as following to demonstrate the use 7 7
of JSTL SQL
tag library.
· Create a web page to store the registration detail (Name, email
and
contact number) of user in the database.
· Create a web page for user to update registration detail in the
database.
· Create a web page to display the list of all registered users.

47 4 Write a JSP application for login module with reset password 7 7


feature using database connectivity.
48 4 Develop a jsp code which reads the student detail from web 7 7
page and stores it in database
49 4 Write a web application which takes id, name, mobile no, 7 7
semester, marks, percentage pass to servlet. Servlet forward to
model class having method getid(), getname(), getmobno(),
getsem(), getmarks() and getPercentage(). Display all the
information in .jsp page
50 4 What is session? Demonstrate the use of Session in JSP. 7 7
51 4 List page directive in JSP? Explain any two with example 4 4
52 4 What is Expression Language EL in JSP explain with suitable 4 4
example program?
53 4 Discuss JSP Exception Handling. 4 4
54 4 Explain JSP Object scope: (i) Page (ii) Request (iii) Session (iv) 4 4
Application with example.
55 4 Explain use of <jsp: useBean> action tag with example 3 3
56 4 What is a custom tag? Explain the life cycle of tag handler. 3 3
57 4 What is difference between include directive and jsp:include 3 3
action tag?
58 4 Explain JSP (i) page (ii) include (iii) taglib directive with attribute, 3 3
description.
59 4 What are the attributes for the JSP page directive? 1 1
60 5 Discuss JSF life cycle phases. 7 7 7 7 28
* Given marks are based on previous GTU Papers
Unit Question

summer 2022

summer 2019
winter 2022

winter 2021

winter 2019

Total
61 5 List the JSF standard converter tags and explain any three in 4 3 7
detail.
62 5 What is EL? Write a code snippet to show the use of method 3 4 7
expressions in JSF page
63 5 What is the JSF facelets? Explain any two facelets tags. 3 4 7
64 5 List the JSF validation tag and explain any Two. 2 3 5
65 5 Write a code snippet to show the use of JSF action event. 4 4
66 5 How will you use <h:commandButton> and <h:dataTable>? 4 4
67 5 What is JSF? List and explain its features. 3 3
68 6 What is OR mapping? Explain the components of 4 7 4 7 22
hibernate.cfg.xml file.
69 6 Explain Hibernate Architecture and Object Relation Mapping in 7 7 14
Hibernate with java code and required XML files.
70 6 What is HQL? How does it different from SQL? List its 4 4 3 3 14
advantages.
71 6 What are the different Hibernate interfaces? Explain their role in 7 7
brief.
72 6 What is hibernate? What are the benefits of using it? 3 3 6
73 6 What is the function of a SessionFactory object? How will you 2 2
obtain
such an object?
74 7 Explain architecture of Spring MVC Framework. 3 7 7 17
75 7 Explain Spring Bean life cycle phases. 4 7 11
76 7 What are the advantages of Spring MVC? Explain the flow of 7 3 10
Spring Web MVC.
77 7 What is dependency Injection? What is the role IoC container in 4 3 7
Spring?
78 7 Explain the Spring Web MVC framework controllers 7 7
79 7 What is Spring Bean? How can you create bean in Spring boot? 4 4
80 7 What is Spring AOP? What are Join points and Point cuts? 3 3
81 7 What are the different bean scopes in spring? 3 3
82 7 What is Spring IoC container 3 3

* Given marks are based on previous GTU Papers

You might also like