(A) 116 km
(B) 147 km
(C) 240 km
(D) 580 km
Author:
John is travelling on his bike and has calculated to reach point P at 4 pm if he travels at 20 kmph. He will reach there at 12 noon if he travels at 30 Kmph. At what speed must he travel to reach P at 2 pm?
(A) 12 Kmph
(B) 16 Kmph
(C) 18 Kmph
(D) 24 Kmph
In private inheritance derived class pointer can be assigned to base class pointer in?
(A) Main function
(B) In derived class member and friend functions
(C) In base class member and friend functions
(D) None of the above
In case of dynamic memory allocation in a class we should use?
(A) User defined default constructor
(B) User defined copy constructor
(C) Both of the above
(D) None of the above
Consider the code below, class class1{ public: void func1(); }; class class2 : protected class1 { }; Function func1 of class1 is __ in class2.
(A) protected
(B) public
(C) private
(D) None of the above
Only tangible things can be chosen as an object.
(A) True
(B) False
Which of the following may not be an integral part of an object?
(A) Behavior
(B) State
(C) Protected data members
(D) All of the above
If only one behaviour of a derived class is incompatible with base class, then it is?
(A) Specialization
(B) Generalization
(C) Inheritance
(D) Extension