Exercise 2.8 - Answers

1

The following are all possible:

[[JM][PS]]

[[[JM]P]S]

[[[JP]M]S]

[[[JP]S]M]

[[J[PS]]M]

If you think that the "or" might be exclusive, that would produce another five possibilities.

2

The scopes are as follows:

First occurrence of : [[P[QR]][QS]]

Second occurrence of : R

Third occurrence of : R

The occurrence of : [P[QR]]

The occurrence of : [QR]

The occurrence of : [[P[QR]][QS]]

The occurrence of : [QS].

Close Window