5.Given the declaration enum myCatsNames {bigOrange, birthday, bugEyes, casper,
ID: 3539399 • Letter: 5
Question
5.Given the declaration
enum myCatsNames {bigOrange, birthday, bugEyes, casper,
chava, cinderella, fluffy, fubar, goldie,
lambChop, pepsi, popeye};
which of the following function headers would be appropriate for a function used to write the name of one of my cats? Answer
if (13 < 12)
cout << "Never";
else
cout << "Always"; A. writes the word Never B. writes the word Always C. won't compile since 13 is not less than 12 D. causes a runtime error since 13 is not less than 12 E. prints nothing since 13 is not less than 12 3. In designing a class, we should carefully consider the required data members and ____________. Answer A. functions B. procedures C. attributes D. methods E. definitions 4. The standard output stream is named ____________. Answer A. cout B. output C. extern D. display E. put
5.Given the declaration
enum myCatsNames {bigOrange, birthday, bugEyes, casper,
chava, cinderella, fluffy, fubar, goldie,
lambChop, pepsi, popeye};
which of the following function headers would be appropriate for a function used to write the name of one of my cats? Answer
Explanation / Answer
void counter::printIt (int what)
writes the word Always
functions
void writeName (myCatsNames name)
coutRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.