Professional Documents
Culture Documents
(1) Points
True (*)
False
Correct
2.Which actor method is used to detect a simple collision? Mark for Review
(1) Points
hasCollided()
hasTouched()
isCollision()
isInContactWith()
isTouching() (*)
3.In Greenfoot, a way to have all subclasses of a superclass inherit a Mark for Review
method is by adding the method to the superclass. True or false?
(1) Points
True (*)
False
Correct
4.In Greenfoot, the sound file must be saved in the scenario and Mark for Review
written in the source code for it to play. True or false?
(1) Points
True (*)
False
Correct
5.In Greenfoot when you use the method to retrieve input from the Mark for Review
user, the scenario will continue to run in the background?
(1) Points
True
False (*)
Correct
6.In Mark for Review
Greenfoot,
you can (1) Points
only
interact
with the
scenario
using a
keyboard.
True
False (*)
7. In Greenfoot, the == operator is used to test if two values Mark for Review
are equal. True or false?
(1) Points
True (*)
False
Correct
True (*)
False
Correct
(1) Points
Duke.stop( );
Game.stop(1);
Greenfoot.stop( ); (*)
Class.stop( );
Correct
10. In Greenfoot, you can cast an Actor class to a World Mark for Review
class?
(1) Points
True
False (*)
True (*)
False
Correct
13. From your Greenfoot lessons, when do infinite loops Mark for Review
occur?
(1) Points
14. In Greenfoot, when is a local variable most often used? Mark for Review
(1) Points
15. In Greenfoot, what type of symbol is used to connect Mark for Review
boolean expressions?
(1) Points
True (*)
False
Correct
2. Which one of the following can be used to detect when 2 actors Mark for
collide?
Review
(1) Points
isCollision()
isTouching() (*)
hasCollided()
isContact()
3. From your Greenfoot lessons, to save space in the act method, Mark for
you can write an entirely new method below it, called a
_____________.
Review
(1) Points
Instance method
Class method
World method
Code method
4. In Greenfoot you can interact with the scenario using a mouse. Mark for
Review
(1) Points
True (*)
False
Correct
5. You cannot record unique sounds in Greenfoot. You can only use Mark for
the sounds that are stored in the Greenfoot library. True or false?
Review
(1) Points
True
False (*)
Correct
6. In Mark for Review
Greenfoot
, what
type of (1) Points
paramete
r does the
isKeyDow
n method
expect?
String (*)
Boolean
Method
Integer
Correct
7. Which of the following answers have the correct syntax for Mark for
declaring a class variable in Greenfoot?
Review
(1) Points
Correct
super(2,300,300);
super(300,300,2); (*)
Super(300,300,2);
9. In Greenfoot, a constructor has a void return type. True or false? Mark for
Review
(1) Points
True
False (*)
Review
(1) Points
Initialising a variable
Correct
12. From your Greenfoot lessons, abstraction techniques can only be Mark for
used once in a class's source code. True or false?
Review
(1) Points
True
False (*)
Correct
13. If an end to a while loop is not established, what happens? Mark for
Review
(1) Points
Correct
14. In Greenfoot, what is a common letter used for the loop variable? Mark for
Review
(1) Points
I (*)
Review
(1) Points
Instead of entering ".png" after each image file name, add &&
".png" after the imageName value in the programming
statement.
Instead of entering ".png" after each image file name, add
".png" after the imageName value in the programming
statement.
Instead of entering ".png" after each image file name, add +
".png" after the imageName value in the programming
statement. (*)
Instead of entering ".png" after each image file name, add =
".png" after the imageName value in the programming
statement.
Correct
1. In Mark for Review
Greenfoo
t, a way
to have (1) Points
all
subclasse
s of a
superclas
s inherit
a method
is by
adding
the
method
to the
superclas
s. True or
false?
True (*)
False
Correct
Review
(1) Points
hasTouched()
isInContactWith()
isTouching() (*)
isCollision()
hasCollided()
Correct
Review
(1) Points
The gallery
The world
Correct
4. In Greenfoot, what type of parameter does the isKeyDown method Mark for
expect?
Review
(1) Points
Boolean
Integer
Method
String (*)
Correct
5. Which method is used to play sound in your Greenfoot game? Mark for
Review
(1) Points
importSound method
getSound method
findSound method
Correct
6. From Mark for Review
your
Greenfoo
t lessons, (1) Points
the
isKeyDow
n method
is located
in which
class?
World
Actor
Greenfoot (*)
GreenfootImage
Correct
Review
(1) Points
Correct
Review
(1) Points
True (*)
False
Correct
Review
(1) Points
True (*)
False
Correct