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 The program will run with incorrect results

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Hi

 

Solve all the quastions plz

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 above
Transcribed Image 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 above
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
Transcribed Image 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
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Types of Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education