WorksheetsQUIZ-I-OBJECT ORIENTED PROGRAMMING WITH C++
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.
These have identity, state, and behavior.
a)
class
b)
object
c)
method
d)
void
4.
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
5.
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.
6.
The wrapping up of data and functions into a single unit is called
a)
overloading
b)
class
c)
object
d)
encapsulation
7.
The process by which objects of one class acquire the properties of objects of another class is known as
a)
Polymorphism
b)
Inheritance
c)
Data Hiding
d)
None of the above.
8.
A single object can also be referred to as an...
a)
Object
b)
Singular Object
c)
Instance
d)
Singular
9.
Car, Fruit, Ball & Pet are all examples of potential classes?
a)
True
b)
False
10.
A dog might be an instance of the Pet class?
a)
True
b)
False
100 %
