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...

________ can be used to mark a location in a video to make it easier to advance to a specific location

Fill in the blank(s) with correct word

Computer Science & Information Technology

Answer the following statements true (T) or false (F)

1. Objects of unrelated classes that implement the same interface can respond to the method calls of that interface polymorphically. 2.. If a class leaves one method in an interface undeclared, the class is implicitly declared by Visual Basic as a MustInherit class. 3. An interface is typically used in place of a MustInherit class when there is no default implementation to inherit. 4. Declaring an interface Protected allows for extra security precautions. 5. A class that implements an interface must define all methods and properties of that interface.

Computer Science & Information Technology