Chapter 8 Flashcards

1
Q

Define selection statement.

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

Mention one common misuse of the Böhm and Jacopini result.

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

What is the general form of a two-way selector?

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

What mechanism does Python use to specify compound statements?

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

Why is a static semantics rule used instead of a syntactic entity in many languages?

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

Give an example of a language that does not allow else-less if statements.

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

Under what circumstances can arithmetic expressions be used as control expressions?

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

What is the limitation of building a multiple selector from two-way selectors and gotos?

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

Between what two language characteristics is a trade-off made when deciding whether more than one selectable segment is executed in one execution of a multiple selection statement?

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

What are the two general categories of a selection statement?

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

What is the role of the default segment in a switch statement?

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