Solved

Look at the Following Code Sample: Enum Flavor { Vanilla

Question 60

Multiple Choice

Look at the following code sample: enum Flavor { Vanilla, Strawberry, Chocolate }
Flavor iceCreamFlavor;
Which one of the following statements assigns the value Flavor.Vanilla to the iceCreamFlavor variable?


A) iceCreamFlavor.Vanilla;
B) iceCreamFlavor = Flavor.Vanilla;
C) iceCreamFlavor(Flavor.Vanilla) ;
D) iceCreamFlavor = Flavor[0];

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions