Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Object Oriented Programming Quiz

Total questions: 15

Worksheet time: 15mins

Name
Class
Date
1.

What is the main focus of procedure oriented programming?

a)

Inheritance

b)

Data hiding

c)

Emphasis on doing things

d)

Objects and classes

2.

Which of the following is a disadvantage of procedure oriented programming languages?

a)

Global data access

b)

Inheritance

c)

Data hiding

d)

Polymorphism

3.

What is the fundamental idea behind the object-oriented approach?

a)

Large programs divided into smaller programs

b)

Emphasis on doing things

c)

Global data access

d)

Combining data and function into a single unit

4.

What is the term used to represent a combination of data and program that represents a real-world entity in object-oriented programming?

a)

Objects

b)

Classes

c)

Functions

d)

Inheritance

5.

What is the process by which objects of one class acquire the properties of another class called?

a)

Polymorphism

b)

Data abstraction

c)

Encapsulation

d)

Inheritance

6.

What does polymorphism in object-oriented programming refer to?

a)

Global data access

b)

Ability to take more than one form

c)

Combining data and function into a single unit

d)

Data hiding

7.

What is the term for the wrapping up of data and function into a single unit in object-oriented programming?

a)

Polymorphism

b)

Inheritance

c)

Encapsulation

d)

Data hiding

8.

Which feature of object-oriented programming allows a function or operator to be given more than one definition?

a)

Data abstraction

b)

Dynamic binding

c)

Polymorphism

d)

Message passing

9.

What is the linking of a procedure call to the code to be executed in response to the call called in object-oriented programming?

a)

Data abstraction

b)

Dynamic binding

c)

Polymorphism

d)

Message passing

10.

What is a group of objects that share common properties for data part and some program part collectively called in object-oriented programming?

a)

Objects

b)

Classes

c)

Inheritance

d)

Functions

11.

Which technique for communication between objects makes the interface description with external systems much simpler in object-oriented programming?

a)

Data hiding

b)

Dynamic binding

c)

Message passing

d)

Polymorphism

12.

What is the process by which objects of one class acquire the properties of another class in object-oriented programming?

a)

Data abstraction

b)

Encapsulation

c)

Inheritance

d)

Polymorphism

13.

What is the ability to take more than one form in object-oriented programming called?

a)

Polymorphism

b)

Dynamic binding

c)

Data hiding

d)

Message passing

14.

Which principle of object-oriented programming helps the programmer to build secure programs that can't be invaded by code in other parts of the program?

a)

Dynamic binding

b)

Data hiding

c)

Polymorphism

d)

Message passing

15.

What is the most popular application of object-oriented programming in user interface design?

a)

Windows

b)

Object oriented databases

c)

Simulation and modeling

d)

Real-Time systems