cdac cpp endmodule practice questions page 5

CDAC Oops With C++ Practice Questions

41. What is the main purpose of creating an abstract base class ?

Show Answer ?

42. The size of the object of the class is

Show Answer ?

43. Is implementation of virtual function is efficient to achieve a goal as compared with implementation of non-virtual function?

Show Answer ?

44. When a derived class fails to override a virtual function, then

Show Answer ?

45. In C++, a function contained within a class is called ____________

Show Answer ?

46. Anonymous union means

Show Answer ?

47. If a class D is derived from class A and class B is derived from class D, then it is called as

Show Answer ?

48. Variables are to data types as

Show Answer ?

49. In inheritance __________

Show Answer ?

50. The idea behind virtual functions is to _______ the derived class object’s address into a pointer to a base class object

Show Answer ?