Font size
WorksheetsGreenfoot GCSE
Total questions: 21
Worksheet time: 9mins
What is missing from this code?
;
(
{
:
Classic error. How do you fix it?
Add a { at the end
Add a } at the end
Control+shift+i to re-order the indentation
Move it all into the act method
Which operations are needed to remove an actor from the world? (In order)
Which code is required to allow interaction with the actor and user?
Which code will make an actor move randomly?
How are comments made within Java Greenfoot? Pick 2:
same as python, with #
//
*
*//
Which of these codes would allow an actor to move?
move (1) ;
move (1)
move ();
move ()
I want to play a sound called pop.wav. What is the correct command?
In the image, what are World and Actor both examples of?
Superclass
Subclass
Parameter
Private property
Comment
In the image, what are Ground and WaterTrap both examples of?
Superclass
Subclass
Parameter
Private property
Comment
Your program looks like this - what is wrong?
You need to press the compile button
Everything is broken
Which answer increases the counter by 1?
A method is...
A way of calculating things in Java
A strategy for programming
A predefined set of instructions in a class
A way to sore details in a class
In the image, what is the text an example of?
Superclass
Subclass
Parameter
Private property
Comment
Which of the following is the correct way to implement an IF statement that detects if an object is touching another object?
if(isTouching(example.class)) {
}
(isTouching(example.class)) {
}
if(isTouching(example.class)) [
]
(isTouching()) {
example.class
}
