Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question 214 pts (TCOs 1, 5, and 6) What must you make available to your applica

ID: 2246644 • Letter: Q

Question

Question 214 pts

(TCOs 1, 5, and 6) What must you make available to your application before you can use JDBC to connect to a database?

Flag this Question

Question 224 pts

(TCO 1-6) An object is an instance of a

Flag this Question

Question 234 pts

(TCOs 1–6) To execute the query "select * from Address" using the Statement object named stmt that has been properly configured with a database connection, use

Flag this Question

Question 244 pts

(TCOs 1–6) What is the return value from the following?
stmt.executeUpdate("insert into T values (100, 'Smith')");

Flag this Question

Question 254 pts

(TCOs 1–6) Suppose a prepared statement is created as follows.
PreparedStatement ps = conn.prepareStatement
("insert into Student (fName, mi, lName) values (?, ?, ?)");

To assign the value John to the first parameter of this query, use

Flag this Question

Question 264 pts

(TCOs 1–6) Which method can be used to read a whole line from a file opened with the BufferedReader object infile?

Flag this Question

Question 274 pts

(TCOs 1–6) Which type of exception occurs when creating a BufferedReader object for a nonexistent file?

Flag this Question

Question 284 pts

(TCOs 1–6) Which class can be used to write data into a text file?

Flag this Question

Question 294 pts

(TCOs 1–6) Information about the types and properties of the columns of a ResultSet object can be obtained by using a _____ object

Flag this Question

Question 304 pts

(TCOs 1–6) _____ checks whether the JCheckBox jchk is selected.

Flag this Question

Question 314 pts

(TCOs 1–6) The method _____ gets the contents of the text field txtName.

Flag this Question

Question 324 pts

(TCOs 1–6) The method _____ appends a string s into the text area jta.

Flag this Question

Question 334 pts

(TCOs 1–6) The method _____ assigns the name Result to the Text of the label lblMsg.

Flag this Question

Question 344 pts

(TCOs 1–6) The item that is clicked in a JList can be retrieved using the _____ method of JList.

Flag this Question

Question 354 pts

(TCOs 1–6) Which of the following statements is false?

A database driver

Explanation / Answer

214 - A Database Driver because it includes a JDBC-ODBC data source that makes open Database connectivity driver available to programmers using the JDBC API.

224 - Class - An object is an instance of a class. In other word class is a blue-print, that it contain the format that how to object work and when object is created then the memory used to allocate to the variables and functions.

234 - stmt.executeQuery("select * from Address"); - Returns a stmt object. Use this method when you expect to get a stmt set, as you would with a select statement.

244 - An int value indicating how many rows are effected from the invocation.

254 - ps.setString(1, "John");

264 - infile.readLine()

274 - FileNotFoundException

284 - FileWriter

294 - ResultSetMetaData

304 - jchk.isSelected()

314 - txtName.getText()

324 - jta.append(s)

334 - lblMsg.setText("Result")

344 - getSelectedValue

354 - To check whether a radio button jrb is selected, use jrb.isSelected(). - jrb.isChecked() is correct.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote