Procedure Oriented Programming
Modular Programming
Object Oriented Programming
None of these
Abstraction
Encapsulation
Data hiding
Hiding complexity
Polymorphism
Inheritance
At run time
At compile time
At coding time
At execution time
. (dot)
+ (plus)
– (minus)
/ (divide)
Behaviour
Situation
Wrapping data fields with methods
Hiding data and internal methods using access modifiers in a class
Using Interfaces
All of the above
.java
.class
Both a and b
class Cat extends Animal
class Animal extends Cat
Both are correct way
None is correct way
Compilation
Multiple inheritance for classes
multiple inheritance of interface
compile time polymorphism
Class
Object
Method
Compile time
Run time
Both
None
Functions of the object
Data Members of the object
Content of an object
All of these
Composition
Method hiding
Hiding constructor
polymorphism
Compile time polymorphism
Execution time polymorphism
Multiple polymorphism
Multilevel polymorphism
class
One object is used to create one class.
One class is used to create one object.
One object can create many classes.
One class can create many objects.
JVM
Source Code
Bytecode
Program
High level Language
public
default
method overriding
method overloading
constructor overloading
operator overloading
Function overriding
Function overloading
Member Functions
Data Members