COMP 3111 EXAM QUESTIONS WITH ANSWERS
100% VERIFIED
Which statement about the UML (Unified Modeling Language) is true?
A. The UML makes us think about the world in a certain way.
B. The UML can be used to model only software systems.
C. The UML can be used for only object-oriented software systems.
D. The UML is a software development process
E. The UML provides a fixed set of modeling elements. - ANSWER A. The UML makes us
think about the world in a certain way.
Which of the following UML concepts is not a classifier?
A. class
B. operation
C. association
D. method
E. attribute - ANSWER D. method
Which of the following is NOT a property of an attribute in the UML?
A. data type
B. multiplicity
C. visibility
,D. signature
E. changeability - ANSWER D. signature
In the UML, a class is a description of a group of objects that have common
A. attributes, operations, relationships and semantics.
B. identity, operations, relationships and semantics.
C. attributes, operations, roles and semantics.
D. attributes, operations, relationships and multiplicity.
E. attributes, coverage, relationships and semantics. - ANSWER A. attributes, operations,
relationships and semantics.
In the UML, the interface of an object contains only
A. attributes.
B. values.
C. data types.
D. operations.
E. variables. - ANSWER D. operations.
When is an association class needed?
A. When the multiplicity of the relationship is many-to-many (N:M).
B. When the relationship is unidirectional.
C. When the relationship has properties.
,D. When the relationship is mandatory.
E. When the relationship is optional. - ANSWER C. When the relationship has properties.
Is it possible for there to be more than one association between any two classes?
A. Yes, always.
B. Yes, but only for binary and higher order associations.
C. Yes, if the multiplicity is many to many (N:M)
D. No, no way.
E. Gee, I don't know! - ANSWER A. Yes, always.
Which of the following statements is not true about an association relationship?
A. It is inherently bi-directional.
B. It can be restricted to be only unidirectional.
C. It represents an instance of the relationship.
D. It can normally only be read meaningfully in one direction.
E. It is a description of a group of instances of the relationship. - ANSWER C. It represents
an instance of the relationship.
The incomplete coverage constraint for a generalization relationship means that:
A. a superclass instance can be a member of one or more of the subclasses.
[overlapping]
B. some subclass instance is not a member of any superclass. [not possible]
, C. a superclass instance can be a member of at most one of the subclasses. [disjoint]
D. each superclass instance is a member of some subclass. [complete]
E. some superclass instance is not a member of any subclass. - ANSWER E. some
superclass instance is not a member of any subclass.
Which of the following is a generalization coverage constraint?
A. complex
B. disunion
C. overloaded
D. common
E. disjoint - ANSWER E. disjoint
Which of the following is not likely to contribute to the complexity of software
development?
A. The vocabulary of the application domain
B. The number and size of the programs that need to be implemented
C. The nature of the application domain
D. A large development team
E. Insufficient hardware resources - ANSWER E. Insufficient hardware resources
Which of the following statements is true about custom software?
A. The number of copies in use is high.
100% VERIFIED
Which statement about the UML (Unified Modeling Language) is true?
A. The UML makes us think about the world in a certain way.
B. The UML can be used to model only software systems.
C. The UML can be used for only object-oriented software systems.
D. The UML is a software development process
E. The UML provides a fixed set of modeling elements. - ANSWER A. The UML makes us
think about the world in a certain way.
Which of the following UML concepts is not a classifier?
A. class
B. operation
C. association
D. method
E. attribute - ANSWER D. method
Which of the following is NOT a property of an attribute in the UML?
A. data type
B. multiplicity
C. visibility
,D. signature
E. changeability - ANSWER D. signature
In the UML, a class is a description of a group of objects that have common
A. attributes, operations, relationships and semantics.
B. identity, operations, relationships and semantics.
C. attributes, operations, roles and semantics.
D. attributes, operations, relationships and multiplicity.
E. attributes, coverage, relationships and semantics. - ANSWER A. attributes, operations,
relationships and semantics.
In the UML, the interface of an object contains only
A. attributes.
B. values.
C. data types.
D. operations.
E. variables. - ANSWER D. operations.
When is an association class needed?
A. When the multiplicity of the relationship is many-to-many (N:M).
B. When the relationship is unidirectional.
C. When the relationship has properties.
,D. When the relationship is mandatory.
E. When the relationship is optional. - ANSWER C. When the relationship has properties.
Is it possible for there to be more than one association between any two classes?
A. Yes, always.
B. Yes, but only for binary and higher order associations.
C. Yes, if the multiplicity is many to many (N:M)
D. No, no way.
E. Gee, I don't know! - ANSWER A. Yes, always.
Which of the following statements is not true about an association relationship?
A. It is inherently bi-directional.
B. It can be restricted to be only unidirectional.
C. It represents an instance of the relationship.
D. It can normally only be read meaningfully in one direction.
E. It is a description of a group of instances of the relationship. - ANSWER C. It represents
an instance of the relationship.
The incomplete coverage constraint for a generalization relationship means that:
A. a superclass instance can be a member of one or more of the subclasses.
[overlapping]
B. some subclass instance is not a member of any superclass. [not possible]
, C. a superclass instance can be a member of at most one of the subclasses. [disjoint]
D. each superclass instance is a member of some subclass. [complete]
E. some superclass instance is not a member of any subclass. - ANSWER E. some
superclass instance is not a member of any subclass.
Which of the following is a generalization coverage constraint?
A. complex
B. disunion
C. overloaded
D. common
E. disjoint - ANSWER E. disjoint
Which of the following is not likely to contribute to the complexity of software
development?
A. The vocabulary of the application domain
B. The number and size of the programs that need to be implemented
C. The nature of the application domain
D. A large development team
E. Insufficient hardware resources - ANSWER E. Insufficient hardware resources
Which of the following statements is true about custom software?
A. The number of copies in use is high.