Site MapHelpFeedbackMultiple Choice Quiz
Multiple Choice Quiz
(See related pages)



1

Which of the following statements best describes the relationship between patterns and frameworks?
A)A framework may involve many patterns.
B)A framework is more abstract than a pattern.
C)A pattern may incorporate one or more frameworks.
2

Which of the following best describes a pattern catalogue?
A)It is list of all the types of patterns that exist.
B)It is a list of all the patterns.
C)It is a group of related patterns that may used individually or together.
3

Several key principles underlie the use of patterns. Which of the following is not a key principle involved in the use of patterns?
A)Abstraction.
B)Separation of concerns.
C)Conformance testing.
4

Which of the following is not a non-functional property of a software architecture?
A)Changeability.
B)Reliability.
C)Conformance to requirements.
5

Which of the following statements best describes a pattern template?
A)A pattern template constrains the structure of the solution.
B)A pattern template determines the style and structure of the pattern description.
C)A pattern template is used to control the use a pattern.
6

A pattern is normally described in the format of a pattern template. Which of the following statements best describes the forces of a pattern?
A)The forces embody the constraints that must be addressed by the solution.
B)The forces describe why it is important to find a solution to the problem.
C)The forces are the constraints that solution is unable to resolve.
7

A pattern is normally described in the format of a pattern template. Which of the following statements best describes the context of a pattern?
A)The context is another term for the type of application where the pattern can be used.
B)The context is the software development environment that is being used.
C)The context represents the circumstances or the preconditions that must be addressed by the solution.
8

A pattern includes a solution. Which of the following best describes a pattern solution?
A)The solution describes the static relationships amongst the elements of the pattern.
B)The solution describes the dynamic relationships amongst the elements of the pattern.
C)A solution should resolve all the forces in a given context.
9

A pattern includes a solution. Which of the following best describes a pattern solution?
A)The solution describes the static relationships amongst the elements of the pattern.
B)The solution describes the dynamic relationships amongst the elements of the pattern.
C)A solution should resolve all the forces in a given context.
10

What is meant by the term ‘rule of three’?
A)No more than three patterns may be used together.
B)A problem-solution pair should have been used at least 3 times before they can be called a pattern.
C)A pattern should be used no more than three times in an application.
11

Which of the following is not one of the categories defined for the GOF patterns?
A)Creational.
B)Static.
C)Behavioural.
12

Which of the following best describes an advantage of the Singleton pattern?
A)The pattern can be used to ensure that no more than a fixed number of instances of the Singleton class are created.
B)Using the pattern always makes a system easier to maintain.
C)When the pattern is used global data can be accessed more quickly.
13

Which of the following statements is true about the constructor operation in the Singleton pattern?
A)The constructor operation is disabled.
B)The constructor operation is private.
C)The constructor operation is protected.
14

Which of the following statements is true about the Composite pattern?
A)The pattern must be used in conjunction with the Singleton pattern.
B)The pattern makes it easier to add new leaf subclasses.
C)The pattern makes it easier to add new operations to each of the leaf subclasses.
15

Which of the following best describes when to use the State pattern?
A)The pattern may be used when a class has many states.
B)The pattern may be used when a class has many operations.
C)The pattern may be used when an object appears to change class at run-time.
16

Some classes may be pure state classes when the State pattern is used. Which of following best describes a pure state class?
A)It has no attributes for any particular context object.
B)It can only have one state.
C)None of its states are composite states.
17

Which of the following is not an advantage of the State pattern?
A)State behaviour is localized.
B)The Singleton pattern may be used with the State pattern.
C)State transitions are made explicit.
18

Which of the following statements about the state and Singleton patterns is true?
A)The State pattern must be used with the Singleton pattern.
B)The Singleton pattern may not be used with the State pattern.
C)The Singleton pattern may be used for pure state classes.
19

Which of the following is not an issue that should be considered before using a pattern?
A)If a simpler solution exists it should be used in preference to the pattern.
B)It is preferable to use patterns by themselves.
C)It is important that the context of the problem is consistent with the context of the pattern.
20

Which of the following statements is most appropriate when using a pattern during information systems development?
A)The pattern must be used without any changes to its overall structure.
B)The pattern should be implemented with names that are meaningful in the context of the application.
C)The names of the classes in the pattern should be given the general names from the pattern so that their roles are unambiguous.







O-O Systems Analy, Bennett, 3eOnline Learning Center

Home > Chapter 15 > Multiple Choice Quiz