Which of the following statements declares the studentGrade variable?

A. enum studentGrade {A, B, C, D, F};
B. enum int {A, B, C, D, F} studentGrade;
C. enum studentGrade {A, B, C, D, F} grades;
D. enum grades {A, B, C, D, F} studentGrade;

Answer: D

Computer Science & Information Technology

You might also like to view...

In the ________ pane, there are two tabs: ACTIVE and ALL

Fill in the blank(s) with correct word

Computer Science & Information Technology

The looping mechanism that always executes at least once is the _____________ statement.

a. if…else b. do…while c. while d. for

Computer Science & Information Technology