NPTEL Programming In Java Week 11 Assignment Answers 2025
1. What is the full form of JDBC?
a. Java Database Connectivity
b. Java Data Code
c. Java Data Communication
d. Java Development Connectivity
Answer :- For Answers Click Here
2.

Answer :-
3.

Answer :-
4.

Answer :-
5.

Answer :- For Answers Click Here
6. Which of the following SQL operations can be executed using the executeUpdate method in JDBC?
I. INSERT INTO users (id, name) VALUES (1, ‘Alice’);
II. UPDATE users SET name=’Bob’ WHERE id=1;
III. DELETE FROM users WHERE id=1;|
IV. SELECT * FROM users;
a. I, II, and III
b. Only I and II
c. Only I|
d. I, II, Ill and IV
Answer :-
7. What is the purpose of the DriverManager class in JDBC?
a. To manage database connections.
b. To execute SQL queries.
c. To fetch data from a database.
d. To represent a database record.
Answer :-
8. How do you establish a connection to a database using JDBC?
a. By creating an instance of the Connection interface
b. By using the DriverManager.getConnection() method
c. By implementing the Connection interface
d. By extending the Connection class
Answer :-
9. Which method executes a simple query and returns a single Result Set object?
a. executeQuery()
b. executeUpdate(
c. execute()
d. run()
Answer :-
10. Which package in Java contains the classes and interfaces for JDBC?
a. java.sql
b. java.io
c. java.db
d. java.net
Answer :- For Answers Click Here