UML Flashcards

1
Q

What is UML?

A

unified modeling language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is identity?

A

a property of an object that distinguishes it from other objects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what is state?

A

describes the data stored in the object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is behaviour

A

describes the operations the object carries out

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is class

A

collection of objects which are similar

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what is encapsulation

A

wrapping of data and functions into a single unit.

data is not directly accessible to outside world

Only the operations or functions or methods wrapped in the class can access it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what is abstraction

A

Abstraction is the act of representing the essential features without including the background details or explanations. This is a fundamental principle of modeling.

So abstraction is looking only at the information that is relevant at the time by hiding details so that there is no confusion in understanding the system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what is inheritance

A

The process by which objects of one class acquire the properties of objects of another class is known as inheritance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what is sub class and super class

A

A class known as the subclass or the child class can inherit attributes and operations from another class known as the superclass or the parent class.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what is polymorphism

A

Polymorphism means the ability to take more than one form.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what are types of polymorphism

A

function polymorphism
operator polymorphism

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what is function polymorphism

A

An operation may exhibit different behavior in different instances depending upon the data used in the operation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

what is operator polymorphism

A

This is the process of making an operator to exhibit different behaviors in different instances.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

give example of identity

A

yourCar and myCar

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

example of state

A

the brand name as Tata, the model name as Nano, the color as yellow for myCar and the brand name Hyundai, the model name as i10, the color as red for yourCar

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

what are building blocks of UML

A

things
relationships
diagrams

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

what are things

A

anything that is a real world entity

18
Q

what are four types of things

A

structural behavioral grouping annotational

19
Q

what are annotational things

A

captures remarks, descrp and comments of UML elements

20
Q

what comes under annotational things

21
Q

what are grouping things

A

package - binds together the elements of UML

22
Q

what are behavioral things

A

depicts the behaviour of the system

23
Q

what comes under behavioral things

A

state machine
interaction

24
Q

what are structural things

A

depicts the static behavior of a model

25
what comes under structural things
class object interface collaboration use case actor component node
26
what is the diff btw class and obj in UML
The notation of the object is similar to that of the class; the only difference is that the object name is always underlined
27
what are relationships
meaningful connection between things
28
what are types of relationships
dependency association generalization realization
29
what is realization
where one defines the behavior to be carried out, and the other one implements the mentioned behavior.
30
what is generalization
relationship between a general thing (a parent class or superclass) and a specific kind of that thing (a child class or subclass).
31
what is association
It tells how many elements are actually taking part in forming that relationship.
32
what is dependency
It depicts the dependency from one entity to another.
33
what are types of diagrams
structural behavioral interaction
34
what is behavioral diagram
It depicts the behavioral features of a system
35
which diagram comes under behavioral diagram
activity use case
36
what is interaction diagram
It depicts the interaction between two objects and the data flow between them. Following are the several interaction diagrams in UML:
37
which diagram comes under interaction diagram
seq
38
what is structural diagram
It represents the static view of a system
39
which diagram comes under structural diagram
class
40
what are the types of relationship between use cases
include extend