wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

OOP 1 Undiksha

Total questions: 13

Worksheet time: 5mins

Name
Class
Date
1.

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 program

2.
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
3.
Which of the following concepts of OOPS means exposing only necessary information to client?
a)
Encapsulation
b)
Abstraction
c)
Data hiding
d)
Data binding
4.
Which one is not the basic element of OOP?
a)
Class
b)
Abstraction
c)
BlueJ
d)
Polymorphism
5.
These have identitystate, and behavior.
a)
class
b)
object
c)
method
d)
void
6.
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.
7.
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.
8.

A class member declared protected becomes a member of subclass of which type?

a)

public member

b)

private member

c)

protected member

d)

static member

9.
The wrapping up of data and functions into a single unit is called
a)
overloading
b)
class
c)
object
d)
encapsulation 
10.
What do these mean?
a)
Private
b)
Public
c)
Protected
11.
A dog class has sleep.  What is this? 
a)
Field
b)
Object
c)
Member function
d)
Variable
12.
Class or object?
a)
Class
b)
Object
13.

What is the return type of Constructors?

a)

int

b)

float

c)

void

d)

none of the mentioned