POST NO 45 UML

Unified Modelling Language



1. Object oriented analysis and design can be handled by the one who knows UML.
a) True
b) False


Answer: b
Explanation: The Unified Modeling Language includes a set of graphic notation techniques to create visual models of object-oriented software-intensive systems.
2. At Conceptual level Class diagrams should include
a) operations only
b) attributes only
c) both operations and attributes
d) none of the mentioned


Answer: b
Explanation: In software engineering, a class diagram in the Unified Modeling Language (UML) is a type of static structure diagram that describes the structure of a system by showing the system’s classes, their attributes, operations, and the relationships among objects.
3. Select the statement true for activity diagrams.
a) They can be used to discover parallel activities
b) They are used to depict workflow for a particular business activity
c) Activity diagram do not tell who does what and are difficult to trace back to object models
d) All of the mentioned


Answer: d
Explanation: Activity diagrams are graphical representations of workflows of step wise activities and actions with support for choice, iteration and concurrency.
4. Constraints can be represented in UML by
a) {text}
b) [text].
c) Constraint
d) None of the mentioned


Answer: a
Explanation: Constraints are represented by {text string}.
5. What is an object?
a) An object is an instance of a class
b) An object includes encapsulation of data
c) An object is not an instance of a class
d) All of the mentioned


Answer: a
Explanation: An object is an instance of a class.
6. What is an abstract class?
a) A class that has direct instances, but whose descendants may have direct instances
b) A class that has direct instances, but whose descendants may not have direct instances
c) A class that has no direct instances, but whose descendants may have direct instances
d) All of the mentioned


Answer: c
Explanation: An abstract type is a type in a nominative type system which cannot be instantiated directly.
7. Which of the following are the valid relationships in Use Case Diagrams
a) Generalization
b) Include
c) Extend
d) All of the mentioned


Answer: d
Explanation: Generalization, include, extend all of these are valid relationships in use case diagrams.
8. Which of the following statement(s) is true about interaction diagrams?
a) Interaction diagrams are at their best when they deal with one main design flow and not multiple variants that can happen
b) Interaction diagrams are good at designing part or all of one use case’s functionality across multiple objects
c) Interaction diagrams allow the analyst to show iteration and conditional execution for messaging between objects
d) All of the mentioned


Answer: d
Explanation: Interaction diagram is used to describe some type of interactions among the different elements in the model. So this interaction is a part of dynamic behaviour of the system.
9. UML interfaces are used to:
a) specify required services for types of objects
b) program in Java, but not in C++ or Smalltalk
c) define executable logic to reuse across classes
d) define an API for all classes


Answer: a
Explanation: An interface is like a template design for a class that contains no data or implementation; only definitions for methods, properties etc.
10. Referring to the attached diagram, the arrow indicates:
a) Navigability
b) Dependency
c) Association
d) Refers to


Answer: a
Explanation: The arrows describe the ways you can navigate.

----------------------------
----------------------------
1. Which of the following is a building block of UML?
a) Things
b) Relationships
c) Diagrams
d) All of the mentioned


Answer: d
Explanation: All are the building blocks of UML which are further sub-categorized.
2. Classes and interfaces are a part of
a) Structural things
b) Behavioral things
c) Grouping things
d) Annotational things


Answer: a
Explanation: Structural things are mostly static parts of a model, representing elements that are either conceptual or physical.
3.What is a collection of operations that specify a service of a class or component?
a) Use Case
b) Actor
c) Interface
d) Relationship


Answer: c
Explanation: None.
4. What is a physical element that exists at run time in UML?
a) A node
b) An interface
c) An activity
d) None of the mentioned


Answer: a
Explanation: A node represents a computational resource.
5. What can be requested from any object of the class to affect behavior?
a) object
b) attribute
c) operation
d) instance


Answer: c
Explanation: An operation is the implementation of a service that can be requested from any object of the class to affect behavior.
6. Which things are dynamic parts of UML models?
a) Structural things
b) Behavioral things
c) Grouping things
d) Annotational things


Answer: b
Explanation: These are the verbs of a model, representing behavior over time and space.
7. Which diagram in UML emphasizes the time-ordering of messages?
a) Activity
b) Sequence
c) Collaboration
d) Class


Answer: b
Explanation: This diagram is a model describing how groups of objects collaborate in some behavior over time.
8. Object diagram captures the behavior of a single use case.
a) True
b) False


Answer: b
Explanation: Sequence Diagram is responsible for this.
9. If you are working on real-time process control applications or systems that involve concurrent processing, you would use a
a) Activity diagram
b) Sequence diagram
c) Statechart diagram
d) Object diagram


Answer: c
Explanation: A statechart diagram shows a state machine, consisting of states, transitions, events, and activities.
10. Which diagram shows the configuration of run-time processing elements?
a) Deployment diagram
b) Component diagram
c) Node diagram
d) ER-diagram


Answer: a
Explanation: A Deployment diagram shows the configuration of run-time processing elements and the software components, processes, and objects.
11. Which things in UML are the explanatory parts of UML models?
a) Structural things
b) Behavioral things
c) Grouping things
d) Annotational things


12. Which of the following term is best defined by the statement:”a structural relationship that specifies that objects of one thing are connected to objects of another”?
a) Association
b) Aggregation
c) Realization
d) Generalization


Answer: a
Explanation: None.
13. What refers to the value associated with a specific attribute of an object and to any actions or side?
a) Object
b) State
c) Interface
d) None of the mentioned


Answer: b
Explanation: In a state chart diagram, effects occur when the attribute’s value changes.

1 comment:

  1. Pls upload more mcq on different subjects

    ReplyDelete