Hoofdstuk 7 - Formal Specifications Flashcards

1
Q

What does it mean when we say that a formal specification is (a) consistent, (b) complete and (c) unambiguous ?

A

◦ (a) A formal specification is consistent when there are no contradictions in the specification
◦ (b) A formal specification is complete when all properties are defined in terms of known concepts
◦ (c) A formal specification is unambiguous when misinterpretations are impossible, it could also be minimal.

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

What does it mean for a state-chart to be (a) consistent, (b) complete, and (c) unambiguous ?

A

◦ (a) A state-chart is consistent when every state is reachable from the initial state and the final state is reachable from every other state.
◦ (b) A state-chart is complete when every event (state pair) has a transition
◦ (c) A state-chart is unambiguous (deterministic) when the same event does not appear on more than one transition leaving a given state.

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

What does it mean for an algebraic specification to be (a) consistent and (b) complete ?

A

◦ (a) An algebraic specification is consistent when it is never possible to deduce contradictions
◦ (b) An algebraic specification is complete when all query expressions can be reduced

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

Why is an UML class diagram a semi-formal specification?

A

Because it is based on a notation with precise syntax but loose semantics

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

Can you give 3 arguments against formal methods? Can you counter them?

A

◦ High cost of specification but better verifiability
◦ Requires highly trained staff but only simple math and logic is required
◦ Customers don’t understand but depends on customers and specification style, prototypes can be generated

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

What’s the distinction between a semi-formal and a formal specification?

A

The semantics are not loose

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

Why is it necessary to complement sequence diagrams with state charts?

A

A state-chart allows to specify all valid (also all illegal) scenario’s

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