Exam2_08.3 - Month f(Month& m{return Month(m 1 what...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
12. using namespace std; a. tells the compiler to look for std::foo if foo is not defined b. tells the linker to look for foo if std::foo is not defined c. can also be written as using std namespace; d. all of the above e. none of the above 13. An invariant a. is a rule for what constitutes a valid value b. is indicated by the keyword inv c. can change when operator++ is invoked d. a and b e. b and c 14. A function activation record a. contains a count of how many times the function has been called b. does not contain the function's local variables c. does not contain the function's arguments d. is created when a function is called that is not inlined e. none of the above 15. Given the code enum Month{jan=1,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec};
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Month f(Month& m){return Month((m%12) + 1);} what does f(Month::dec) return? a. Month::dec b. Month::jan c. Month::feb d. Month::mar e. none of the above 16. The keyword static on a local variable a. indicates that it contains a random garbage value b. indicates that it is created every time the function is entered c. indicates that it is only created the first time the function is entered d. is only allowed inside a class definition e. none of the above 17. Default initialization a. is automatically provided for string and vector b. is not guaranteed for built-in types c. for global variables is 0 d. all of the above e. none of the above...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online