Chapter 8 Flashcards
Define selection statement.
Mention one common misuse of the Böhm and Jacopini result.
What is the general form of a two-way selector?
What mechanism does Python use to specify compound statements?
Why is a static semantics rule used instead of a syntactic entity in many languages?
Give an example of a language that does not allow else-less if statements.
Under what circumstances can arithmetic expressions be used as control expressions?
What is the limitation of building a multiple selector from two-way selectors and gotos?
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?
What are the two general categories of a selection statement?
What is the role of the default segment in a switch statement?