QUESTION BANK
Sr.No. TOPIC:1 Java Networking [CO-1] Marks
How do you get the IP address of a machine from its
1 1
hostname? (WINTER 2022)
What are the differences between a TCP socket and UDP
2 3
socket? How are they created in Java? (WINTER 2022)
3 Compare Socket with ServerSocket. (SUMMER 2022) 3
5 Explain the usage of InetAddress class. (WINTER 2021) 3
Write a program in which client sends string from its standard
input to the server. The server reads the string, converts the
6 7
string into upper case and sends back to client. Use
connection-oriented communication. (WINTER 2021)
Sr.No. TOPIC – 2 : JDBC Programming [CO-1] Marks
What is connection URL? How do you make a database
1 connection? Explain various ways to make the database 7
connection using JDBC code snippets. (WINTER 2022)
What is JDBC driver? Explain its role and compare various
2 7
JDBC drivers. (WINTER 2022)
What is the use of PreparedStatement? How will you use it?
3 3
(WINTER 2022)
What is the use of CallableStatement? How will you use it?
5 3
(WINTER 2022)
Explain the use of Prepared Statement with appropriate
6 7
example. (SUMMER 2022)
7 Compare the types of JDBC drivers? (SUMMER 2022) 4
Explain the use of PreparedStatement and CallableStatement
8 4
with example. (WINTER 2021)
Write a JDBC program for banking application in which
consider bank table with
attributes AccountNo, CustomerName, Phone and Address,
9 and perform 7
followings:
1. Insert two records using prepared statement.
2. Display all the records. (WINTER 2021)
Discuss the use of execute(), executeUpdate() and
10 3
executeQuery() methods. (WINTER 2021)
Sr.No. TOPIC – 3 : Servlet API and Overview [CO-2] Marks
List out the important methods of HttpServletResponse.
1 1
(WINTER 2022)
What do you mean by session tracking? What are the session
2 tracking 7
techniques? Demonstrate any of them. (WINTER 2022)
3 Differentiate ServletConfig and ServletContext. (WINTER 2022) 4
Sr.No. TOPIC:1 Java Networking [CO-1] Marks
How do you get the IP address of a machine from its
1 1
hostname? (WINTER 2022)
What are the differences between a TCP socket and UDP
2 3
socket? How are they created in Java? (WINTER 2022)
3 Compare Socket with ServerSocket. (SUMMER 2022) 3
5 Explain the usage of InetAddress class. (WINTER 2021) 3
Write a program in which client sends string from its standard
input to the server. The server reads the string, converts the
6 7
string into upper case and sends back to client. Use
connection-oriented communication. (WINTER 2021)
Sr.No. TOPIC – 2 : JDBC Programming [CO-1] Marks
What is connection URL? How do you make a database
1 connection? Explain various ways to make the database 7
connection using JDBC code snippets. (WINTER 2022)
What is JDBC driver? Explain its role and compare various
2 7
JDBC drivers. (WINTER 2022)
What is the use of PreparedStatement? How will you use it?
3 3
(WINTER 2022)
What is the use of CallableStatement? How will you use it?
5 3
(WINTER 2022)
Explain the use of Prepared Statement with appropriate
6 7
example. (SUMMER 2022)
7 Compare the types of JDBC drivers? (SUMMER 2022) 4
Explain the use of PreparedStatement and CallableStatement
8 4
with example. (WINTER 2021)
Write a JDBC program for banking application in which
consider bank table with
attributes AccountNo, CustomerName, Phone and Address,
9 and perform 7
followings:
1. Insert two records using prepared statement.
2. Display all the records. (WINTER 2021)
Discuss the use of execute(), executeUpdate() and
10 3
executeQuery() methods. (WINTER 2021)
Sr.No. TOPIC – 3 : Servlet API and Overview [CO-2] Marks
List out the important methods of HttpServletResponse.
1 1
(WINTER 2022)
What do you mean by session tracking? What are the session
2 tracking 7
techniques? Demonstrate any of them. (WINTER 2022)
3 Differentiate ServletConfig and ServletContext. (WINTER 2022) 4