Solved 100+ MCQs Object-oriented Programming
Solved 100+ MCQs Object-oriented Programming: --------------------------------------------------------------------------------------------- What will be the output of following program? #include<iostream.h> void main() { float x; x=(float)9/2; cout<<x; } 4.5 4.0 4 5 __________________________________________________________________________________ The term __________ means the ability to take many forms. Inheritance Polymorphism Member function Encapsulation _____________________________________________________________________________________ Runtime polymorphism is achieved by Friend function Virtual function Operator overloading Function overloading _____________________________________________________________________________________ Access to private data Restricted to methods of the same class Restricted to methods of other classes Avai...