Greenfoot Flashcards
What is the mechanism to pass additional data to a method by including data in parenthesis?
A parameter
What is the file extension for Greenfoot?
.wave
What type of variable is: isSharktouching?
Boolean
If you have an error in Greenfoot and it says “reached the end of file while parsing”, what error have you made?
Haven’t put curly brackets or too many curly brackets.
To keep a score in a game, you would need a?
Integer
The code used in Greenfoot is from which source?
Java
What type of data is used for text?
String
A string requires _____. What is the missing word?
speech marks / “ “
Which co-ordinate is used to move left and right/ up and down?
1) x
2) y
What image file extension is used in Greenfoot?
.jpg and .png
What will not return an image type in Greenfoot?
Void
True or False? Greenfoot has its own sound recorder
True
Variables and method names typically start with _____ case letters. What word fills the gap?
Lower
move(-5), Will this move right or left?
Left
Pressing ctrl + ____ shows the different code types you can input. What word fills in the gap?
space
What is used in the end of a statement in Greenfoot and Java?
A semi-colon.
What is dot notation?
Dot notation in Greenfoot is a way to tell an object to do something or get information from it by connecting the object to the thing you want with a dot (.) e.g.
actor.move(5);
What colour is your GAME code?
Green
What is written by the user which, even if you make mistakes in, the computer does not show any errors or doesn’t do anything?
A comment
What stores value in a variable?
Equals sign
Definitions of the following words:
Greenfoot program
Class
Objects
Abstract class
Methods
Greenfoot program: IDE - Integrated Development Environment
Class: blueprint for objects
Objects: instances of a class
Abstract class: no objects are directly created from this type of class
Methods: actions, behaviours or command for an object
void setDirection(int direction)” is called the ________ of the method. Fill in the gap.
Signature
What version of Greenfoot do we use?
2.4.2
Single line comment tags are written with _____
//