Beruflich Dokumente
Kultur Dokumente
True
False (*)
3. In Alice, which of the following situations could benefit from declaring a new
procedure? Mark for Review
(1) Points
An object does not have a default procedure for a motion, such as swimming.
(*)
True
False (*)
Incorrect. Refer to Section 2 Lesson 3.
5. In Alice, each class has a set of pre-defined procedures and functions. True or
false? Mark for Review
(1) Points
True (*)
False
Correct
6. In
Alice, Mark for Review
how (1) Points
would
you
get the
length
of a
fish
object?
getWidth
getLength
getHeight
getDepth (*)
9. One type of object property is an object's position in the scene. True or false?
Mark for Review
(1) Points
True (*)
False
Correct
10. It is important to save often while debugging your program. True or false?
Mark for Review
(1) Points
True (*)
False
Correct
11. In Alice,
each class Mark for Review
has a set (1) Points
of pre-
defined
procedures
and
functions.
True or
false?
True (*)
False
Correct
Direction to move
Correct
13. What does a visual storyboard help the reader understand?
Mark for Review
(1) Points
True
False (*)
15. In Alice, if a procedure is declared for a clownFish class, which classes can
use the procedure? Mark for Review
(1) Points
Correct
1. As the Alice programmer, you render the animation on your own. True or false?
Mark for Review
(1) Points
True
False (*)
2. In Alice, as part of the recording process you can demonstrate the events that are
programmed within your animation. True or false? Mark for Review
(1) Points
True (*)
False
Correct
3. Which of the following elements of the Alice animation should be tested before
the animation is considered complete? Mark for Review
(1) Points
while
end (*)
begin (*)
for
Incorrect. Refer to Section 2 Lesson 10.
5. The initializer of a variable with a TextString value type could be (select all that
apply): Mark for Review
(1) Points
"Greetings" (*)
"Howdy" (*)
"4" (*)
3*3=9 (*)
If or Where
Correct
False (*)
True (*)
False
Correct
10. Which one of the following event listener types is not available at the
top-level of the addEvent drop down list in Alice? Mark for Review
(1) Points
Collision (*)
Position/Orientation
Mouse
Keyboard
Correct
11.In Alice
it is not Mark for
possible Review
to
(1) Points
transfer
a class
from
one
animati
on to
another
. True
or
false?
True
False (*)
12. Which of the following statements about what happens when the following code is
executed is false? Mark for
Review
(1) Points
The message "Printing Some Text" will be printed until loopVal is no longer
less than 5.
The variable loopVal is initialized to 0.
The condition loopVal < 5 is tested before the block is executed. (*)
Methods whose return type is not void are required to include a return
statement specifying what to return.
Java does not permit nesting one method definition within another method's
definition.
Classes must be defined directly within a method definition. (*)
The order in which methods are listed within the class is not important.
14. A typical application uses various values and these values continuously change
while the program is running. True or false? Mark for
Review
(1) Points
True (*)
False
Correct
15. If a value has been assigned to (is stored in) a variable, that value will be
overwritten when another value is assigned to the variable using the assignment Mark for
"=" operator. True or false? Review
(1) Points
True (*)
False
Correct
1. 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
2. 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 (*)
True
False (*)
4. Using the Greenfoot IDE, only five instances can be added to a scenario. True or
false? Mark for Review
(1) Points
True
False (*)
constructor
new
addObject
super (*)
world
6. The Greenfoot
method Mark for Review
getRandomNumber (1) Points
is used to create
predictable
behaviour in your
scenario
True
False (*)
True (*)
False
Correct
True (*)
False
Correct
9. 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
Programmer
Testing
Target (*)
Incorrect. Refer to Section 3 Lesson 4.
10. The list below displays components of the Greenfoot source code
editor except one. Which one should be removed? Mark for Review
(1) Points
Comments
Documentation
Method body
Class description
11. From
your Mark for Review
Greenfoot (1) Points
lessons,
where do
you
review a
class's
inherited
methods?
Documentation (*)
Act method
If-statement
Inspector
Correct
12. From your Greenfoot lessons, which of the following is not a step to
creating a new subclass? Mark for Review
(1) Points
Right-click on a superclass.
"is-a" (*)
"is-by"
"a-is"
Correct
True (*)
False
Correct
True (*)
False
Correct
1. An array is an object that holds multiple methods. True or false?
Mark for Review
(1) Points
True
False (*)
2. From your Greenfoot lessons, which of the following logic operators represents
"and"? Mark for Review
(1) Points
&
&& (*)
Condition
While loop
Local loop
Actor
Class
GreenfootImage
Greenfoot (*)
Incorrect. Refer to Section 3 Lesson 8.
Actor
World (*)
Greenfoot
True (*)
False
Correct
Initialising a variable
8. In Greenfoot you can only access the methods of the current class?
Mark for Review
(1) Points
True
False (*)
Incorrect. Refer to Section 3 Lesson 9.
Casting is when we want to tell the java compiler that a class we are
accessing is really another type of class (*)
Casting is when we change the coordinates of an actor
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
11. In
Greenfoot, Mark for Review
which (1) Points
method
checks if a
key on the
keyboard
has been
pressed?
keyClick method
isKeyUp method
keyPress method
Correct
12. 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 (*)
True (*)
False
Correct
14. From your Greenfoot lessons, how do you call a defined method?
Mark for Review
(1) Points
True
False (*)