Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C++ (3) 5. (2 points) The include directive (a) tells the compiler what file to

ID: 3918210 • Letter: C

Question

C++

(3)

5. (2 points) The include directive (a) tells the compiler what file to process after the current file is finished (b) pastes the contents of the included at the directive's location (c) gives the compiler information to create symlinks between libraries. (d) is treated just like a forward declaration to help the compiler not panic. 6. (2 points) A member function for a binary operator overload has parameters (a) zero (b) one (c) two (d) None of the above 7. (2 points) A non-member function for a binary operator overload has parameters (a) zero (b) one (c) two (d) None of the above 8. (2 points) If we want to restrict a virtual function from being further overidden, which spec- ifier should be used? (a) override (b) last (c) const (d) None of the above 9. (2 points) Templates and virtual functions are very powerful tools in C++. This is because.. (a) they are tools implemented at compile time (b) they are tools implemented at run time (c) Both of the above (d) Neither of the above

Explanation / Answer

5.

The include directive gives compiler information to create symlinks between libraries.

Option c

6.

a member function for a binary operator overloaded has one parameters.

Option b

7.

a non-member function for a binary operator overloaded has two parameters.

Option c

8.

if we want to restrict a virtual function from being further overridden const specifier should be used.

Option c

9.

templates and virtual functions are very powerful tools in c++ this is because they are implemented at runtime.

Option b