15. If you write a function that should use call-by-reference, but forget to include the ampersand, * The program will not compile The program will not link The program will show a run-time error O...


Hi



Solve all the quastions plz


15. If you write a function that should use call-by-reference, but forget to include<br>the ampersand, *<br>The program will not compile<br>The program will not link<br>The program will show a run-time error<br>O The program will run with incorrect results<br>16. Which of the following statements correctly prints out the value that is in the<br>memory address that the pointer p1 is pointing to? *<br>cout << &p1;<br>cout << p1;<br>O cout << int* p1;<br>O cout << *p1;<br>17. Polymorphism refers to *<br>the ability to assign multiple meanings to one function name.<br>O overriding base class functions.<br>overloading functions<br>O none of the above<br>

Extracted text: 15. If you write a function that should use call-by-reference, but forget to include the ampersand, * The program will not compile The program will not link The program will show a run-time error O The program will run with incorrect results 16. Which of the following statements correctly prints out the value that is in the memory address that the pointer p1 is pointing to? * cout < &p1;="" cout="">< p1;="" o="" cout="">< int*="" p1;="" o="" cout="">< *p1;="" 17.="" polymorphism="" refers="" to="" *="" the="" ability="" to="" assign="" multiple="" meanings="" to="" one="" function="" name.="" o="" overriding="" base="" class="" functions.="" overloading="" functions="" o="" none="" of="" the="">
18. Using inheritance allows us to *<br>eliminate duplicate code<br>make our classes more modular<br>use polymorphism<br>O all of the above<br>19. If the member variables in a base class are private, then *<br>they can be directly accessed or changed in the derived class<br>the derived class must use any queries or update functions from the base class<br>making them private causes a syntax error.<br>O you must declare them in the derived class also.<br>20. When a throw statement is executed, *<br>execution of the try block stops<br>O execution of the throw block stops<br>the program always exits<br>O execution of the catch block stops<br>

Extracted text: 18. Using inheritance allows us to * eliminate duplicate code make our classes more modular use polymorphism O all of the above 19. If the member variables in a base class are private, then * they can be directly accessed or changed in the derived class the derived class must use any queries or update functions from the base class making them private causes a syntax error. O you must declare them in the derived class also. 20. When a throw statement is executed, * execution of the try block stops O execution of the throw block stops the program always exits O execution of the catch block stops

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here