MCQOPTIONS
Saved Bookmarks
| 1. |
Consider the following code snippet: marks =80; switch (marks) { case 60: grade = 'C'; break; case 70: grade = 'B'; break; case 80: grade = 'A'; break; default: grade = 'E'; } What is the value of 'grade' after the switch statement is executed? |
| A. | C |
| B. | B |
| C. | A |
| D. | E |
| Answer» D. E | |