wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

OOP Lesson 2

Total questions: 8

Worksheet time: 4mins

Name
Class
Date
1.

In a class diagram where does the name of the class go?

a)

middle level

b)

top level

c)

bottom level

2.

This is a template or blueprint

a)

object

b)

class

c)

method

d)

attribute

3.

take on the characteristics of the class

a)

methods

b)

class

c)

object

d)

behaviours

4.

This is the behaviour of an object of an object

a)

methods

b)

attributes

c)

variables

d)

class

5.

Methods are usually designated as

a)

private

b)

protected

c)

packaged

d)

public

6.

It is often a good idea to designate these a private

a)

classes

b)

variables

c)

methods

d)

behaviours

7.

The attributes of the parent class are found in the child class.

a)

polymorphism

b)

abstraction

c)

inheritance

d)

encapsulation

8.

A java program must be created with in a/an

a)

object

b)

variable

c)

class