Multiple Choice
Look at the following code sample: enum Flavor { Vanilla, Strawberry, Chocolate }
Which of the following statements assigns the Flavor enumerated type value to The integer variable?
A) int n = Flavor.Strawberry.ToInteger() ;
B) int n = Strawberry.IntValue;
C) int n = (Flavor) Strawberry;
D) int n = (int) Flavor.Strawberry;
Correct Answer:

Verified
Correct Answer:
Verified
Q34: Structures are value types, so a structure
Q35: You can convert an enumerator to its
Q36: When you create a structure array, each
Q37: You will find the ImageList control in
Q38: Which one of the following is not
Q40: The _ method removes specified characters from
Q41: In code, you can determine the number
Q42: Look at the following code sample that
Q43: Because char variables can hold only one
Q44: The _ method returns the lowercase equivalent