This set of Software Design Multiple Choice Questions & Answers (MCQs) focuses on “UML Class and Object Diagrams”.
1. What does a simple name in UML Class and objects consist of?
a) Letters
b) Digits
c) Punctuation Characters
d) All of the mentioned
View Answer
Explanation: A simple name consists of letters, digits and punctuation characters.
2. What Does a Composite name consists of in a UML Class and object diagram?
a) Delimiter
b) Simple names
c) Digits
d) All of the mentioned
View Answer
Explanation: Composite name consists of sequence of simple names and simple names already consists of digits.
3. A Class consists of which of these abstractions?
a) Set of the objects
b) Operations
c) Attributes
d) All of the mentioned
View Answer
Explanation: A class is an abstraction of objects, operations and attributes.
4. A class is divided into which of these compartments?
a) Name Compartment
b) Attribute Compartment
c) Operation Compartment
d) All of the mentioned
View Answer
Explanation: Class is divided into 3 main compartments mentioned.
5. An attribute is a data item held by which of the following?
a) Class
b) Object
c) All of the mentioned
d) None of the mentioned
View Answer
Explanation: Attribute is a data item held by class or object.
6. What should be mentioned as attributes for conceptual modelling?
a) Initial Values
b) Names
c) All of the mentioned
d) None of the mentioned
View Answer
Explanation: Initial values along with their names are used as attributes.
7. An operation can be described as?
a) Object behavior
b) Class behavior
c) Functions
d) Object & Class behavior
View Answer
Explanation: An operation is class and object behavior.
8. Which of these are part of the class operation specification format?
a) name
b) parameter list
c) return-type list
d) all of the mentioned
View Answer
Explanation: It consists of all these 3 mentioned format.
9. What among the following statement is true?
a) Associations may also correspond to the relation between instances of three or more classes
b) Association lines may be unlabeled or they may show association name
c) All of the mentioned
d) None of the mentioned
View Answer
Explanation: All the statements mentioned are true with respect to Notations.
10. What is multiplicity for an association?
a) The multiplicity at the target class end of an association is the number of instances that can be associated with a single instance of source class
b) The multiplicity at the target class end of an association is the number of instances that can be associated with a number instance of source class
c) All of the mentioned
d) None of the mentioned
View Answer
Explanation: Multiplicity is number of instances associated with single instance to source class.
11. Which among these are the rules to be considered to form Class diagrams?
a) Class symbols must have at least a name compartment
b) Compartment can be in random order
c) Attributes and operations can be listed at any suitable place
d) None of the mentioned
View Answer
Explanation: Compartments can be in order, Attributes and operations must be listed one per line.
12. Which of these are the heuristics?
a) Name classes, attributes, and roles with noun phrases
b) Name operations and associations with verb phrases
c) Stick to binary associations
d) All of the mentioned
View Answer
Explanation: All the heuristic mentioned are true.
13. An object symbol is divided into what parts?
a) Top compartment
b) Bottom Compartment
c) All of the mentioned
d) None of the mentioned
View Answer
Explanation: An object is divided into top and bottom compartments.
Sanfoundry Global Education & Learning Series – Software Architecture and Design.
To practice all areas of Software Design and Architecture, here is complete set of 1000+ Multiple Choice Questions and Answers on Software Design and Architecture.
- Practice MCA MCQs
- Apply for Computer Science Internship
- Check Software Architecture and Design Books
- Practice Computer Science MCQs
- Check MCA Books