Sei sulla pagina 1di 9

In

Greenfoot,
what
happens to
an instance
when the
Act button
is clicked in
the
environmen
t?

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.
Correct
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 clicked. True or false?

Mark for
Review
(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
Correct
5. A subclass has what kind of relationship to a
superclass?

Mark for
Review
(1) Points

"for-what"
"a-is"
"is-a" (*)
"is-by"
Correct
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
Correct
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 (*)

Correct

3.2
In Greenfoot, the move method expects what type of information in its
1. parameters?

Mark for Rev


(1) Points

2. In Greenfoot, the

3. Using the Greenfo

4. In Greenfoot, the

5. In the Greenfoot I

6. In Greenfoot, whic

7. An instance variab

8. A variable is also

9. In Greenfoot, the

10. In Greenfoot, met

Section 1
(Answer all questions in this section)
1. From your Greenfoot lessons, the __________ control structure is used to
compare and make a decision.

Mark for
Review
(1) Points

Conditional (*)
Repetition
Obsolete
Rewind
Correct
2. From your Greenfoot lessons, the __________ control structure is often referred
to as loops.

Mark for
Review
(1) Points

Conditional
Repetition (*)
Obsolete
Rewind
Correct
3. The construct listed below is described as a __________________.
/**
* Get value and store in variable
*/

Mark for
Review
(1) Points

Method
Comment (*)
Variable Assignment
Instruction
Correct
4. The construct listed below is described as a __________________.
termvar = scanterm.nextLine();

Method

Mark for
Review
(1) Points

Comment
Variable Assignment (*)
Instruction
Incorrect. Refer to Section 3 Lesson 12.
5. What is wrong with the following line of code?
System.out.println(termvar + '; '+ termdef);

Mark for
Review
(1) Points

There are parenthesis instead of brackets.


There are parenthesis instead of curly braces.
There are single quotes instead of double quotes. (*)
The command is incorrectly capitalized.
Nothing is wrong with the code.
Correct
6. Which line of code contains a syntax error?

Mark for
Review
(1) Points

2
3 (*)
4
5
6
Correct
7. In which step to create a Greenfoot game do you find and resolve errors in the
game?

Mark for
Review
(1) Points

Define the problem


Design the solution

Program the solution


Test the solution (*)
Correct
8. In which step to create a Greenfoot game is the solution implemented?

Mark for
Review
(1) Points

Define the problem


Design the solution
Program the solution (*)
Test the solution
Incorrect. Refer to Section 3 Lesson 12.
9. From your Greenfoot lessons, which of the following are examples of Q/A test
variations?

Mark for
Review
(1) Points

Change the environment, change the programmer, change the execution


Change the execution, change the data, change the environment (*)
Change the environment, change the execution, change the language
All of the above.
Correct
10The variations listed below are examples of changing what part of Q/A testing?
.
Input numbers when characters are expected
Input characters when numbers are expected
Input symbols

Change the environment


Change the execution
Change the data (*)
None of the above
Correct

Mark for
Review
(1) Points

Potrebbero piacerti anche