wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Week 2 - Assessment 2

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

Type of variable that is declared inside methods, constructors, or blocks.

a)

Instance Variable

b)

Local Variable

c)

Data Variable

d)

Class Variable

2.

In order to interact with one another, the methods pass arguments.

a)

True

b)

False

3.

(a)   refers to the data properties of an object.

4.

An object is not described as the basic unit of OOP

a)

True

b)

False

5.

(a)   refers to the operations or functions of an object.

6.

A feature of OOP in which it hides the complexities of a software, and shows only the necessary functions to the user.

a)

Encapsulation

b)

Behavior

c)

Abstraction

d)

Polymorphism

7.

A programming technique that binds the class members together and prevents them from being accessed by other classes.

a)

Abstraction

b)

Attributes

c)

Initialization

d)

Encapsulation

8.

In the essence of OOP, what are the behaviors of a car

a)

drive(), submerge(), park(), reverse(), neutral

b)

park(), reverse(), neutral(), drive(), low()

c)

drive(), reverse(), walk(), park(),

d)

high(), low(), drive(), park()

9.

In creating objects, what would be the first step?

a)

Declaration

b)

Initialization

c)

Termination

d)

Instantiation

10.

(a)   refers to a set of statements group together to do a specific task.