Content Frame
Note for screen reader users: There is text between the form elements on this page. To be sure that you do not miss any text, use item by item navigation methods, rather than tabbing from form element to form element.
Skip Breadcrumb Navigation
Home  arrow Student Resources  arrow Chapter Quizzes  arrow Chapter 20

Chapter 20

Java Never Ends

This activity contains 15 questions.

Question 1.
"Persistence" means...


Open Hint for Question 1 in a new window.
 
End of Question 1


Question 2.
An example of the consistent interface found within the JavaBeans framework is:


Open Hint for Question 2 in a new window.
 
End of Question 2


Question 3.
JavaBeans provide which services or abilities?
  1. Consistent interfaces
  2. Consistent event-handling model
  3. Persistence
  4. Introspection
  5. Builder support
  6. Polymorphism
  7. Encapsulation


Open Hint for Question 3 in a new window.
 
End of Question 3


Question 4.
The Thread.sleep method:


Open Hint for Question 4 in a new window.
 
End of Question 4


Question 5.
What is the advantage of implementing the Runnable interface rather than extending Thread?


Open Hint for Question 5 in a new window.
 
End of Question 5


Question 6.

Which statement(s) is (are) true about "persistence?"
  1. Persistence is a property of threads
  2. Persistence is a property of JavaBeans
  3. Persistence in any object (class) can be achieved using (de-)serialization
  4. Persistence support in Java resides in the Persistence package

Open Hint for Question 6 in a new window.
 
End of Question 6


Question 7.

Which statement(s) is (are) true about Enterprise JavaBeans?
  1. They extend the JavaBean framework
  2. They're targeted for business/commercial applications
  3. They provide a means to create an enterprise, like a business
  4. They provide at least the same services and abilities that JavaBeans do

Open Hint for Question 7 in a new window.
 
End of Question 7


Question 8.

Which statement(s) is (are) true about how threads may be used?
  1. Threads can be used to separate independent tasks
  2. Threads can be used to allow time-consuming activities to complete in parallel with other activities
  3. Threads can be used to improve the responsiveness of GUIs
  4. Threads can be used to better utilize computational and hardware resources

Open Hint for Question 8 in a new window.
 
End of Question 8


Question 9.

Which statement(s) is (are) true about the start method?
  1. start is a member method of the Thread class
  2. start is a member method of the Runnable class
  3. Invoking start is optional - you only need do so if you've invoked a thread's stop method an you want the thread to resume execution
  4. Each time you invoke start you cause a new thread to begin to execute

Open Hint for Question 9 in a new window.
 
End of Question 9


Question 10.

Which statement(s) is (are) true?
  1. Java supports multiple threads
  2. Since most PCs have only a single processor, one single-thread Java programs can run on most PCs
  3. Threads typically share computer resources, like memory and I/O devices
  4. If a computer has multiple processors, each might be tasked with running a different thread

Open Hint for Question 10 in a new window.
 
End of Question 10


Question 11.

Which statement(s) is (are) true?
  1. JDBC provides access to Java's built-in database
  2. JDBC can be used to provide access to, say, Oracle
  3. JDBC only can provide a connection to databases that follow compatible databases - and not all databases are compatible
  4. You may place SQL statements directly into your Java source code if you use JDBC

Open Hint for Question 11 in a new window.
 
End of Question 11


Question 12.

Which statement(s) is (are) true?
  1. Threads can be used to divide time-consuming tasks into independent components
  2. Threads run more or less independently of one-another
  3. If one or more threads sleep, other threads can continue to execute
  4. Threads can be used to respond with the semantics to be associated with events that occur during execution
  5. Java programs always have at least one thread

Open Hint for Question 12 in a new window.
 
End of Question 12


Question 13.

Which statement(s) is (are) true?
  1. Threads must be created using an inner class
  2. Threads will not begin to execute until you explicitly invoke the thread's run method
  3. Java supports up to 100 threads at a time
  4. A thread begins to execute as soon as new Thread(); is executed

Open Hint for Question 13 in a new window.
 
End of Question 13


Question 14.
Which statement(s) is (are) true? SQL is...
  1. short for "Standard Query Language
  2. short for "Structured Query Language
  3. a standard for database access
  4. included within Java via JDBC


Open Hint for Question 14 in a new window.
 
End of Question 14


Question 15.
Which statement(s) is (are) true? Today, most computer databases:
  1. are structured
  2. are relational
  3. are collections of tables of data
  4. are accessible via JDBC


Open Hint for Question 15 in a new window.
 
End of Question 15





Pearson Copyright © 1995 - 2010 Pearson Education . All rights reserved. Pearson Addison Wesley is an imprint of Pearson .
Legal Notice | Privacy Policy | Permissions

Return to the Top of this Page