L7 - Pattern Oriented Design Flashcards

1
Q

If there are still possible changes at runtime. Which design pattern would you choose?

A

Strategy Pattern

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

If code ‘must be extensible’. Which design pattern should be used?

A

Observer Pattern

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

If a class ‘must interface to existing service or API’. Which design pattern should be used?

A

Façade pattern

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

Goals of Pattern-Oriented Design

A

Manage Complexity & Reduce Costs & Reduce Time2Market

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

If class should be location transparent. What is an appropriate pattern?

A

Proxy Pattern

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

If a class ‘must interface with an existing object’. Which design pattern should be used?

A

Adapter Pattern

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

Keyword for Bridge Pattern

A

‘must interface to several systems that have to be developed’

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

Keyword for Adapter Pattern

A

‘must interface with an existing object’

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

Cue sentence for a Proxy Pattern

A

‘must be location transparent’

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

Composite Pattern is used when it must …

A

‘have variable depth and width’

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