NPTEL Programming in Java Week 11 Assignment Answers 2024

These are NPTEL Programming In Java Week 11 Assignment 11 Answers  Q1. What is the correct order to close database resources? a. Connection ...

NPTEL Programming in Java  Week 11 Assignment Answers 2024



These are NPTEL Programming In Java Week 11 Assignment 11 Answers


 Q1. What is the correct order to close database resources?

a. Connection then Statement then ResultSet

b. ResultSet then Statement then Connection

c. Statement then Connection then ResultSet

d. Statement then ResultSet then Connection

Answer:


Q2. How many types of JDBC drivers there?

a. 3

b. 4

c. 8

d. 10


Answer:


For answers or latest updates join our telegram channel: Click here to join


These are NPTEL Programming In Java Week 11 Assignment 11 Answers


Q3. What is the correct sequence to create a database connection?

i. Import JDBC packages.

ii. Open a connection to the database.

iii. Load and register the JDBC driver.

iv. Execute the statement object and return a query resultset.

v. Create a statement object to perform a query.

vi. Close the resultset and statement objects.

vii. Process the resultset.

viii. Close the connection.

a. i, ii, iii, v, iv, vii, viii, vi

b. i, iii, ii, v, iv, vii, vi, viii

c. ii, i, iii, iv, viii, vii, v, vi

d. i, iii, ii, iv, v, vi, vii, viii


Answer:


Q4. Which of the following is correct about connection pooling?

a. Application server like WebLogic, WebSphere, jBoss and Tomcat provides the facilities to configure connection pooling.

b. components like Apache Commons DBCP Component can be used to configure connection pooling.

c. Both of the above.

d. None of the above.


Answer:


For answers or latest updates join our telegram channel: Click here to join


These are NPTEL Programming In Java Week 11 Assignment 11 Answers


Q5. Which of the following is used to test the operation?

a. JDBC API

b. JDBC Driver manager

c. JDBC Test suite

d. JDBC-ODBC Bridge Drivers


Answer:


Q6. The JDBC architecture consists of _________ to access a database.

a. three-tier processing models

b. two-tier processing models

c. two-tier and three-tier processing models

d. None of the above


Answer:


For answers or latest updates join our telegram channel: Click here to join


These are NPTEL Programming In Java Week 11 Assignment 11 Answers


Q7. Which of these obtains a Connection?

a. Connection.getConnection(url)

b. Driver.getConnection(url)

c. DriverManager.getConnection(url)

d. new Connection(url)


Answer:


Q8. Which class provides methods to create a client-side socket in Java?

a. ServerSocket

b. NetSocket

c. Socket

d. ClientSocket


Answer:


For answers or latest updates join our telegram channel: Click here to join


These are NPTEL Programming In Java Week 11 Assignment 11 Answers


Q9. What does JDBC stand for?

a. Java DataBase Connectivity

b. Java DataBase Connection

c. Java DataBase Control

d. Java DataBase Connector


Answer:


Q10. Which method can be used to query for a single object using JdbcTemplate?

a. queryForObject()

b. queryForList()

c. query()

d. singleQuery()


Answer:



Q1. Answer: c. Statement then Connection then ResultSet


Q2. Answer: a. 3


Q3. Answer: d. i, iii, ii, iv, v, vi, vii, viii


Q4. Answer: c. Both of the above.


Q5. Answer: a. JDBC API


Q6. Answer: b. two-tier processing models


Q7. Answer: c. DriverManager.getConnection(url)


Q8. Answer: c. Socket


Q9. Answer: a. Java DataBase Connectivity


Q10. Answer: a. queryForObject()

COMMENTS

Name

1sem,1,1st Sem,33,1st year,2,2 sem,1,2nd Sem,29,2sem,1,3rd Sem,40,4th sem,9,5th sem,28,6th sem,19,7th sem,8,8th sem,6,About BEU,1,ABOUT MAKAUT,1,aku civil Notes,15,Aku EE/EC Notes,14,aku ME Notes,14,aku notes,45,aku papers,11,aku syllabus,6,All Branch,2,all semester,19,B pharm,1,BAU Question Papers,1,BCA Notes,1,BEU Collage,12,BEU Model Paper Question,3,BEU Notes,10,BEU Organizer,31,BEU Previous Year Questions,2,Beu pyq,4,BEU PYQ Ans,5,BEU syllabus,8,Blogs,1,Btech results,1,Civil Branch,2,Civil Engineering,8,CS Engineering,8,CSE Branch,1,CSE Notes,19,Developing Soft Skills And Personality,13,EC Engineering,10,EE Branch,2,EE Engineering,9,engineering chemistry,5,Gate,1,internship,3,Introduction To Internet Of Things,21,Introduction To Machine Learning,2,iot,1,MAKAUT CE Organizer,6,MAKAUT CSE Organizer,5,MAKAUT ECE Organizer,3,MAKAUT EE Organizer,2,MAKAUT ME Organizer,4,MAKAUT Notes,5,MAKAUT Organizer,8,MAKAUT Question Paper,1,MAKAUT Syllabus,1,make money,6,ME Engineering,19,NPTEL,92,NPTEL COURSE,91,Programming Tutorial,12,Public Speaking,22,PYQ Solution,4,Question Bank,19,Soft Skills,33,Traffic & SEO,9,week 1,7,week 10,3,week 11,3,week 12,3,week 2,10,week 3,6,week 4,7,week 5,5,week 6,4,week 7,4,week 8,4,week 9,3,WEEK1,4,WEEK10,3,WEEK11,3,WEEK12,3,WEEK2,5,WEEK3,6,WEEK4,6,WEEK5,5,WEEK6,3,WEEK7,4,WEEK9,1,ztest,6,
ltr
item
BEU BIHAR : BEU PYQ , Beu previous year question All Courses All Semester Solutions: NPTEL Programming in Java Week 11 Assignment Answers 2024
NPTEL Programming in Java Week 11 Assignment Answers 2024
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeTQBfVq4SrIt3DkHaVUANO08nZYLPZNqVutvL_z5kcbF3e5PLiQVZXtYN2j1Xu9KErKxvZ1fOOnxopfxs0BV_-uHHFmgqPdi2XKOZ9fGhrFz6iUdY12t_Wif_XLJEAj-pExGn-fjaODYH68PBnwcFxnRlCXSrt4fqmJ_ex6YLqybtxoOTZefFk0tesCg/w640-h426/Default_NPTEL_Programming_in_Java_3.jpg
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeTQBfVq4SrIt3DkHaVUANO08nZYLPZNqVutvL_z5kcbF3e5PLiQVZXtYN2j1Xu9KErKxvZ1fOOnxopfxs0BV_-uHHFmgqPdi2XKOZ9fGhrFz6iUdY12t_Wif_XLJEAj-pExGn-fjaODYH68PBnwcFxnRlCXSrt4fqmJ_ex6YLqybtxoOTZefFk0tesCg/s72-w640-c-h426/Default_NPTEL_Programming_in_Java_3.jpg
BEU BIHAR : BEU PYQ , Beu previous year question All Courses All Semester Solutions
https://www.beubihar.org.in/2024/04/nptel-programming-in-java-week-11.html
https://www.beubihar.org.in/
https://www.beubihar.org.in/
https://www.beubihar.org.in/2024/04/nptel-programming-in-java-week-11.html
true
8161375692651428750
UTF-8
Loaded All Posts Not found any posts VIEW ALL Read More Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content
×