C++ Concepts

21

The process of building new classes from existing one is called ______.

A. Polymorphism
B. Structure
C. Inheritance
D. Cascading

22

If a class C is derived from class B, which is derived from class A, all through public inheritance, then a class C member function can access

A. protected and public data only in C and B.
B. protected and public data only in C.
C. private data in A and B.
D. protected data in A and B.

23

What is the output of the following code


char symbol[3]={‘a’,‘b’,‘c’};
 for (int index=0; index<3; index++)
cout << symbol[index];


A. a b c
B. “abc”
C. abc
D. ‘abc’

24

The operator that cannot be overloaded is

A. ++
B. ::
C. ()
D. ~

25

In C++, dynamic memory allocation is accomplished with the operator ____

A. new
B. this
C. malloc()
D. delete