[Skip Breadcrumb Navigation]
:
[Skip Breadcrumb Navigation]
Home
Student Resources
Chapter Quizzes
Chapter 20
Chapter 20
Java Never Ends
This activity contains 15 questions.
"Persistence" means...
None of the above
Components retain their state (information) across invocations
Components continue to attempt to complete their task(s), even in the event of error(s)
Components are diligent about completing their task(s) before they terminate
An example of the consistent interface found within the JavaBeans framework is:
None of the above
the set- and get- prefixes used with accessor and mutator methods
the listeners used within the Event Model
the names used for Colors within the Java Color Model
JavaBeans provide which services or abilities?
Consistent interfaces
Consistent event-handling model
Persistence
Introspection
Builder support
Polymorphism
Encapsulation
All but (f) and (g)
All but (g)
All but (f)
All of the above
The
Thread.sleep
method:
pauses the program for the specified number of milliseconds
None of the above
pauses all threads running in the current program
pauses the program for the specified number of microseconds
What is the advantage of implementing the
Runnable
interface rather than extending
Thread
?
The
Runnable
interface allows you to implement your thread as an inner class
You don't need to invoke
start
if you implement a thread as
Runnable
If your class already extends, say,
JApplet
or
JFrame
, then it cannot also extend
Thread
None of the above is correct
Which statement(s) is (are) true about "persistence?"
Persistence is a property of threads
Persistence is a property of JavaBeans
Persistence in any object (class) can be achieved using (de-)serialization
Persistence support in Java resides in the
Persistence
package
True: (b), (c)
True: (a), (b), (c)
True: (b), (c), (d)
True: All of the above
Which statement(s) is (are) true about Enterprise JavaBeans?
They extend the JavaBean framework
They're targeted for business/commercial applications
They provide a means to create an enterprise, like a business
They provide at least the same services and abilities that JavaBeans do
True: All of the above
True: (a), (b)
True: (a), (d)
True: All but (c)
Which statement(s) is (are) true about how threads may be used?
Threads can be used to separate independent tasks
Threads can be used to allow time-consuming activities to complete in parallel with other activities
Threads can be used to improve the responsiveness of GUIs
Threads can be used to better utilize computational and hardware resources
True: All but (a)
True: All of the above
True: All but (d)
True: (a), (d)
Which statement(s) is (are) true about the
start
method?
start
is a member method of the
Thread
class
start
is a member method of the
Runnable
class
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
Each time you invoke
start
you cause a new thread to begin to execute
True: (a), (c)
True: (a), (d)
True: (a)
True: All of the above
Which statement(s) is (are) true?
Java supports multiple threads
Since most PCs have only a single processor, one single-thread Java programs can run on most PCs
Threads typically share computer resources, like memory and I/O devices
If a computer has multiple processors, each might be tasked with running a different thread
True: All of the above
True: (a), (d)
True: (a), (c)
True: (a), (c), (d)
Which statement(s) is (are) true?
JDBC provides access to Java's built-in database
JDBC can be used to provide access to, say, Oracle
JDBC only can provide a connection to databases that follow compatible databases - and not all databases are compatible
You may place SQL statements directly into your Java source code if you use JDBC
True: All but (a)
True: (b), (c)
True: (b), (d)
True: All of the above
Which statement(s) is (are) true?
Threads can be used to divide time-consuming tasks into independent components
Threads run more or less independently of one-another
If one or more threads sleep, other threads can continue to execute
Threads can be used to respond with the semantics to be associated with events that occur during execution
Java programs always have at least one thread
True: All but (d)
True: All of the above
True: (a), (b), (c)
True: All but (e)
Which statement(s) is (are) true?
Threads must be created using an inner class
Threads will not begin to execute until you explicitly invoke the thread's
run
method
Java supports up to 100 threads at a time
A thread begins to execute as soon as
new Thread();
is executed
True: Only (c)
True: None of the above
True: (b), (d)
True: All of the above
Which statement(s) is (are) true? SQL is...
short for "Standard Query Language
short for "Structured Query Language
a standard for database access
included within Java via JDBC
True: (a), (c)
True: (b), (c)
True: (a), (c), (d)
True: (b), (c), (d)
Which statement(s) is (are) true? Today, most computer databases:
are structured
are relational
are collections of tables of data
are accessible via JDBC
True: All but (d)
All of the above
True: All but (b)
True: (a), (b)
The Submit Answers for Grading feature requires scripting to function. Your browser either does not support scripting or you have turned scripting off.
So, the Submit Answers for Grading button below will not work.
The following Submit Answers for Grading button is provided in its place and will clear your answers:
The Clear Answers and Start Over feature requires scripting to function. Your browser either does not support scripting or you have turned scripting off.
So, the Clear Answers and Start Over button below will not work.
The following Clear Answers button is provided in its place and will clear your answers:
Your browser either does not support scripting or you have turned scripting off. Because of this, the answer choices will NOT appear in a different order each time the page is loaded, though that is mentioned below. Note that you do not need this feature to use this site.
Answer choices in this exercise appear in a different order each time the page
is loaded.
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]
: [Return to the Top of this Page]