Part IV Flashcards

1
Q

What’s the diffference between trigger and data trigger in WPF?

A

Trigger can only work on dependency properties while data triggers can have binding to any .NET property

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

What is a Freezable class? Where is it used?

A

A freezable class is mainly used in WPF. It’s a class that notifies about changes, it can be frozen - then it behaves as if it was immutable.

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

Can freezable class be unfrozen?

A

No it can’t be unfrozen but clone method can invoked on it. It creates a deep modifiable copy of the object.

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

How dependency property works? Why is it good?

A

It’s stored in static context of a dependency object. Only changed values are stored. It helps save memory.

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

List OSI layers and internet layers

A

OSI: application, presentation, session, transport, network, data link, physical. Internet: application, transport, network, network interfaces.

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

What is a test double?

A

It’s a generic name for all objects that are needed in tests and should behave as their real life counterpart only to facilitate testing (mock, fake object, dummy object)

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

What is a memo? Where is it used?

A

A memo is a value that is already computed and is used during computation, for example recursive fibonnaci.

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