Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

bartleby

Concept explainers

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
expand button
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
expand button
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
Check Mark
Knowledge Booster
Background pattern image
Computer Science
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
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education