You are on page 1of 4

Section 1

1. 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 instance executes all of the programming statements in their class's act
method repeatedly 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 class executes all of the programming statements in their instance's act
method two times until the scenario is stopped.
Incorrect. Refer to Section 3 Lesson 1.

2. 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 Mark for Review
clicked. True or false? (1) Points

True (*)

False

Correct

3. An object is an instance of a class. True or false?


Mark for Review
(1) Points
True (*)

False

Incorrect. Refer to Section 3 Lesson 1.

4. In Greenfoot, the class holds the general attributes of an instance, such as the
methods it inherits. True or false? Mark for Review
(1) Points
True (*)

False

Incorrect. Refer to Section 3 Lesson 1.

5. A subclass has what kind of relationship to a superclass?


Mark for Review
(1) Points
"for-what"

"a-is"

"is-a" (*)

"is-by"

Incorrect. Refer to Section 3 Lesson 1.

6. What does an instance of the World class do?


Mark for Review
(1) Points
Provide the acting objects for the scenario.
Provide the background scenery for the scenario. (*)

Provide the superclass for acting objects.

Provide the source code for instances.

Incorrect. Refer to Section 3 Lesson 1.

7. In Greenfoot, after a subclass is created, what has to occur before instances can be
added to the scenario? Mark for Review
(1) Points
Creation of an instance

Compilation (*)

Creation of source code

Editing of source code

Incorrect. Refer to Section 3 Lesson 1.

8. 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. Refer to Section 3 Lesson 1.


Section 1
(Answer all questions in this section)
1. In Greenfoot, the move method expects what type of information in its
parameters? Mark for Review
(1) Points
Degrees to turn

True or false response

String statement

Integer of steps to move forward (*)

Incorrect. Refer to Section 3 Lesson 2.

2. In Greenfoot, the turn method expects what type of information in its


parameters? Mark for Review
(1) Points
Degrees to turn (*)

True or false response

String statement

Integer of steps to move forward

Parameter void

Incorrect. Refer to Section 3 Lesson 2.

3. Using the Greenfoot IDE, only five instances can be added to a scenario. True or
false? Mark for Review
(1) Points
True

False (*)

Incorrect. Refer to Section 3 Lesson 2.

4. In Greenfoot, the instance has a source code editor. True or false?


Mark for Review
(1) Points
True

False (*)

Incorrect. Refer to Section 3 Lesson 2.

5. 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

6. In Greenfoot, which of the following options are not possible when associating an
image file with an instance? Mark for Review
(1) Points
Add a video (*)

Draw an image
Import an image

Select an image from the Greenfoot library

Incorrect. Refer to Section 3 Lesson 2.

7. An instance variable can be saved and accessed later, even if the instance no
longer exists. True or false? Mark for Review
(1) Points
True

False (*)

Incorrect. Refer to Section 3 Lesson 2.

8. A variable is also known as a ____________.


Mark for Review
(1) Points
Instance

Class

Field (*)

Syntax

Method

Correct

9. In Greenfoot, the body of the method is located in between which of the following
characters? Mark for Review
(1) Points
Parnetheses ( )

Curly brackets { } (*)

Square brackets [ ]

Asterisks **

Correct

10. 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 Mark for Review
are executed. True or false? (1) Points

True (*)

False

Incorrect. Refer to Section 3 Lesson 2.

You might also like