Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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?

A database driver
A web server
A firewall
An ODBC data source

Flag this Question

Question 224 pts

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

method.
class.
data.
program.

Flag this Question

Question 234 pts

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

stmt.executeUpdate("select * from Address");.
stmt.execute("select * from Address");.
stmt.executeQuery("select * from Address");.
stmt.query("select * from Address");.

Flag this Question

Question 244 pts

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

An int value indicating how many rows are effected from the invocation
An object that contains the status of the execution
A value indicating whether the SQL statement has been executed successfully
Void

Flag this Question

Question 254 pts

(TCOs 16) 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

ps.setString(1, "John");.
ps.set (1, John);.
ps.setString(0, "John");.
ps.set (0, John);.

Flag this Question

Question 264 pts

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

infile.nextLine()
infile.readNext()
infile.readLine()
readLine(infile)

Flag this Question

Question 274 pts

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

FileNotExist
FileNotFound
FileNotExistException
FileNotFoundException

Flag this Question

Question 284 pts

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

File
BufferedWriter
FileWrite
WriteFile

Flag this Question

Question 294 pts

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

ResultSetProperties
ResultSetData
ResultSetMetaData
ResultSetColumns

Flag this Question

Question 304 pts

(TCOs 16) _____ checks whether the JCheckBox jchk is selected.

jchk.isSelected().
jchk.selected()
jchk.select()
jchk.getSelected()

Flag this Question

Question 314 pts

(TCOs 16) The method _____ gets the contents of the text field txtName.

txtName.findString()
txtName.getText(s)
txtName.getString()
txtName.getText()

Flag this Question

Question 324 pts

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

jta.appendText(s)
jta.append(s)
jta.setText(s)
jta.insertText(s)

Flag this Question

Question 334 pts

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

lblMsg.findText()
lblMsg.text("Result")
lblMsg.setText("Result")
lblMsg.newText("Result")

Flag this Question

Question 344 pts

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

getValue
getSelectedValue
getValueSelected
getData

Flag this Question

Question 354 pts

(TCOs 16) Which of the following statements is false?

To check whether a radio button jrb is selected, use jrb.isSelected().
By default, when a radio button is created, the radio button is not selected.
You can create an instance of ButtonGroup and add radio button to the instance to group the buttons.
A GUI may have only one ButtonGroup.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems Second East European Symposium Adbis 98 Poznan Poland September 1998 Proceedings Lncs 1475

Authors: Witold Litwin ,Tadeusz Morzy ,Gottfried Vossen

1st Edition

3540649247, 978-3540649243

More Books

Students also viewed these Databases questions

Question

Identify key leadership traits for personal development.

Answered: 1 week ago

Question

What is electric dipole explain with example

Answered: 1 week ago

Question

What is polarization? Describe it with examples.

Answered: 1 week ago