Multiple Choice
Suppose that you have the following declaration. enum cars {FORD, GM, TOYOTA, HONDA};
Cars domesticCars = FORD;
The statement:domesticCars = static_cast<cars>(domesticCars + 1) ;
Sets the value of domesticCars to ____.
A) FORD
B) GM
C) TOYOTA
D) HONDA
Correct Answer:

Verified
Correct Answer:
Verified
Q1: Consider the declaration: enum sports {BASKETBALL, FOOTBALL,
Q2: Suppose str = "ABCDEFGHI".The output of the
Q3: In C++, namespace is a reserved word.
Q5: Which of the following statements creates an
Q6: Which of the following statements declares the
Q7: Considering the statement string str = "Gone
Q8: Suppose str = "xyzw";.After the statement str[2]
Q9: The general syntax for accessing a namespace
Q10: An enumeration type can be passed as
Q11: A data type wherein you directly specify