wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Chapter 1

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which programming language is oriented towards objects?

a)

BCPL

b)

B

c)

C

d)

C++

2.

In programming terms, objects consist of data, code, and connections.

a)

TRUE

b)

FALSE

3.

In the following code, which point(s) CAN BE REMOVED yet the program can still work?

a)

(1)

b)

(3)

c)

(2) AND (3)

d)

(1) AND (4)

4.

Which item is referring to the object's data attributes?

a)

1

b)

2

c)

3

d)

4

5.

Which of the given code can be used in "?" ?

a)

BOTH

b)

"class" only

c)

"struct" only

6.

Which of these are NOT a basic concept of Object Oriented Programming?

a)

Data Abstraction and Data Encapsulation

b)

Data Classification and Anthropomorphism

c)

Inheritance and Anthropomorphism

d)

Data Encapsulation and Polymorphism

7.

An object in a program is an abstraction from a real world object.

a)

True

b)

False

8.

Why does the concept of data encapsulation lead to Data Hiding?

a)

The concept refers to keeping the data safe from outside misuse.

b)

The concept refers to limiting the type of data that can be set as member.

c)

The concept refers to making it easy for a user to see and use all of the data.

d)

The concept refers to allowing easy deployment of security applications

9.

Identify the concepts of 1, 2, and 3.

a)

1: Base Class

2: Sub Class

3: Sub Sub Class

b)

1: Sub Class

2: Sub Sub Class 2

3: Objects

c)

1: Base Class

2: Sub Class

3: Objects

d)

1: Base Class

2: Objects

3: Sub Objects

10.

One of the advantage of OOP is the ability to add on to existing codes based on needs of a new program.

a)

True

b)

False