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;
Correct Answer:
Verified
Q2: The following is a valid C++ enumeration
Q3: In C++, _ is a reserved word.
A)
Q4: Consider the declaration: enum sports {BASKETBALL, FOOTBALL,
Q5: Which of the following statements creates an
Q6: The following is a legal C++ enumeration
Q8: The scope of a namespace member is
Q9: A function cannot return the value of
Q10: What is the output of the following
Q11: No arithmetic operations are allowed on the
Q12: An enumeration type can be passed as
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents