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

OOPs Concepts

Cpp Programming Quiz 53 – Which of the following statements is correct?

Question: Which of the following statements is correct?
[A]. Base class pointer cannot point to derived class.
[B]. Derived class pointer cannot point to base class.[C]. Pointer to derived class cannot be created.
[D]. Pointer to base class cannot be created.

Answer: Option B

Cpp Programming Quiz 53 – Which of the following statements is correct? Read More »

Cpp Programming, OOPs Concepts

Cpp Programming Quiz 55 – Which of the following concept of oops allows compiler to insert arguments in a function call if it is not specified?

Question: Which of the following concept of oops allows compiler to insert arguments in a function call if it is not specified?
[A]. Call by value
[B]. Call by reference[C]. Default arguments
[D]. Call by pointer

Answer: Option C

 

Cpp Programming Quiz 55 – Which of the following concept of oops allows compiler to insert arguments in a function call if it is not specified? Read More »

Cpp Programming, OOPs Concepts

Cpp Programming Quiz 57 – Which of the following concepts means waiting until runtime to determine which function to call?

Question: Which of the following concepts means waiting until runtime to determine which function to call?
[A]. Data hiding
[B]. Dynamic casting[C]. Dynamic binding
[D]. Dynamic loading

Answer: Option C

Cpp Programming Quiz 57 – Which of the following concepts means waiting until runtime to determine which function to call? Read More »

Cpp Programming, OOPs Concepts

Cpp Programming Quiz 59 – Which of the following concepts provides facility of using object of one class inside another class?

Question: Which of the following concepts provides facility of using object of one class inside another class?
[A]. Encapsulation
[B]. Abstraction[C]. Composition
[D]. Inheritance

Answer: Option C

Cpp Programming Quiz 59 – Which of the following concepts provides facility of using object of one class inside another class? Read More »

Cpp Programming, OOPs Concepts

Cpp Programming Quiz 60 – Which of the following is used to make an abstract class?

Question: Which of the following is used to make an abstract class?
[A]. Declaring it abstract using static keyword.
[B]. Declaring it abstract using virtual keyword.[C]. Making at least one member function as virtual function.
[D]. Making at least one member function as pure virtual function.

Answer: Option D

Cpp Programming Quiz 60 – Which of the following is used to make an abstract class? Read More »

Cpp Programming, OOPs Concepts