stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Class Diagram_V2 Flashcards | StudBud
Explore
/
Class Diagram_V2
Class Diagram_V2
20 terms
·
StudBud Administration
·
9 plays
Imported from external platform
Flashcards
20 cards
F
Practice quiz
P
Host live
L
Questions
20
Answers
1
What is a class diagram in UML?
A data flow diagram
A sequence diagram
A static diagram showing classes and their associations
An interaction diagram
2
Which of the following describes a strong composition?
Objects depend entirely on the existence of the composite object
It is represented by an empty diamond
Objects can exist without the main class
It is a type of dependency
3
What is the purpose of a stereotype in UML? For example:
Modify the structure of a class
Representing dependency relations
Establishing cardinalities
Create new elements based on existing ones
4
Which property allows a subclass to inherit attributes and methods from a superclass?
Modularity
Encapsulation
Polimorfism
Hierarchy or inheritance
5
What is the visibility of an attribute represented by a ‘+’ sign?
Protected
Private
Public
Package
6
What does the top of a class represent in UML?
The attributes
The relations
The name of the class
The methods
7
What does it mean for a relation to be unidirectional in UML?
That the two classes can reference each other
That it is an inheritance relation
That the relation has cardinality 1
That only one class knows of the existence of the other
8
What kind of association allows a class to relate to itself?
Reflective association
Bidirectional association
Unidirectional association
Hierarchical association
9
Which of the following is NOT a main relation in UML?
Aggregation
Inheritance
Multiplicity
Association
10
How is inheritance represented graphically in UML?
With a diamond line
With a dashed line
With an arrow pointing to the superclass
With an additional rectangle
11
Which modelling language is used for object-oriented analysis and design?
XML
JSON
SQL
UML
12
What happens in an aggregation relation (weak composition)?
Does not allow sharing of components
Objects can exist independently of the composite
It is a relation of dependence
Objects depend entirely on the composite object
13
What is the visibility of an attribute represented by the ‘~’ sign?
Protected
Public
Private
Package
14
What is an object in the object-oriented programming paradigm?
A class-based programming language
An algorithm that optimises the program's performance
A set of data and methods that manipulate that data
A function performing mathematical operations
15
How is an association relation represented in UML?
With a dashed arrow
With a solid line
With an empty diamond
With a triangle
16
How is a dependency relation represented in UML?
With a filled diamond
With a dashed line
With a solid line
With a solid arrow
17
How is a realisation relation (indicating that a class or component implements an interface) represented in UML?
With an empty diamond
With a solid line
With a filled triangle
With a dashed line and empty arrow
18
Which object-oriented programming principle allows the internal details of an object to be hidden?
Abstraction
Encapsulation
Modularity
Polymorphism
19
What is a method in UML?
A relation between classes
An operation that defines the behaviour of a class
An attribute of a class
An instance variable
20
What does the multiplicity ‘1..*’ indicate in UML?
That one instance must be obligatorily linked to another
That there is no instance
That there is exactly one instance
That there are one or more instances