Homework 10 - October 25
Multi-alternative selection statements
- What do each of the following
languages call their multi-alternative selections statements?
- Pascal
- Java
- Ada
- What types are allowed for the
multi-alternative variable in
- Pascal
- Java
- Ada
- Each of the multi-alternative choice
statements has two parts: a value
and an action. Provide a simple example of a choice
statement in
- Pascal
- Java
- Ada
- Is the multi-alternative choice
statement allowed to have multiple values in
- Pascal
- Java
- Ada
- If your answer to the previous
question was "yes" give an example the value part of such a
choice statement in
- Pascal
- Java
- Ada
- Can a value appear in more than one of
the choice statements in
- Pascal
- Java
- Ada
- Is a "default" choice
provided and if so, what is its format in
- Pascal
- Java
- Ada
- How does the behavior of the
multi-alternative choice statement in Pascal and Ada differ from that in C
and Java?
- What selection statement in
FORTRAN is most similar to the
multi-alternative choice statement in Ada, Java and Pascal?
- Is there anything distinctive about
Ada's multi-alternative choice statement when compared to that of Java and
Pascal?