Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A function cannot return the value of an enumeration type. Question 1 options: True False Question 2 ( 9 points ) An anonymous type can
A function cannot return the value of an enumeration type.
Question options:
True
False
Question points
An anonymous type can be passed as a parameter to a function.
Question options:
True
False
Question points
Consider the declaration:
enum sports BASKETBALL FOOTBALL, HOCKEY, BASEBALL, SOCCER;
which of the following statements is true?
Question options:
a
FOOTBALL SOCCER
b
BASEBALL SOCCER
c
SOCCER BASEBALL
d
HOCKEY FOOTBALL SOCCER
Question points
A data type wherein you directly specify values in the variable declaration with no type name is called an anonymous type.
Question options:
True
False
Question points
No arithmetic operations are allowed on the enumeration type.
Question options:
True
False
Question points
What is the output of the following code?
enum courses ALGEBRA BASIC, PASCAL, PHILOSOPHY, ANALYSIS;
courses registered;
registered ALGEBRA;
cout registered endl;
Question options:
a
b
c
ALGEBRA
d
"ALGEBRA"
Question points
Which of the following statements creates an anonymous type?
Question options:
a
enum ;
b
enum grades ;
c
enum A B C D F grades;
d
enum grades A B C D F;
Question points
Which of the following statements declares the studentGrade variable?
Question options:
a
enum studentGrade A B C D F grades;
b
enum studentGrade A B C D F;
c
enum grades A B C D F studentGrade;
d
enum int A B C D F studentGrade;
Question points
The following is a legal C enumeration type:
enum colorType BLUE GREEN, PINK, YELLOW, RED;
Question options:
True
False
Question points
The following is a valid C enumeration type:
enum places STNDRDTH;
Question options:
True
False
Question points
The values in the domain of an enumeration type are called
Question options:
a
indices
b
placeholders
c
enumerators
d
positions
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started