Greenfoot Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is the mechanism to pass additional data to a method by including data in parenthesis?

A

A parameter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the file extension for Greenfoot?

A

.wave

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What type of variable is: isSharktouching?

A

Boolean

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

If you have an error in Greenfoot and it says “reached the end of file while parsing”, what error have you made?

A

Haven’t put curly brackets or too many curly brackets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

To keep a score in a game, you would need a?

A

Integer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The code used in Greenfoot is from which source?

A

Java

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What type of data is used for text?

A

String

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A string requires _____. What is the missing word?

A

speech marks / “ “

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which co-ordinate is used to move left and right/ up and down?

A

1) x
2) y

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What image file extension is used in Greenfoot?

A

.jpg and .png

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What will not return an image type in Greenfoot?

A

Void

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

True or False? Greenfoot has its own sound recorder

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Variables and method names typically start with _____ case letters. What word fills the gap?

A

Lower

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

move(-5), Will this move right or left?

A

Left

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Pressing ctrl + ____ shows the different code types you can input. What word fills in the gap?

A

space

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is used in the end of a statement in Greenfoot and Java?

A

A semi-colon.

17
Q

What is dot notation?

A

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);

18
Q

What colour is your GAME code?

A

Green

19
Q

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

A comment

20
Q

What stores value in a variable?

A

Equals sign

21
Q

Definitions of the following words:
Greenfoot program
Class
Objects
Abstract class
Methods

A

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

22
Q

void setDirection(int direction)” is called the ________ of the method. Fill in the gap.

A

Signature

23
Q

What version of Greenfoot do we use?

A

2.4.2

24
Q

Single line comment tags are written with _____

A

//

25
Q

Classes in Greenfoot should be

A

capitalised.