Call
whatsapp
9447387064 | 9847003556
0471-2335855 | 8089080088 | 0471-2334855
9447387064 | 9847003556
0471-2335855 | 8089080088 | 0471-2334855
Cisco Training in Trivandrum, Trinity Technologies

No.1 Training Institute in Kerala

C++ - QUESTIONS : PART 22

What is meant by containership?

class contains objects of other class types as its members 

 class contains objects of other class types as its objects 

 both a & b 

none of the mentioned
SHOW ANSWER

What does derived class does not inherit from the base class?

constructor and destructor 

 friends 

 operator = () members 

all of the mentioned
SHOW ANSWER

Which design patterns benefit from the multiple inheritance?

Adapter and observer pattern 

Code pattern 

 Glue pattern 

None of the mentioned
SHOW ANSWER

What is meant by multiple inheritance?

Deriving a base class from derived class 

Deriving a derived class from base class 

 Deriving a derived class from more than one base class 

 None of the mentioned
SHOW ANSWER

Which symbol is used to create multiple inheritance?

Dot 

 Comma 

 Dollar 

 None of the mentioned
SHOW ANSWER

Which of the following advantages we lose by using multiple inheritance?

Dynamic binding 

 Polymorphism 

 Both a & b 

None of the mentioned
SHOW ANSWER

When the inheritance is private, the private methods in base class are __________ in the derived class (in C++).

inaccessible

 accessible

 protected

 public
SHOW ANSWER

.Composition is often referred as "has-a" relation, whereas inheritance is referred as

with-relation

is-a relationship

to-a relationship

None of them 
SHOW ANSWER

A way to reuse existing classes to create new classes, is called

Composition

Inheritance

Containment

All of them
SHOW ANSWER

Specialization and derivation is another name of

Inheritance

Composition

Provision

Containment
SHOW ANSWER

Polymorphism is achieved by

Operators

Arrays

Constructors

Virtual function
SHOW ANSWER

In object oriented programming there are two distinct views, one is consumer and second is manufacturer view, that consumer action are called

Functions

Operations

Methods

of them
SHOW ANSWER

There are how many ways to use existing classes to define a new class?

1

2

3

4

SHOW ANSWER

Composition is also called as

Containment

Provision

Aggregation

Both A and C
SHOW ANSWER

When a data member of new class is an object of another class, it is called as

New class is a composite of other objects

New class is inherited

New class is aggregate of another

None of them
SHOW ANSWER

We can define a new class from an existing class, by using

Inheritance

Composition

Constructors

Both A and B
SHOW ANSWER

C++ allows objects of different types to respond differently to same function call, is called

Inheritance

Encapsulation

Polymorphism

None of them
SHOW ANSWER

Polymorphism means

Many forms

Only one form

Hiding data

None of them
SHOW ANSWER
BACK | NEXT
TRINITY SOFTWARE SOLUTIONS,IInd floor, Radheyam Towers, Gandhari Amman Kovil Road, Pulimood, Trivandrum - 1
0471-2334855 | 2335855 | 9447387064 | 9847003556 info@trinitytechnology.in