Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by whitelisting our website.

Cpp Programming

Cpp Programming 81 – Which one of the following options is correct about the statement given below? The compiler checks the type of reference in the object and not the type of object.

Question: Which one of the following options is correct about the statement given below? The compiler checks the type of reference in the object and not the type of object.
[A]. Inheritance
[B]. Polymorphism[C]. Abstraction
[D]. Encapsulation

Answer: Option B

Cpp Programming 81 – Which one of the following options is correct about the statement given below? The compiler checks the type of reference in the object and not the type of object. Read More »

Cpp Programming, OOPs Concepts

Cpp Programming 83 – Which inheritance type is used in the class given below? class A : public X, public Y {}

Question: Which inheritance type is used in the class given below? class A : public X, public Y {}
[A]. Multilevel inheritance
[B]. Multiple inheritance[C]. Hybrid inheritance
[D]. Hierarchical Inheritance

Answer: Option B

Cpp Programming 83 – Which inheritance type is used in the class given below? class A : public X, public Y {} Read More »

Cpp Programming, OOPs Concepts

Cpp Programming 85 – Which of the following statement is correct?

Question: Which of the following statement is correct?
[A]. A constructor is called at the time of declaration of an object.
[B]. A constructor is called at the time of use of an object.[C]. A constructor is called at the time of declaration of a class.
[D]. A constructor is called at the time of use of a class.

Answer: Option A

Cpp Programming 85 – Which of the following statement is correct? Read More »

Cpp Programming, OOPs Concepts

Cpp Programming 86 – Which of the following factors supports the statement that reusability is a desirable feature of a language?

Question: Which of the following factors supports the statement that reusability is a desirable feature of a language?
[A]. It decreases the testing time.
[B]. It lowers the maintenance cost.[C]. It reduces the compilation time.
[D]. Both A and B.

Answer: Option D

Cpp Programming 86 – Which of the following factors supports the statement that reusability is a desirable feature of a language? Read More »

Cpp Programming, OOPs Concepts