wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Object Oriented Programming Assessment 1

Total questions: 15

Worksheet time: 7mins

Name
Class
Date
1.

Which definition best describes an object?

a)

Instance of a class

b)

Instance of itself

c)

Child of a class

d)

Overview of a class

2.

In a class, member variables are often called its _________, and its member functions are sometimes referred to as its behaviour, or ____________.

a)

data, activities

b)

attributes, activities

c)

attributes, activities

d)

attributes, methods

3.

An Object can be declared prior to the class definition.

a)

False

b)

True

4.

Select the features of Object Oriented Programming.

a)

Encapsulation

b)

Polymorphism

c)

Inheritance

d)

Abstraction

e)

All of the Above

5.

How many classes can be defined in a single program?

a)

As many as you want

b)

Only 1

c)

Only 100

d)

Only 999

6.

Which is not feature of OOP in general definitions?

a)

Modularity

b)

Code reusability

c)

Duplicate/Redundant data

d)

Efficient Code

7.

What is the First OOP Languages?

a)

Python

b)

Pearl

c)

Scala

d)

Simula

8.

Which of the following best defines a class?

a)

Instance of an object

b)

Parent of an object

c)

Scope of an object

d)

Blueprint of an object

9.

Which of the following concepts of OOPS means exposing only necessary information to client?

a)

Encapsulation

b)

Abstraction

c)

Data Hiding

d)

Data Binding

10.

These have identitystate, and behavior.

a)

class

b)

object

c)

method

d)

void

11.

The wrapping up of data and functions into a single unit is called:

a)

overloading

b)

encapsulation 

c)

object

d)

class

12.

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.

13.

A single object can also be referred to as an...

a)

Instance

b)

Object

c)

Singular

d)

Singular Object

14.

Which of the two features match each other?

a)

Inheritance and Encapsulation

b)

Encapsulation and Polymorphism

c)

Encapsulation and Abstraction

d)

Abstraction and Polymorphism

15.

A software object's behavior is exposed through ___.

a)

Methods

b)

Abstraction

c)

Inheritance

d)

Encapsulation