Can’t find an answer?

Can’t find an answer?

Ask us to get the answer

We ___________________ to an abstract class.

(a) Can create pointers

(b) Can create references

(c) Can create pointers or references

(d) Can’t create any reference, pointer or instance

Which among the following is an important use of abstract classes?

(a) Header files

(b) Class Libraries

(c) Class definitions

(d) Class inheritance

How many base classes can a single derived class have in C++?

(a) 1

(b) 2

(c) 3

(d) As many as required

How many abstract classes can a single program contain?

(a) At most 1

(b) At least 1

(c) At most 127

(d) As many as required

Is it necessary that all the abstract methods must be defined from an abstract class?

(a) Yes, depending on code

(b) Yes, always

(c) No, never

(d) No, if function is not used, no definition is required

How many types of inheritance are supported in C++ for deriving a class?

(a) 1

(b) 2

(c) 3

(d) 4

How many derived class can a single base class have?

(a) 1

(b) 2

(c) 3

(d) As many are required

Which members can never be accessed in derived class from the base class?

(a) Private

(b) Protected

(c) Public

(d) All except private

Which among the following is inherited by a derived class from base class?

(a) Data members only

(b) Member functions only

(c) All the members except private members

(d) All the members of base class

If there is a derived class in a program, how many classes must be in that program?

(a) 1

(b) 2

(c) 3

(d) 4

Viewing 9 topics - 46 through 54 (of 54 total)

1 2 3 4
  • You must be logged in to create new topics.