Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ 1. A __________ is a member function that is automatically called when a class object is __________. a. destructor, created b. static function, deallocated

C++

1. A __________ is a member function that is automatically called when a class object is __________.

a. destructor, created

b. static function, deallocated

c. None of these

d. constructor, created

e. utility function, declared

2. In object-oriented programming, the object encapsulates both the data and the functions that operate on the data. True/False

3. In OOP programming, __________ allows you to create new classes based on existing classes.

a. the copy constructor

b. function overloading

c. polymorphism

d. None of these

e. inheritance

4. A virtual function is declared by placing the __________ key word in front of the return type in the base class's function declaration.

a. public

b. static

c. None of these

d. private

e. protected

5. Map each of the keywords on the left to the statement that describes it the best.

a. Inheritance (CHOOSE)

b. Class (CHOOSE)

c. Object (CHOOSE)

d. Polymophism ( CHOOSE)

e. Instance variable (CHOOSE)

Answer Choies for 5:

image text in transcribed

[ Choose ] It allows properties and functions to be passed to another object when an object is deleted. It represents a blue print of an object. It is a category to organize variables and objects in groups. It is a variable that can store values of multiple types. It is an instance of a class. It is like a global variable that can be accessed in all functions of a program. It is used to define the relationship between classes. It allows a variable of a sub class type to be assigned an instance of a supper class type. It is a programming command with a special meaning. It is used to describe that a class includes instances of other classes. It is a property inside that class that exists throughout the lifetime of an object. It allows the information stored in a class to be acquired by another class. Classes can acquire properties and functions from other classes. It is any variable that does not represent a living being. It is a variable of a primitive type

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Foundations Technology Fundamentals For IT Success

Authors: Bob Bryla

1st Edition

0782143725, 9780782143720

More Books

Students also viewed these Databases questions

Question

5. Our efficiency focus eliminates free time for fresh thinking.

Answered: 1 week ago