NEW
Font size
S
M
L
XL
WorksheetsOOP
Total questions: 10
Worksheet time: 4mins
Name
Class
Date
1.
Which of the following concepts of OOPS means exposing only necessary information to client?
a)
Encapsulation
b)
Abstraction
c)
Data hiding
d)
Data binding
2.
What is the difference between a class and an object?
a)
A class is a blueprint to make an object
b)
An object is a blueprint to make a class
c)
A blueprint is an object to make a class
d)
Blueprint class is an object make a
3.
How many objects can be made from a class?
a)
None, you make classes from objects
b)
one
c)
As many as you want
d)
All of the above
4.
Which one is not the basic element of OOP?
a)
Class
b)
Abstraction
c)
BlueJ
d)
Polymorphism
5.
An object is an instance of a:
a)
parameter
b)
method
c)
class
d)
application
6.
These have identity, state, and behavior.
a)
class
b)
object
c)
method
d)
void
7.
As a blueprint is a design for a house, a class is a design for a(n):
a)
object
b)
variable
c)
constant
d)
statement
8.
The wrapping up of data and functions into a single unit is called
a)
overloading
b)
class
c)
object
d)
encapsulation
9.
Which of the following statements is incorrect?
a)
Class is an object factory
b)
Class is a composite type.
c)
Class is an instance of an object.
d)
Class is a user defined type.
10.
Procedure oriented Programming is also known as modular programming.
a)
True
b)
False
Reset
