Cpp Programming 74 – What is correct about the static data member of a class?

Question: What is correct about the static data member of a class?
[A]. A static member function can access only static data members of a class.
[B]. A static data member is shared among all the object of the class.[C]. A static data member can be accessed directly from main().
[D]. Both A and B.

Answer: Option D

Cpp Programming 75 – What happens if the base and derived class contains definition of a function with same prototype?

Question: What happens if the base and derived class contains definition of a function with same prototype?
[A]. Compiler reports an error on compilation.
[B]. Only base class function will get called irrespective of object.[C]. Only derived class function will get called irrespective of object.
[D]. Base class object will call base class function and derived class object will call derived class function.

Answer: Option D