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

A

note

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
Q

what comes under structural things

A

class
object
interface
collaboration
use case
actor
component
node

26
Q

what is the diff btw class and obj in UML

A

The notation of the object
is similar to that of the class; the
only difference is that the object
name is always underlined

27
Q

what are relationships

A

meaningful connection between things

28
Q

what are types of relationships

A

dependency
association
generalization
realization

29
Q

what is realization

A

where one defines the behavior to be carried out, and the other one implements the mentioned behavior.

30
Q

what is generalization

A

relationship between a general thing (a parent class or superclass) and a specific kind of that thing (a child class or subclass).

31
Q

what is association

A

It tells how many elements are actually taking part in forming that relationship.

32
Q

what is dependency

A

It depicts the dependency from one entity to another.

33
Q

what are types of diagrams

A

structural
behavioral
interaction

34
Q

what is behavioral diagram

A

It depicts the behavioral features of a system

35
Q

which diagram comes under behavioral diagram

A

activity
use case

36
Q

what is interaction diagram

A

It depicts the interaction between two objects and the data flow between them. Following are the several interaction diagrams in UML:

37
Q

which diagram comes under interaction diagram

A

seq

38
Q

what is structural diagram

A

It represents the static view of a system

39
Q

which diagram comes under structural diagram

A

class

40
Q

what are the types of relationship between use cases

A

include
extend