Hi, So My C++ professor gave us a 50 question bonus assignment and if anyone in the class submits the test and gets all of them right he will give everyone in the class a bonus point and bake cookies to bring to the final exam (awesome right?)
I have almost all of the questions figured out except for 3, and was wondering if you could help me on the ones I am iffy on
7.) To overload the increment operator to allow both pre-increment and post-increment usage, each overloaded operator function must have a distinct signature so the compiler will be able to determine which version of ++ is intended. (T/F)
I put true
31.) A pure virtual function is a member function (more than one)
a) Whose declaration ends with = 0.
b) That is used in a derived class only.
c) That is used in a base class
d) Takes no arguments
e) Member form that is used to force all derived classes to implement that member function or be a pure virtual function member of the derived class.
I was deciding between C and E
43.) In the template prefix, template<class T>, what kinds of variables is the parameter T?
a) T must be a type built into C++ such as int or double.
b) T must not be a class.
c) T must be a class.
d) T can be any type, whether built into C++ or programmer defined.
e) T can be any type, whether built into C++ or programmer defined, but subject to restrictions (types must have features used in the code)
Technically yes, but considering we have 250 total points in the class the bonus point really doesn't really matter, I just really want to see my professor bake cookies for the class.
You do realize that he/she's going to probably just hand you CDs with browser cookies burned on them, right? (Just kidding)
Most of these questions can be solved with a quick read through your text book (hopefully). Most of the regulars here will refuse to give you the answers (including me), but I'm sure you can answer them on your own. Good luck!