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
Q6: Which of the following statements declares the
Q7: Considering the statement string str = "Gone
Q17: The following is a legal C++ enumeration
Q21: No arithmetic operations are allowed on the
Q22: The string expression strVar._ starts at index
Q26: The string expression strVar._ inserts all the
Q30: Consider the following statements: After the statement
Q33: In C++, _ is a reserved word.<br>A)
Q34: Consider the following statements: string str1 =
Q39: Suppose that str1, str2, and str3 are