You are on page 1of 7

1.

In Greenfoot, you will not receive an error message if your code is inc
orrect. It will simply not work, and you will have to determine why the code doe
sn't work. True or false?
Mark for Review
(1) Points
True
False (*)

Correct

Correct

2.
Which of the following demonstrates a Greenfoot subclas
s/superclass relationship?
Mark for Review
(1) Points
A single person is a superclass of the human subclass.
A dog is a subclass of the cat superclass.
A rose is a subclass of the flower superclass. (*)
A computer is a subclass of a video game superclass.

Incorrect

Incorrect. Refer to Section 3 Lesson 1.


3.

What does an instance of the World class do?

Mark fo

r Review
(1) Points
Provide the background scenery for the scenario. (*)
Provide the superclass for acting objects.
Provide the acting objects for the scenario.
Provide the source code for instances.

Correct

Correct

4.
class. True or false?

In Greenfoot, a subclass is a specialization of a super


Mark for Review

(1) Points
True (*)
False

Correct

Correct

5.
From your Greenfoot lessons, a scenario is a game or si
mulation implemented in Greenfoot. True or false?
Mark for Review
(1) Points
True (*)
False

Correct

Correct

6.
From your Greenfoot lessons, which axes define an object's posi
tion in a world?
Mark for Review
(1) Points
(Choose all correct answers)
w
x (*)
y (*)
z

Correct

Correct

7.
In Greenfoot, you can use comparison operators to compa
re a variable to a random number. True or false?
Mark for Review
(1) Points
True (*)
False

Correct

Correct

8.
Mark for Review
(1) Points

In Greenfoot, which keyword calls the World superclass?

world
constructor
addObject
super (*)
new

Incorrect

Incorrect. Refer to Section 3 Lesson 5.

9.
What does the following Greenfoot programming statement
tell the class to do?
if (Greenfoot.getRandomNumber(100) < 6) { turn(18); }
Mark for Review
(1) Points
If a random number is returned that is less than 6, turn 18 degrees. (*)
If a random number is returned that is less than 6, move 18 steps.
Turn 6 degrees, then turn 18 degrees.
If a random number is returned that is greater than 6, turn 18 degrees.

Incorrect

Incorrect. Refer to Section 3 Lesson 5.

10.
From your Greenfoot lessons, in an if-statement, the pr
ogramming statements written in curly brackets are executed simultaneously. True
or false?
Mark for Review
(1) Points
True

False (*)

Incorrect

Incorrect. Refer to Section 3 Lesson 3.

In a Greenfoot if-statement, the programming statements that th


e if-statement executes are written in curly brackets. True or false?
Mark fo
r Review
(1) Points
True (*)
False

Correct

Correct

12.
In the Greenfoot IDE, an instance's position is on the
x and y coordinates. True or false?
Mark for Review
(1) Points
True (*)
False

Correct

Correct
13.

r Review
(1) Points
Class
Field (*)
Syntax
Instance
Method

Correct

Correct

A variable is also known as a ____________.

Mark fo

14.
In Greenfoot, the move method expects what type of info
rmation in its parameters?
Mark for Review
(1) Points
True or false response
Degrees to turn
String statement
Integer of steps to move forward (*)

Correct

Correct

ue or false?
(1) Points

15.
In Greenfoot, the instance has a source code editor. Tr
Mark for Review

True
False (*)

Incorrect

Incorrect. Refer to Section 3 Lesson 2.

Which of the following are examples of default superclasses that are present in
a new Greenfoot scenario?
Mark for Review
(1) Points
(Choose all correct answers)
Actor (*)
World (*)
Cat
Parrot
Dog

Incorrect

Incorrect. Refer to Section 3 Lesson 1.

3.

What does an instance of the World class do?

Mark fo

r Review
(1) Points
Provide the acting objects for the scenario.
Provide the background scenery for the scenario. (*)
Provide the source code for instances.
Provide the superclass for acting objects.

Incorrect
Incorrect. Refer to Section 3 Lesson 1.
In Greenfoot, which of the following options are not possible when associating a
n image file with an instance? Mark for Review
(1) Points
Select an image from the Greenfoot library
Add a video (*)
Draw an image
Import an image

Incorrect

Incorrect. Refer to Section 3 Lesson 2.

The list below displays characteristics of a Greenfoot world constructor, except


for one. Which one should be removed? Mark for Review
(1) Points
Has no return type.
Defines the instance's size and resolution.
Has the same name as the name of the class.
Executed automatically when a new instance of the class is created.
Has a void return type. (*)

Incorrect

Incorrect. Refer to Section 3 Lesson 5.

From your Greenfoot lessons, where do you review a class's inherited me


thods? Mark for Review
(1) Points
If-statement
Inspector
Act method
Documentation (*)

Incorrect

Incorrect. Refer to Section 3 Lesson 3.