Professional Documents
Culture Documents
Mark for
Review
(1) Points
getObject
getDuration
getDepth
getDistance (*)
Correct
2. In Alice, Do In Order and Do Together:
Mark for
Review
(1) Points
Mark for
Review
(1) Points
True (*)
False
Correct
4. In Alice, the setVehicle procedure will associate one object to another.
True or false?
Mark for
Review
(1) Points
True (*)
False
Correct
5. In Alice, declaring a new procedure to shorten code and make it easier to
read is a procedural abstraction technique. True or false?
Mark for
Review
(1) Points
True (*)
False
Correct
Mark for
Review
(1) Points
Mark for
Review
(1) Points
True (*)
False
Correct
8. Which of the following does not describe variables?
Mark for
Review
(1) Points
Mark for
Review
(1) Points
<
>
= (*)
//
Correct
10. An Alice event is considered what?
Mark for
Review
(1) Points
11From
. your
Alice
lessons
, which
of the
followi
ng are
reason
s why
rando
m
numbe
rs
would
be
used
by a
compu
ter?
Mark for
Review
(1) Points
Mark for
Review
(1) Points
this.Butterfly
2} (*)
this.Butterfly
* 2}
this.Butterfly
/ 2}
this.Butterfly
2}
Correct
14. Which of the following IF control structures command the blue tang fish
to roll and simultaneously move down if it collides with a shark, or move
forward if it does not collide with a shark?
Mark for
Review
(1) Points
(*)
Correct
15. Which of the following is a reason why you might disable programming
statements in your Alice code?
Mark for
Review
(1) Points
1All
6. objects
in Alice
have
three
dimens
ional
coordi
nates
on
which
axes?
Mark for
Review
(1) Points
True (*)
False
Incorrect. Refer to Section 2 Lesson 12.
18. Which of the following are examples of elements you would test in your
Alice animation?
Mark for
Review
(1) Points
Mark for
Review
(1) Points
(*)
Mark for
Review
(1) Points
True (*)
False
Correct
2When
1. you
want
speci
fic
code
to be
execu
ted
only
if
certai
n
condi
tions
are
met,
what
type
of
Java
const
ruct
would
you
use?
while loop
if (*)
array
boolean
Correct
22. Which of the following statements about methods is false?
Mark for
Review
(1) Points
Section 3
(Answer all questions in this section)
23. From your Greenfoot lessons, where do you review a class's inherited
methods?
Mark for
Review
(1) Points
Act method
Documentation (*)
Inspector
If-statement
Incorrect. Refer to Section 3 Lesson 3.
24. From your Greenfoot lessons, in an if-statement, the programming
statements written in curly brackets are executed simultaneously. True or
false?
Mark for
Review
(1) Points
True
False (*)
Correct
25. In Greenfoot, the image below is an example of what construct?
Mark for
Review
(1) Points
Method
Comment
Constructor (*)
Class
Correct
26. In
Greenfoo
t, objects
are
created
from:
Methods
Classes (*)
Signatures
Parameters
Correct
Mark for
Review
(1) Points
Spacing
Capitalization
Parenthesis (*)
Comma
Correct
28. Use your Greenfoot knowldege: Abstraction occurs in many
different ways in programming. True or false?
Mark for
Review
(1) Points
True (*)
False
Correct
29. In the Greenfoot IDE, which of the following is not a property of an
instance?
Mark for
Review
(1) Points
Position
Inherited methods
Scenario name (*)
Defined methods
Correct
30. From your Greenfoot lessons, when a method needs additional
data to perform a task, this data comes from parameters. True or
false?
Mark for
Review
(1) Points
True (*)
False
Correct
31. In the
Greenfoot
IDE, which
of the
following
are
componen
ts of a
parameter
?
(Choose all correct answers)
Parameter type (*)
Parameter return
Parameter name (*)
Parameter method
Parameter void
Correct
32. In the following Greenfoot method signature, which is the
method name?
void turnLeft()
Mark for
Review
(1) Points
()
void
turnLeft (*)
Left
Correct
33. From your Greenfoot lessons, the reset button resets the
scenario back to its initial position. True or false?
Mark for
Review
(1) Points
True (*)
False
Correct
34. From your Greenfoot lessons, to create a new instance of the
Duke class, you right-click on the class, then select which of the
following commands in the class menu?
Mark for
Review
(1) Points
New subclass...
Set image...
new Duke() (*)
Inspect
Remove
Correct
35. Using the Greenfoot IDE, which of the following programming
statements tells the object to turn 38 degrees?
Mark for
Review
(1) Points
move():
move(2);
turn(38); (*)
turn(38):
Correct
36. Which of
the
followin
g type
of
audienc
e should
you ask
to play
your
Greenfo
ot game
during
the
testing
phase?
Testing
Target (*)
Primary
Programmer
Correct
37. In Greenfoot, which statement is a correct example of string
concatenation?
Mark for
Review
(1) Points
Correct
38. How would the following sentence be written in Greenfoot source
code? If Duke's leg is down, and the keyboard key "d" is down...
Mark for
Review
(1) Points
if (&&isDown ! Greenfoot.isKeyDown("d") )
if (!isDown && Greenfoot.isKeyDown("d") )
if (isDown && Greenfoot.isKeyDown("d") ) (*)
if (!Greenfoot.isKeyDown && isDown("d") )
Correct
39. From your Greenfoot lessons, what is a loop?
Mark for
Review
(1) Points
Mark for
Review
(1) Points
41. In
Greenfoot,
defined
methods
must be
used
immediate
ly. True or
false?
True
False (*)
Correct
42. From your Greenfoot lessons, how do you call a defined
method?
Mark for
Review
(1) Points
Mark for
Review
(1) Points
getSound method
findSound method
playSound method (*)
importSound method
Correct
44. From your Greenfoot lessons, dot notation allows you to use a
method from a different class, if the class you are programming
does not possess the method. True or false?
Mark for
Review
(1) Points
True (*)
False
Correct
45. From your Greenfoot lessons, what can methods belong to?
Mark for
Review
(1) Points
Galleries
Classes (*)
Scenarios
Objects (*)
All of the above
Incorrect. Refer to Section 3 Lesson 5.
46. In a
Greenfoo
t if-else
stateme
nt, if the
condition
is true,
the ifstateme
nt is
executed
, and
then the
elsestateme
nt is
executed
. True or
false?
True
False (*)
Correct
47. From your Greenfoot lessons, a comparison operator returns what
value when a number meets its requirement?
Mark for
Review
(1) Points
0
VOID
1 (*)
NULL
Correct
48. Using Greenfoot, how do we change the size and resolution of the
World instance?
Mark for
Review
(1) Points
Mark for
Review
(1) Points
Mark for
Review
(1) Points
True
False (*)
Correct