Escolar Documentos
Profissional Documentos
Cultura Documentos
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
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?
(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
world
constructor
addObject
super (*)
new
Incorrect
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
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
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
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
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
3.
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
Incorrect