Which of the following correctly declares an enumerated data type named student?

A) enum student { Bill, Tom, Mary };
B) enum student { "Bill", "Tom", "Mary" };
C) int Bill = 1, Tom = 2, Mary = 3; enum student { 1, 2, 3 };
D) Any of the above 3 methods will work.
E) None of the above 3 methods will work.



A) enum student { Bill, Tom, Mary };

Computer Science & Information Technology

You might also like to view...

What is the difference between a subquery and a join? Under what circumstances would you not be able to use a subquery?

What will be an ideal response?

Computer Science & Information Technology

The standard that utilizes text to define the structure of data

a. HTTP b. XML c. XLS

Computer Science & Information Technology

The cin extraction operation ____ data type conversions.

A. always makes the correct B. can make no C. can make some D. makes only integer to float

Computer Science & Information Technology

What statement regarding the use of Designer.cs files is accurate?

A. The Windows Form Designer can't automatically add code to the file. B. Code in the Designer.cs file represents actions that are performed when you drag and drop controls from the Toolbox. C. Changes to this file should be done manually, to ensure accuracy. D. The Designer.cs file is not visible within the IDE.

Computer Science & Information Technology