NAME |
___________________________
|
Perm. no. | _________________ |
Question | Value | Score |
1 | 20 | |
2 | 20 | |
3 | 20 | |
4 | 20 | |
5 | 20 | |
Total | 100 |
1. Let a and b be int variables. Translate the following nested if/else statement to an equivalent switch statement. If this cannot be done, explain why.