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 23

Classes refers to use of one or more classes within definition of another class, is called

Inheritance

Composition

Provision

None of them
SHOW ANSWER

A class that have no pure virtual member functions, are called

Polymorphic class

Concrete class

Base class

Abstract clas
SHOW ANSWER

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

Functions

Operations

Methods

None of them
SHOW ANSWER

 A virtual member function is a member function that can

Be overridden by a subclass

Be derived from another class

Move to any class

None of them
SHOW ANSWER

Specialization and derivation is another name of

Inheritance

Composition

Provision

Containment
SHOW ANSWER

Object-oriented programming refers to use of

Derived classes

Virtual functions

PHP scripts

Both A and B
SHOW ANSWER

A pure virtual function is initialized by

0

1

2

3

SHOW ANSWER

An abstract base class is, that have

One or more pure virtual member functions

One or more child classes

One or more functions

All of them
SHOW ANSWER

A class can serve as base class for many derived classes.

True

False
SHOW ANSWER

When a class serves as base class for many derived classes, the situation is called:

polymorphism

hierarchical inheritance

hybrid inheritance

multipath inheritance

none of these
SHOW ANSWER

When two or more classes serve as base class for a derived class, the situation is known as __________.

multiple inheritance

polymorphism


encapsulation

hierarchical inheritance

none of these
SHOW ANSWER

Multiple inheritance leaves room for a derived class to have _______ members.

dynamic

private

public

ambiguous

none of these
SHOW ANSWER

What is inheritance

Inheritance allows one class to reuse the state and behavior of another class.

It deals with dangling pointers

It deals with void pointers

It is type of class declaration
SHOW ANSWER

What is abstract class

Whose objects cant be created

Whose objects can be created

Depends on class

None of above
SHOW ANSWER

Which allows you to create a derived class that inherits properties from more than one base class?

Multilevel inheritance

Multiple inheritance

Hybrid Inheritance

Hierarchical Inheritance
SHOW ANSWER

Which feature in OOP allows reusing code?

Polymorphism

 Inheritance

 Encapsulation

 Data hiding
SHOW ANSWER

class derived: public base1, public base2 { } is an example of

Polymorphic inheritance

Multilevel inheritance

Hierarchical inheritance

Multiple inheritance
SHOW ANSWER

A class defined within another class is:

Nested class

 Inheritance

Containership

 Encapsulation
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
(){ $.colorbox({iframe:true, width:"30%", height:"370px", href: "Child.php"}); } function shosite(){ $.colorbox({iframe:true, width:"90%", height:"100%", href: "site.php"}); } //setTimeout(openColorBox, 5000);
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