wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Quiz 1: Classes and Objects

Total questions: 10

Worksheet time: 4mins

Name
Class
Date
1.
What is this?
a)
Minion
b)
Transformer
c)
Ding Chen
d)
Power Ranger
2.
Class or object?
a)
Class
b)
Object
3.
A dog class has sleep.  What is this? 
a)
Field
b)
Object
c)
Member function
d)
Variable
4.
What do these mean?
a)
Private
b)
Public
c)
Protected
5.
 What does Encapsulation mean?
a)
Classes share stuff with subclasses
b)
Grouping fields and member functions together
c)
Making an object from a class
6.
What is this?
a)
Variable
b)
Constructor
c)
Field
7.
What are these?
a)
Getter and setter methods
b)
Constructors
c)
Fields
8.
An object is an _________ of a class.
a)
iteration
b)
inheritance
c)
instance
9.
How do you make an instance of the Animal class?
a)
Animal anim = new Animal();
b)
Animal = new Animal();
c)
Animal anim = new Animal;
10.
Who is this?
a)
Lloyd's girlfriend
b)
Lloyd's girlfriend
c)
Lloyd's girlfriend
d)
Angelababy