Architecture Flashcards

1
Q

Types of architecture

A
  1. Data centered
  2. Data flow architecture
  3. Call and return (main program/subprogram)
  4. Object-oriented (?!!!)
  5. Layered
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Class design principles

A
  1. Open-closed
  2. Liskov substitution principle
  3. Dependency inversion
  4. Interface segregation
  5. Release reuse equivalence
  6. Common closure
  7. Common reuse
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Open-closed principle

A

Class (component) is open for extension but closed for modification (interface)

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

Liskov substitution principle

A

Subclasses should be substitutable for their base classes

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

Dependency inversion principle

A

Depend on abstractions, don’t depend on concretions.

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

OCL example

A

context
pre:
post:
inv:

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

What is a client-server architecture?

A

3 components:

  1. A set of stand-alone servers offering services.
  2. A set of clients that call on services offered by the servers.
  3. A network allowing communication between the servers and the clients.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Interface segregation principle

A

Clients shouldn’t depend on method they don’t use.

Leeds to splitting of interfaces.

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

Release reuse principle

A

Only released (finished) component can be reused

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

Common closure pronciple

A

Package classes together if they are likely to be changed together.

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

Common reuse principle

A

Package classes together if they are likely to be used together.

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