Exam 24: Relational Databases
Exam 1: Introduction76 Questions
Exam 2: Using Objects82 Questions
Exam 3: Implementing Classes108 Questions
Exam 4: Fundamental Data Types124 Questions
Exam 5: Decisions119 Questions
Exam 6: Loops107 Questions
Exam 7: Arrays and Array Lists117 Questions
Exam 8: Designing Classes88 Questions
Exam 9: Inheritance99 Questions
Exam 10: Interfaces100 Questions
Exam 11: Input/Output and Exception Handling108 Questions
Exam 12: Object-Oriented Design104 Questions
Exam 13: Recursion99 Questions
Exam 14: Sorting and Searching100 Questions
Exam 15: The Java Collections Framework102 Questions
Exam 16: Basic Data Structures102 Questions
Exam 17: Tree Structures102 Questions
Exam 18: Generic Classes75 Questions
Exam 19: Stream Processing85 Questions
Exam 20: Graphical User Interfaces75 Questions
Exam 21: Advanced Input/Output90 Questions
Exam 22: Multithreading81 Questions
Exam 23: Internet Networking74 Questions
Exam 24: Relational Databases75 Questions
Exam 25: XML74 Questions
Select questions type
To get the number of columns in a result set, you use _________ method of the ResultSetMetaData class.
(Multiple Choice)
4.7/5
(46)
In database terminology, a column (or combination of columns) that uniquely identifies a row in a table is called a(n) ____.
(Multiple Choice)
4.9/5
(45)
What will the following command do?
java -classpath derby.sql;.ExecSQL database.properties Product.sql
(Multiple Choice)
4.8/5
(30)
What should be on the class path when you launch a Java program that accesses a database?
(Multiple Choice)
4.8/5
(44)
Which of the following table attributes could be a unique identifier for a person?
(Multiple Choice)
5.0/5
(34)
What is wrong with the following statement?
boolean result = statement.execute("SELECT * FROM emp WHERE empNum = '?'");
(Multiple Choice)
4.8/5
(29)
What will the following command do?
java -classpath derby.sql;.ExecSQL database.properties
(Multiple Choice)
4.8/5
(37)
A ____________ is a reference to a primary key in a linked table.
(Multiple Choice)
4.9/5
(37)
Based on the following table, the query that gets the names and complete mailing addresses of all customers is ____________________.
Customer table

(Multiple Choice)
4.8/5
(40)
What will the following expression match to?
Name LIKE '%e%'
(Multiple Choice)
4.9/5
(40)
A _____________ is a column (or set of columns) whose value uniquely specifies a table record.
(Multiple Choice)
4.9/5
(37)
You can use the generic ____ method to execute arbitrary SQL statements.
(Multiple Choice)
4.9/5
(40)
Based on the table below, insert the statement that queries the database for the names of customers who live in the city of Pleasantville: ______________________
Customer table

(Multiple Choice)
4.9/5
(39)
"SQL injection attacks" have been responsible for many cases of data theft.One of the solutions for preventing these attacks is:
(Multiple Choice)
4.7/5
(30)
Showing 41 - 60 of 75
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)