Professional Documents
Culture Documents
Nageeb/.
20196575/CES Assignment ( 2 )
a) Parent of an object
b) Instance of an object
c) Blueprint of an object
d) Scope of an object
a) Code reusability
b) Modularity
c) Duplicate/Redundant data
d) Efficient Code
3. Pure OOP can be implemented without using class in a program. (True or False)
a) True
b) False
a) Polymorphism
b) Abstrac�on
c) Encapsula�on
d) Inheritance
a) Only 1
b) Only 100
c) Only 999
a) Code Reusability
c) Pla�orm independent
a) Machine code
b) Assembly code
c) Byte code
d) JVM code
a) Inheritance
b) Encapsula�on
c) Polymorphism
d) Compila�on
a) More than one method with same name but different method signature and different number or type of
arameters
b) More than one method with same name, same signature but different number of signature
c) More than one method with same name, same signature, same number of parameters but different type
d) More than one method with same name, same number of parameters and type but different signature
11. Which concept of Java is a way of conver�ng real world objects in terms of class?
a) Polymorphism
b) Encapsula�on
c) Abstrac�on
d) Inheritance
a) True
b) false
a) Encapsula�on
b) Abstrac�on
c) Inheritance
d) Polymorphism
a) Friend constructor
b) Copy constructor
c) Default constructor
d) Parameterized constructor
16. What is the other name used for func�ons inside a class?
a) Member variables
b) Member func�ons
c) Class func�ons
d) Class variables
17. Which of the following cannot be a friend?
a) Func�on
b) Class
c) Object
d) Operator func�on
a) Dynamic
b) Architecture Neutral
c) Use of pointers
d) Object-oriented
a) 0
b) Not a Number
c) Infinity