[Skip Breadcrumb Navigation]
:
[Skip Breadcrumb Navigation]
Home
Student Resources
Chapter Quizzes
Chapter 12
Chapter 12
UML Patterns
This activity contains 10 questions.
From a pattern viewpoint, the most significant difference between merge sort and quick sort is:
Other than the fact that both algorithms sort, there's little one can say about the similarities and differences between their split and join methods
Both merge sort and quick sort have similar characteristics for the split and join methods
Merge sort has a simple join method, and a more complex split method; while quick sort has the opposite characteristics
Merge sort has a simple split method, and a more complex join method; while quick sort has the opposite characteristics
The characters: +, -, #, ~, as prefixes to data and methods in UML diagrams, mean:
Public, private, protected, package access
Public, protected, private, static
Public, private, static, dynamic
Public, private, package, protected access
What can be said about the efficiency of programs developed using the Sorting pattern?
Such programs almost always are highly efficient
Such programs almost always are highly inefficient
The efficiency of the resulting program depends upon the specific algorithms used to implement the split and join methods
The efficiency of the resulting program depends mostly upon the ordering of the data that is sorted
Only (c) is true in general
Only (d) is true in general
Only (b) is true in general
Only (a) is true in general
What functions do you think are common to most Container-Iterator patterns?
Begin iteration
Access current item
Move to next item
Move to previous item
How many items are there?
Restart iteration
Stop iteration
Common functions: (a), (b), (c), (e), (g)
Common functions: (a), (b), (c), (e)
Common functions: All seven
Common functions: (a), (b), (c), (d), (e)
What is (are) the relationship(s) between UML diagrams and Patterns?
UML diagrams provide a pictorial representation of patterns
Patterns are a mechanism for implementation UML diagrams
UML diagrams and Patterns are two tools which are used to facilitate the practice of programming
Both (a) and (c)
Both (b) and (c)
All three
Only (c)
What restriction(s) are there on the use of the Sorting pattern?
The < operator must be defined
The compareTo method must be defined
Some way to compare all pairs of elements in the set to be sorted must be defined
Either the < operator or the > operator must be defined
Only (c)
Only (b) and (d)
Only (a) and (d)
All four restrictions
Which of the following statements are true?
UML class diagrams are connected by upward-pointing arrows, pointing towards their immediate ancestor
UML class diagrams are connected by upward-pointing arrows, pointing towards their immediate successors
In Java, an UML class diagram can have several upward-pointing arrows leaving from it
In Java, an UML class diagram can have several upward-pointing arrows pointing to it
True statements: (a), (c)
Only (a) is true
True statements: (b), (d)
True statements: (a), (d)
Which of these statements is true?
Since Java has but single inheritance, UML inheritance diagrams will be tree-like
Since Java has but single inheritance, UML inheritance diagrams will be graph-like
Since Java has multiple inheritance, UML inheritance diagrams will be tree-like
Since Java has multiple inheritance, UML inheritance diagrams will be graph-like
True: (a)
True: (c)
True: (b)
True: (d)
Which statement(s) are correct? The Model-View-Controller pattern:
Is particularly appropriate for GUIs
frequently is used for sorting
can provide for more than a single view
almost always deals with more than a single model
is an example of applying "divide and conquer" strategy to the art of design
Correct: (a), (b), (c), (e)
Correct: All of the statements are true
Correct: (a), (c), (d), (e)
Correct: (a), (c), (e)
Which statement(s) are true?
UML and patterns are tools designed specifically for Java
UML and patterns are tools designed for all general-purpose programming languages
UML and patterns are tools designed for object-oriented programming languages
UML and patterns are tools designed for structured programming languages
True statements: only (d)
True statements: (a) and (c)
True statements: only (c)
True statements: only (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]