1. In Greenfoot a collision is when 2 actors touch? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
2. To execute a method in your Greenfoot game, where is it called from? Mark for Review
(1) Points
The actor class
The world
The gallery
The act method (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 6.
3. Defined methods are methods that are only created by the Greenfoot development team? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 6.
4. In Greenfoot modifying an actors constructor to accept an initial speed is a form of abstraction? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
5. Use your Greenfoot knowldege: Abstraction occurs in many different ways in programming. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
6. In Greenfoot you can only access the methods of the current class? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 9.
7. In Greenfoot, a local variable is declared at the beginning of a class. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 10.
8. Which of the following is an example of string concatenation? Mark for 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.
[Incorrect] Incorrect. Refer to Section 3 Lesson 10.
9. From your Greenfoot lessons, when do infinite loops occur? Mark for Review
(1) Points
When the end to the code isn't established. (*)
When the end to the act method isn't established.
When the loop is executed.
Only in while loops.
[Correct] Correct
10. In Greenfoot, the sound file must be saved in the scenario and written in the source code for it to play. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct 11. You cannot record unique sounds in Greenfoot. You can only use the sounds that are stored in the Greenfoot library. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 7.
12. In Greenfoot, which class has methods that allow you to get the status of the mouse? Mark for Review
(1) Points
Scenario
World
Actor
Greenfoot (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 7.
13. In Greenfoot, we typically use the act method in the class to automatically create the Actor instances when the world is initialized. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 8.
14. In Greenfoot, the == operator is used to test if two values are equal. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
15. In Greenfoot the showText() method belongs to which class? Mark for Review
(1) Points
Actor
World (*)
Greenfoot
There is no such method.
[Incorrect] Incorrect. Refer to Section 3 Lesson 8.
1. From your Greenfoot lessons, what are the ways that you can view a class's methods? Mark for Review
(1) Points
(Choose all correct answers)
By right-clicking on an instance (*)
In the Greenfoot gallery
In the class's documentation (*)
In the scenario
[Incorrect] Incorrect. Refer to Section 3 Lesson 3.
2. In Greenfoot, which of the following methods return the world that the instance lives in? Mark for Review
(1) Points
World getWorld() (*)
getRotation()
getXY()
World getClass()
[Correct] Correct
3. In Greenfoot, after a subclass is created, what has to occur before instances can be added to the scenario? Mark for Review
(1) Points
Editing of source code
Creation of an instance
Compilation (*)
Creation of source code
[Incorrect] Incorrect. Refer to Section 3 Lesson 1.
4. In Greenfoot, what happens to an instance when the Act button is clicked in the environment? Mark for Review
(1) Points
Only one instance moves until the pause button is clicked.
The instance executes all of the programming statements in their class's act method once. (*)
The class executes all of the programming statements in their instance's act method two times until the scenario is stopped.
The instance executes all of the programming statements in their class's act method two times until the scenario is stopped.
The instance executes all of the programming statements in their class's act method repeatedly until the scenario is stopped.
[Incorrect] Incorrect. Refer to Section 3 Lesson 1.
5. What does an instance of the World class do? Mark for Review
(1) Points
Provide the source code for instances.
Provide the acting objects for the scenario.
Provide the background scenery for the scenario. (*)
Provide the superclass for acting objects.
[Incorrect] Incorrect. Refer to Section 3 Lesson 1.
6. From your Greenfoot lessons, an instance inherits all of the characteristics of the class, and those characteristics cannot be changed. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 1.
7. From your Greenfoot lessons, which type of constructor can be used to automate creation of Actor instances? Mark for Review
(1) Points
Actor
Vector
World (*)
Animal
[Incorrect] Incorrect. Refer to Section 3 Lesson 5.
8. The list below displays characteristics of a Greenfoot world constructor, except for one. Which one should be removed? Mark for Review
(1) Points
Has a void return type. (*)
Has the same name as the name of the class.
Has no return type.
Defines the instance's size and resolution.
Executed automatically when a new instance of the class is created.
[Correct] Correct
9. In Greenfoot, which of the following is the correct notation for calling a method for an instance of a class? Mark for Review
(1) Points
Method-name.object-name;
class-name.method-name(parameters);
object-name.method-name(parameters); (*)
Method-name.object-name(parameters);
[Incorrect] Incorrect. Refer to Section 3 Lesson 5.
10. In Greenfoot, you can use comparison operators to compare a variable to a random number. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
11. In Greenfoot, the instance has a source code editor. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 2.
12. In Greenfoot, which of the following options are not possible when associating an image file with an instance? Mark for Review
(1) Points
Import an image
Add a video (*)
Select an image from the Greenfoot library
Draw an image
[Incorrect] Incorrect. Refer to Section 3 Lesson 2.
13. In Greenfoot, the turn method expects what type of information in its parameters? Mark for Review
(1) Points
String statement
True or false response
Parameter void
Integer of steps to move forward
Degrees to turn (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 2.
14. A variable is also known as a ____________. Mark for Review
(1) Points
Field (*)
Instance
Method
Syntax
Class
[Correct] Correct
15. In Greenfoot, you will not receive an error message if your code is incorrect. It will simply not work, and you will have to determine why the code doesn't work. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 4.
1. In Greenfoot, actor constructors can be used to create images or values and assign them to the variables. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
2. In Greenfoot, an if-statement is used to alternate between displaying two images in an instance. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
3. Which operator is used to test if values are equal? Mark for Review
(1) Points
== (*)
!>
>
<
[Correct] Correct
4. Use your Greenfoot knowldege: If an Actor class Fly has a variable defined to store the current speed, which of the following statements would successfully add a Fly and define the current speed as 2? Mark for Review
(1) Points
addObject (new Fly(), 2, 150, 150);
addObject (new Fly(), 150, 150);
addObject (new Fly(2), 150, 150); (*)
addObject (new Fly(2, 90), 150, 150);
[Incorrect] Incorrect. Refer to Section 3 Lesson 9.
5. In Greenfoot modifying an actors constructor to accept an initial speed is a form of abstraction? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
6. Abstraction occurs in many different ways in programming. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
7. In Greenfoot, arrays are a way to hold and access multiple variables, and assign different values to new instances each time the while loop executes and produces a new instance. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
8. In a Greenfoot loop constructor, which component is a counter that controls how many times the statement is executed? Mark for Review
(1) Points
Condition
While loop
Local loop
Loop variable (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 10.
9. Which of the following Greenfoot logic operators represents "not"? Mark for Review
(1) Points
! (*)
&
&&
=
[Correct] Correct
10. You cannot record unique sounds in Greenfoot. You can only use the sounds that are stored in the Greenfoot library. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 7.
11. In Greenfoot, what type of parameter does the isKeyDown method expect? Mark for Review
(1) Points
Method
String (*)
Integer
Boolean
[Incorrect] Incorrect. Refer to Section 3 Lesson 7.
12. Which method is used to play sound in your Greenfoot game? Mark for Review
(1) Points
playSound method (*)
getSound method
importSound method
findSound method
[Correct] Correct
13. From your Greenfoot lessons, to save space in the act method, you can write an entirely new method below it, called a _____________. Mark for Review
(1) Points
Instance method
World method
Class method
Code method
Defined method (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 6.
14. From your Greenfoot lessons, how do you call a defined method? Mark for Review
(1) Points
Write the method in the instance.
Write the method in the documentation.
Call the method from the act method. (*)
Write the method in the Actor class.
Write the method in the World superclass.
[Incorrect] Incorrect. Refer to Section 3 Lesson 6.
15. In Greenfoot, defined methods must be used immediately. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 6.
1. In Greenfoot, after a subclass is created and compiled, you cannot edit the subclass's source code. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 1.
2. From your Greenfoot lessons, which of the following is not a step to creating a new subclass? Mark for Review
(1) Points
Click New subclass...
Select an image for the class.
Name the class.
Right-click on a superclass.
Program the class to move forward. (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 1.
3. In Greenfoot, the Run button repeatedly executes all of the programming statements in the class's act method in sequential order until the pause button is clicked. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
4. From your Greenfoot lessons, a scenario is a game or simulation implemented in Greenfoot. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
5. The list below displays components of the Greenfoot source code editor except one. Which one should be removed? Mark for Review
(1) Points
Method body
Comments
Instance creator (*)
Class description
Documentation
[Incorrect] Incorrect. Refer to Section 3 Lesson 3.
6. From your Greenfoot lessons, what are the ways that you can view a class's methods? Mark for Review
(1) Points
(Choose all correct answers)
By right-clicking on an instance (*)
In the class's documentation (*)
In the scenario
In the Greenfoot gallery
[Incorrect] Incorrect. Refer to Section 3 Lesson 3.
7. In Greenfoot, the instance has a source code editor. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 2.
8. 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
9. In Greenfoot, which of the following options are not possible when associating an image file with an instance? Mark for Review
(1) Points
Select an image from the Greenfoot library
Add a video (*)
Import an image
Draw an image
[Incorrect] Incorrect. Refer to Section 3 Lesson 2.
10. Using the Greenfoot IDE, only five instances can be added to a scenario. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 2.
11. Which of the following type of audience should you ask to play your Greenfoot game during the testing phase? Mark for Review
(1) Points
Primary
Target (*)
Testing
Programmer
[Incorrect] Incorrect. Refer to Section 3 Lesson 4.
12. The first step to executing an if-else statement is to:____________. Mark for Review
(1) Points
Execute the else statement
Execute the if statement
Evaluate the class
Evaluate the condition (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 5.
13. What does the following Greenfoot programming statement tell the class to do?
if (Greenfoot.getRandomNumber(100) < 6) { turn(18); } Mark for Review
(1) Points
Turn 6 degrees, then turn 18 degrees.
If a random number is returned that is greater than 6, turn 18 degrees.
If a random number is returned that is less than 6, move 18 steps.
If a random number is returned that is less than 6, turn 18 degrees. (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 5.
14. From your Greenfoot lessons, classes can only use the methods they have inherited. They cannot use methods from other classes. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 5.
15. An if-else statement executes its first code block if a condition is true, and its second code block if a condition is false, but not both. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
1. What type of parameter does the Greenfoot playSound method expect? Mark for Review
(1) Points
name of a keyboard key (as String)
name of the class (as String)
name of an integer (as int)
name of a sound file (as String) (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 7.
2. In Greenfoot, the sound file must be saved in the scenario and written in the source code for it to play. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
3. From your Greenfoot lessons, the isKeyDown method is located in which class? Mark for Review
(1) Points
GreenfootImage
Actor
Greenfoot (*)
World
[Incorrect] Incorrect. Refer to Section 3 Lesson 7.
4. From your Greenfoot lessons, abstraction techniques can only be used once in a class's source code. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 9.
5. Writing more generic statements to handle the creation and positioning of many objects is one Abstraction technique? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
6. Abstraction occurs in many different ways in programming. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
7. In Greenfoot, which of the following statement is true about Defined Methods? Mark for Review
(1) Points
A defined method only relates to the World class.
A defined method is automatically executed once created.
A defined method is only relevant to the Greenfoot Development team.
A defined method must be called by your source code, normally in the Act method. (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 6.
8. Use your Greenfoot knowledge to answer the question. One reason to write a defined method in a class is to make it easier to read. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
9. From your Greenfoot lessons, how do you call a defined method? Mark for Review
(1) Points
Write the method in the documentation.
Write the method in the World superclass.
Write the method in the instance.
Write the method in the Actor class.
Call the method from the act method. (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 6.
10. In the following Greenfoot array, what statement would you write to access the "a" key?
Keynames = {"a", "b", "c", "d"}; Mark for Review
(1) Points
keynames["a" key]
keynames[2]
keynames["a"]
keynames[0] (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 10.
11. From your Greenfoot lessons, when do infinite loops occur? Mark for Review
(1) Points
When the end to the act method isn't established.
When the loop is executed.
Only in while loops.
When the end to the code isn't established. (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 10.
12. In Greenfoot, a local variable is declared at the beginning of a class. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 10.
13. Greenfoot Actor instances get their images from which of the following? Mark for Review
(1) Points
Their methods
Their class (*)
Their source code
Their image editor
[Incorrect] Incorrect. Refer to Section 3 Lesson 8.
14. Which of the following answers have the correct syntax for declaring a class variable in Greenfoot? Mark for Review
(1) Points
(Choose all correct answers)
private variable-type variable-name; (*)
public variable-name variable type;
private variable-name, variable-type;
public variable-type variable-name; (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 8.
15. Which of the following Greenfoot programming statements creates a new instance of Bee and places it at x = 140, y = 130 in the world? Mark for Review
(1) Points
addObject(new( ), 140, 130);
addObject(new Bee( ), 140, 130); (*)
new(Bee( ) 140, 130);
new(addObject(Bee ), 140, 130);
[Incorrect] Incorrect. Refer to Section 3 Lesson 8.
1. In Greenfoot, which of the following options are not possible when associating an image file with an instance? Mark for Review
(1) Points
Import an image
Draw an image
Select an image from the Greenfoot library
Add a video (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 2.
2. In Greenfoot, the instance has a source code editor. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 2.
3. 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
4. Using the Greenfoot IDE, only five instances can be added to a scenario. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 2.
5. Read the following method signature. Using your Greenfoot experience, what does this method do?
public static int getRandomNumber (int limit) Mark for Review
(1) Points
Returns a random number less than 10.
Returns a random number between zero and the parameter limit. (*)
Returns a random coordinate position in the world.
Returns a random number for instances in the animal class only.
[Incorrect] Incorrect. Refer to Section 3 Lesson 5.
6. Which of the following comparison operators represents "greater than or equal"? Mark for Review
(1) Points
>= (*)
>
= =
! =
[Correct] Correct
7. From your Greenfoot lessons, which programming statement creates a new Bee object, and places it at x = 120, y = 100 in the world? Mark for Review
(1) Points
Move(120,100);
addObject (new Bee( ), 120, 100); (*)
addWorld (new Bee( ), 120, 100);
addClass (new Bee( ), 120, 100);
[Incorrect] Incorrect. Refer to Section 3 Lesson 5.
8. From your Greenfoot lessons, when does an if-else statement execute it's second code segment? Mark for Review
(1) Points
When an instance is created.
If a condition is false. (*)
When a random number is less than 10.
If a condition is true.
After the first code segment is executed.
[Incorrect] Incorrect. Refer to Section 3 Lesson 5.
9. In Greenfoot, which of the following methods return the world that the instance lives in? Mark for Review
(1) Points
World getClass()
getRotation()
World getWorld() (*)
getXY()
[Incorrect] Incorrect. Refer to Section 3 Lesson 3.
10. In Greenfoot, which of the following methods display an object's orientation? Mark for Review
(1) Points
(Choose all correct answers)
void turn()
int getRotation() (*)
void move()
int getX() (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 3.
11. An object is an instance of a class. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
12. From your Greenfoot lessons, a scenario is a game or simulation implemented in Greenfoot. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
13. In Greenfoot, the Run button repeatedly executes all of the programming statements in the class's act method in sequential order until the pause button is clicked. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
14. Which of the following demonstrates a Greenfoot subclass/superclass relationship? Mark for Review
(1) Points
A single person is a superclass of the human subclass.
A computer is a subclass of a video game superclass.
A rose is a subclass of the flower superclass. (*)
A dog is a subclass of the cat superclass.
[Incorrect] Incorrect. Refer to Section 3 Lesson 1.
15. From your Greenfoot lessons, how do you know the program does not contain syntax errors? Mark for Review
(1) Points
Review the documentation.
Write the code.
Inspect the instances.
Compile the code. (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 4.
1. In a Greenfoot if-statement, the programming statements that the if-statement executes are written in curly brackets. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
2. The list below provides actions you can perform in the Greenfoot code editor except one. Which one should be removed? Mark for Review
(1) Points
Write and edit comments.
Write and edit source code.
Review the online Java Library documentation. (*)
Write source code to tell the class how to act in the scenario.
[Incorrect] Incorrect. Refer to Section 3 Lesson 3.
3. From your Greenfoot lessons, when does an if-else statement execute it's second code segment? Mark for Review
(1) Points
When a random number is less than 10.
When an instance is created.
If a condition is false. (*)
If a condition is true.
After the first code segment is executed.
[Incorrect] Incorrect. Refer to Section 3 Lesson 5.
4. In Greenfoot, which of the following is the correct notation for calling a method for an instance of a class? Mark for Review
(1) Points
Method-name.object-name;
Method-name.object-name(parameters);
class-name.method-name(parameters);
object-name.method-name(parameters); (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 5.
5. Use you Greenfoot knowledge: What range of numbers does the following method return?
Greenfoot.getRandomNumber(30) Mark for Review
(1) Points
A random number between 1 and 30.
A random number between 0 and 29. (*)
A random number between 1 and 29.
A random number between 0 and 30.
[Incorrect] Incorrect. Refer to Section 3 Lesson 5.
6. When a Greenfoot code segment is executed in an if-statement, each line of code is executed in sequential order. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
7. Which of the following Java syntax is used to correctly create a Bee subclass? Mark for Review
(1) Points
private Bee extends World
public class Bee extends Animal (*)
private class extends Actor
public class Bee extends World
private class extends Bee
[Incorrect] Incorrect. Refer to Section 3 Lesson 1.
8. From your Greenfoot lessons, an instance inherits all of the characteristics of the class, and those characteristics cannot be changed. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 1.
9. In Greenfoot to create a new instance of a class, you right-click on the class, then select which of the following commands in the class menu? Mark for Review
(1) Points
Remove Duke()
Inspect Duke()
Set image...
New subclass...
new Duke() (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 1.
10. In Greenfoot, what happens to an instance when the Act button is clicked in the environment? Mark for Review
(1) Points
The instance executes all of the programming statements in their class's act method once. (*)
The instance executes all of the programming statements in their class's act method repeatedly until the scenario is stopped.
The class executes all of the programming statements in their instance's act method two times until the scenario is stopped.
The instance executes all of the programming statements in their class's act method two times until the scenario is stopped.
Only one instance moves until the pause button is clicked.
[Correct] Correct
11. From your Greenfoot lessons, Which of the following statements is most correct? Mark for Review
(1) Points
My program is complete when it compiles.
My program is complete when I add music to it.
My program is complete when it runs and I've tested the code. (*)
My program is complete when I add images to it.
[Incorrect] Incorrect. Refer to Section 3 Lesson 4.
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. A variable is also known as a ____________. Mark for Review
(1) Points
Class
Field (*)
Instance
Syntax
Method
[Incorrect] Incorrect. Refer to Section 3 Lesson 2.
14. In Greenfoot, the instance has a source code editor. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 2.
15. In Greenfoot, methods can be called in the act method. When the Act button is clicked in the environment, the methods in the method body of the act method are executed. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
(1) Points
True (*)
False
[Correct] Correct
2. To execute a method in your Greenfoot game, where is it called from? Mark for Review
(1) Points
The actor class
The world
The gallery
The act method (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 6.
3. Defined methods are methods that are only created by the Greenfoot development team? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 6.
4. In Greenfoot modifying an actors constructor to accept an initial speed is a form of abstraction? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
5. Use your Greenfoot knowldege: Abstraction occurs in many different ways in programming. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
6. In Greenfoot you can only access the methods of the current class? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 9.
7. In Greenfoot, a local variable is declared at the beginning of a class. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 10.
8. Which of the following is an example of string concatenation? Mark for 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.
[Incorrect] Incorrect. Refer to Section 3 Lesson 10.
9. From your Greenfoot lessons, when do infinite loops occur? Mark for Review
(1) Points
When the end to the code isn't established. (*)
When the end to the act method isn't established.
When the loop is executed.
Only in while loops.
[Correct] Correct
10. In Greenfoot, the sound file must be saved in the scenario and written in the source code for it to play. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct 11. You cannot record unique sounds in Greenfoot. You can only use the sounds that are stored in the Greenfoot library. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 7.
12. In Greenfoot, which class has methods that allow you to get the status of the mouse? Mark for Review
(1) Points
Scenario
World
Actor
Greenfoot (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 7.
13. In Greenfoot, we typically use the act method in the class to automatically create the Actor instances when the world is initialized. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 8.
14. In Greenfoot, the == operator is used to test if two values are equal. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
15. In Greenfoot the showText() method belongs to which class? Mark for Review
(1) Points
Actor
World (*)
Greenfoot
There is no such method.
[Incorrect] Incorrect. Refer to Section 3 Lesson 8.
1. From your Greenfoot lessons, what are the ways that you can view a class's methods? Mark for Review
(1) Points
(Choose all correct answers)
By right-clicking on an instance (*)
In the Greenfoot gallery
In the class's documentation (*)
In the scenario
[Incorrect] Incorrect. Refer to Section 3 Lesson 3.
2. In Greenfoot, which of the following methods return the world that the instance lives in? Mark for Review
(1) Points
World getWorld() (*)
getRotation()
getXY()
World getClass()
[Correct] Correct
3. In Greenfoot, after a subclass is created, what has to occur before instances can be added to the scenario? Mark for Review
(1) Points
Editing of source code
Creation of an instance
Compilation (*)
Creation of source code
[Incorrect] Incorrect. Refer to Section 3 Lesson 1.
4. In Greenfoot, what happens to an instance when the Act button is clicked in the environment? Mark for Review
(1) Points
Only one instance moves until the pause button is clicked.
The instance executes all of the programming statements in their class's act method once. (*)
The class executes all of the programming statements in their instance's act method two times until the scenario is stopped.
The instance executes all of the programming statements in their class's act method two times until the scenario is stopped.
The instance executes all of the programming statements in their class's act method repeatedly until the scenario is stopped.
[Incorrect] Incorrect. Refer to Section 3 Lesson 1.
5. What does an instance of the World class do? Mark for Review
(1) Points
Provide the source code for instances.
Provide the acting objects for the scenario.
Provide the background scenery for the scenario. (*)
Provide the superclass for acting objects.
[Incorrect] Incorrect. Refer to Section 3 Lesson 1.
6. From your Greenfoot lessons, an instance inherits all of the characteristics of the class, and those characteristics cannot be changed. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 1.
7. From your Greenfoot lessons, which type of constructor can be used to automate creation of Actor instances? Mark for Review
(1) Points
Actor
Vector
World (*)
Animal
[Incorrect] Incorrect. Refer to Section 3 Lesson 5.
8. The list below displays characteristics of a Greenfoot world constructor, except for one. Which one should be removed? Mark for Review
(1) Points
Has a void return type. (*)
Has the same name as the name of the class.
Has no return type.
Defines the instance's size and resolution.
Executed automatically when a new instance of the class is created.
[Correct] Correct
9. In Greenfoot, which of the following is the correct notation for calling a method for an instance of a class? Mark for Review
(1) Points
Method-name.object-name;
class-name.method-name(parameters);
object-name.method-name(parameters); (*)
Method-name.object-name(parameters);
[Incorrect] Incorrect. Refer to Section 3 Lesson 5.
10. In Greenfoot, you can use comparison operators to compare a variable to a random number. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
11. In Greenfoot, the instance has a source code editor. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 2.
12. In Greenfoot, which of the following options are not possible when associating an image file with an instance? Mark for Review
(1) Points
Import an image
Add a video (*)
Select an image from the Greenfoot library
Draw an image
[Incorrect] Incorrect. Refer to Section 3 Lesson 2.
13. In Greenfoot, the turn method expects what type of information in its parameters? Mark for Review
(1) Points
String statement
True or false response
Parameter void
Integer of steps to move forward
Degrees to turn (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 2.
14. A variable is also known as a ____________. Mark for Review
(1) Points
Field (*)
Instance
Method
Syntax
Class
[Correct] Correct
15. In Greenfoot, you will not receive an error message if your code is incorrect. It will simply not work, and you will have to determine why the code doesn't work. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 4.
1. In Greenfoot, actor constructors can be used to create images or values and assign them to the variables. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
2. In Greenfoot, an if-statement is used to alternate between displaying two images in an instance. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
3. Which operator is used to test if values are equal? Mark for Review
(1) Points
== (*)
!>
>
<
[Correct] Correct
4. Use your Greenfoot knowldege: If an Actor class Fly has a variable defined to store the current speed, which of the following statements would successfully add a Fly and define the current speed as 2? Mark for Review
(1) Points
addObject (new Fly(), 2, 150, 150);
addObject (new Fly(), 150, 150);
addObject (new Fly(2), 150, 150); (*)
addObject (new Fly(2, 90), 150, 150);
[Incorrect] Incorrect. Refer to Section 3 Lesson 9.
5. In Greenfoot modifying an actors constructor to accept an initial speed is a form of abstraction? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
6. Abstraction occurs in many different ways in programming. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
7. In Greenfoot, arrays are a way to hold and access multiple variables, and assign different values to new instances each time the while loop executes and produces a new instance. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
8. In a Greenfoot loop constructor, which component is a counter that controls how many times the statement is executed? Mark for Review
(1) Points
Condition
While loop
Local loop
Loop variable (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 10.
9. Which of the following Greenfoot logic operators represents "not"? Mark for Review
(1) Points
! (*)
&
&&
=
[Correct] Correct
10. You cannot record unique sounds in Greenfoot. You can only use the sounds that are stored in the Greenfoot library. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 7.
11. In Greenfoot, what type of parameter does the isKeyDown method expect? Mark for Review
(1) Points
Method
String (*)
Integer
Boolean
[Incorrect] Incorrect. Refer to Section 3 Lesson 7.
12. Which method is used to play sound in your Greenfoot game? Mark for Review
(1) Points
playSound method (*)
getSound method
importSound method
findSound method
[Correct] Correct
13. From your Greenfoot lessons, to save space in the act method, you can write an entirely new method below it, called a _____________. Mark for Review
(1) Points
Instance method
World method
Class method
Code method
Defined method (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 6.
14. From your Greenfoot lessons, how do you call a defined method? Mark for Review
(1) Points
Write the method in the instance.
Write the method in the documentation.
Call the method from the act method. (*)
Write the method in the Actor class.
Write the method in the World superclass.
[Incorrect] Incorrect. Refer to Section 3 Lesson 6.
15. In Greenfoot, defined methods must be used immediately. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 6.
1. In Greenfoot, after a subclass is created and compiled, you cannot edit the subclass's source code. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 1.
2. From your Greenfoot lessons, which of the following is not a step to creating a new subclass? Mark for Review
(1) Points
Click New subclass...
Select an image for the class.
Name the class.
Right-click on a superclass.
Program the class to move forward. (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 1.
3. In Greenfoot, the Run button repeatedly executes all of the programming statements in the class's act method in sequential order until the pause button is clicked. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
4. From your Greenfoot lessons, a scenario is a game or simulation implemented in Greenfoot. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
5. The list below displays components of the Greenfoot source code editor except one. Which one should be removed? Mark for Review
(1) Points
Method body
Comments
Instance creator (*)
Class description
Documentation
[Incorrect] Incorrect. Refer to Section 3 Lesson 3.
6. From your Greenfoot lessons, what are the ways that you can view a class's methods? Mark for Review
(1) Points
(Choose all correct answers)
By right-clicking on an instance (*)
In the class's documentation (*)
In the scenario
In the Greenfoot gallery
[Incorrect] Incorrect. Refer to Section 3 Lesson 3.
7. In Greenfoot, the instance has a source code editor. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 2.
8. 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
9. In Greenfoot, which of the following options are not possible when associating an image file with an instance? Mark for Review
(1) Points
Select an image from the Greenfoot library
Add a video (*)
Import an image
Draw an image
[Incorrect] Incorrect. Refer to Section 3 Lesson 2.
10. Using the Greenfoot IDE, only five instances can be added to a scenario. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 2.
11. Which of the following type of audience should you ask to play your Greenfoot game during the testing phase? Mark for Review
(1) Points
Primary
Target (*)
Testing
Programmer
[Incorrect] Incorrect. Refer to Section 3 Lesson 4.
12. The first step to executing an if-else statement is to:____________. Mark for Review
(1) Points
Execute the else statement
Execute the if statement
Evaluate the class
Evaluate the condition (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 5.
13. What does the following Greenfoot programming statement tell the class to do?
if (Greenfoot.getRandomNumber(100) < 6) { turn(18); } Mark for Review
(1) Points
Turn 6 degrees, then turn 18 degrees.
If a random number is returned that is greater than 6, turn 18 degrees.
If a random number is returned that is less than 6, move 18 steps.
If a random number is returned that is less than 6, turn 18 degrees. (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 5.
14. From your Greenfoot lessons, classes can only use the methods they have inherited. They cannot use methods from other classes. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 5.
15. An if-else statement executes its first code block if a condition is true, and its second code block if a condition is false, but not both. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
1. What type of parameter does the Greenfoot playSound method expect? Mark for Review
(1) Points
name of a keyboard key (as String)
name of the class (as String)
name of an integer (as int)
name of a sound file (as String) (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 7.
2. In Greenfoot, the sound file must be saved in the scenario and written in the source code for it to play. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
3. From your Greenfoot lessons, the isKeyDown method is located in which class? Mark for Review
(1) Points
GreenfootImage
Actor
Greenfoot (*)
World
[Incorrect] Incorrect. Refer to Section 3 Lesson 7.
4. From your Greenfoot lessons, abstraction techniques can only be used once in a class's source code. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 9.
5. Writing more generic statements to handle the creation and positioning of many objects is one Abstraction technique? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
6. Abstraction occurs in many different ways in programming. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
7. In Greenfoot, which of the following statement is true about Defined Methods? Mark for Review
(1) Points
A defined method only relates to the World class.
A defined method is automatically executed once created.
A defined method is only relevant to the Greenfoot Development team.
A defined method must be called by your source code, normally in the Act method. (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 6.
8. Use your Greenfoot knowledge to answer the question. One reason to write a defined method in a class is to make it easier to read. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
9. From your Greenfoot lessons, how do you call a defined method? Mark for Review
(1) Points
Write the method in the documentation.
Write the method in the World superclass.
Write the method in the instance.
Write the method in the Actor class.
Call the method from the act method. (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 6.
10. In the following Greenfoot array, what statement would you write to access the "a" key?
Keynames = {"a", "b", "c", "d"}; Mark for Review
(1) Points
keynames["a" key]
keynames[2]
keynames["a"]
keynames[0] (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 10.
11. From your Greenfoot lessons, when do infinite loops occur? Mark for Review
(1) Points
When the end to the act method isn't established.
When the loop is executed.
Only in while loops.
When the end to the code isn't established. (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 10.
12. In Greenfoot, a local variable is declared at the beginning of a class. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 10.
13. Greenfoot Actor instances get their images from which of the following? Mark for Review
(1) Points
Their methods
Their class (*)
Their source code
Their image editor
[Incorrect] Incorrect. Refer to Section 3 Lesson 8.
14. Which of the following answers have the correct syntax for declaring a class variable in Greenfoot? Mark for Review
(1) Points
(Choose all correct answers)
private variable-type variable-name; (*)
public variable-name variable type;
private variable-name, variable-type;
public variable-type variable-name; (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 8.
15. Which of the following Greenfoot programming statements creates a new instance of Bee and places it at x = 140, y = 130 in the world? Mark for Review
(1) Points
addObject(new( ), 140, 130);
addObject(new Bee( ), 140, 130); (*)
new(Bee( ) 140, 130);
new(addObject(Bee ), 140, 130);
[Incorrect] Incorrect. Refer to Section 3 Lesson 8.
1. In Greenfoot, which of the following options are not possible when associating an image file with an instance? Mark for Review
(1) Points
Import an image
Draw an image
Select an image from the Greenfoot library
Add a video (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 2.
2. In Greenfoot, the instance has a source code editor. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 2.
3. 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
4. Using the Greenfoot IDE, only five instances can be added to a scenario. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 2.
5. Read the following method signature. Using your Greenfoot experience, what does this method do?
public static int getRandomNumber (int limit) Mark for Review
(1) Points
Returns a random number less than 10.
Returns a random number between zero and the parameter limit. (*)
Returns a random coordinate position in the world.
Returns a random number for instances in the animal class only.
[Incorrect] Incorrect. Refer to Section 3 Lesson 5.
6. Which of the following comparison operators represents "greater than or equal"? Mark for Review
(1) Points
>= (*)
>
= =
! =
[Correct] Correct
7. From your Greenfoot lessons, which programming statement creates a new Bee object, and places it at x = 120, y = 100 in the world? Mark for Review
(1) Points
Move(120,100);
addObject (new Bee( ), 120, 100); (*)
addWorld (new Bee( ), 120, 100);
addClass (new Bee( ), 120, 100);
[Incorrect] Incorrect. Refer to Section 3 Lesson 5.
8. From your Greenfoot lessons, when does an if-else statement execute it's second code segment? Mark for Review
(1) Points
When an instance is created.
If a condition is false. (*)
When a random number is less than 10.
If a condition is true.
After the first code segment is executed.
[Incorrect] Incorrect. Refer to Section 3 Lesson 5.
9. In Greenfoot, which of the following methods return the world that the instance lives in? Mark for Review
(1) Points
World getClass()
getRotation()
World getWorld() (*)
getXY()
[Incorrect] Incorrect. Refer to Section 3 Lesson 3.
10. In Greenfoot, which of the following methods display an object's orientation? Mark for Review
(1) Points
(Choose all correct answers)
void turn()
int getRotation() (*)
void move()
int getX() (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 3.
11. An object is an instance of a class. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
12. From your Greenfoot lessons, a scenario is a game or simulation implemented in Greenfoot. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
13. In Greenfoot, the Run button repeatedly executes all of the programming statements in the class's act method in sequential order until the pause button is clicked. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
14. Which of the following demonstrates a Greenfoot subclass/superclass relationship? Mark for Review
(1) Points
A single person is a superclass of the human subclass.
A computer is a subclass of a video game superclass.
A rose is a subclass of the flower superclass. (*)
A dog is a subclass of the cat superclass.
[Incorrect] Incorrect. Refer to Section 3 Lesson 1.
15. From your Greenfoot lessons, how do you know the program does not contain syntax errors? Mark for Review
(1) Points
Review the documentation.
Write the code.
Inspect the instances.
Compile the code. (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 4.
1. In a Greenfoot if-statement, the programming statements that the if-statement executes are written in curly brackets. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
2. The list below provides actions you can perform in the Greenfoot code editor except one. Which one should be removed? Mark for Review
(1) Points
Write and edit comments.
Write and edit source code.
Review the online Java Library documentation. (*)
Write source code to tell the class how to act in the scenario.
[Incorrect] Incorrect. Refer to Section 3 Lesson 3.
3. From your Greenfoot lessons, when does an if-else statement execute it's second code segment? Mark for Review
(1) Points
When a random number is less than 10.
When an instance is created.
If a condition is false. (*)
If a condition is true.
After the first code segment is executed.
[Incorrect] Incorrect. Refer to Section 3 Lesson 5.
4. In Greenfoot, which of the following is the correct notation for calling a method for an instance of a class? Mark for Review
(1) Points
Method-name.object-name;
Method-name.object-name(parameters);
class-name.method-name(parameters);
object-name.method-name(parameters); (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 5.
5. Use you Greenfoot knowledge: What range of numbers does the following method return?
Greenfoot.getRandomNumber(30) Mark for Review
(1) Points
A random number between 1 and 30.
A random number between 0 and 29. (*)
A random number between 1 and 29.
A random number between 0 and 30.
[Incorrect] Incorrect. Refer to Section 3 Lesson 5.
6. When a Greenfoot code segment is executed in an if-statement, each line of code is executed in sequential order. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
7. Which of the following Java syntax is used to correctly create a Bee subclass? Mark for Review
(1) Points
private Bee extends World
public class Bee extends Animal (*)
private class extends Actor
public class Bee extends World
private class extends Bee
[Incorrect] Incorrect. Refer to Section 3 Lesson 1.
8. From your Greenfoot lessons, an instance inherits all of the characteristics of the class, and those characteristics cannot be changed. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 1.
9. In Greenfoot to create a new instance of a class, you right-click on the class, then select which of the following commands in the class menu? Mark for Review
(1) Points
Remove Duke()
Inspect Duke()
Set image...
New subclass...
new Duke() (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 1.
10. In Greenfoot, what happens to an instance when the Act button is clicked in the environment? Mark for Review
(1) Points
The instance executes all of the programming statements in their class's act method once. (*)
The instance executes all of the programming statements in their class's act method repeatedly until the scenario is stopped.
The class executes all of the programming statements in their instance's act method two times until the scenario is stopped.
The instance executes all of the programming statements in their class's act method two times until the scenario is stopped.
Only one instance moves until the pause button is clicked.
[Correct] Correct
11. From your Greenfoot lessons, Which of the following statements is most correct? Mark for Review
(1) Points
My program is complete when it compiles.
My program is complete when I add music to it.
My program is complete when it runs and I've tested the code. (*)
My program is complete when I add images to it.
[Incorrect] Incorrect. Refer to Section 3 Lesson 4.
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. A variable is also known as a ____________. Mark for Review
(1) Points
Class
Field (*)
Instance
Syntax
Method
[Incorrect] Incorrect. Refer to Section 3 Lesson 2.
14. In Greenfoot, the instance has a source code editor. True or false? Mark for Review
(1) Points
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 2.
15. In Greenfoot, methods can be called in the act method. When the Act button is clicked in the environment, the methods in the method body of the act method are executed. True or false? Mark for Review
(1) Points
True (*)
False
[Correct] Correct
1 komentar so far
YOU WRONG ANSWER
In Greenfoot, an if-statement is used to alternate between displaying two images in an instance. True or false?
false (*)
true
EmoticonEmoticon