Which two modifications, made independently, enable the code to compile and run?

Given: Which two modifications, made independently, enable the code to compile and run?

Given: Which two modifications, made independently, enable the code to compile and run?

A.
Changing the type of the variable day to String

B.
Arranging the case labels in ascending order

C.
Adding a default section within the switch code-block

D.
Adding a break statement after each print statement

E.
Changing the string literals in each case label to integer



Leave a Reply 3

Your email address will not be published. Required fields are marked *


Ashutosh

Ashutosh

Only e is needed for compile and run.
Adding a break statement is optional for successful compilation and run .