Test MGJ Final 2 86%
Test MGJ Final 2 86%
Test MGJ Final 2 86%
True
False (*)
Incorrect. Refer to Section 2 Lesson 2.
3. Which of the following does not describe variables?
A place in memory where data of a specific type can be stored for later retrieval and use.
Has a unique name.
Has a type associated with it.
Arranged in rows and columns. (*)
Correct
4. Which of the following is not a relational operator?
<
// (*)
>
=
Correct
5. In Alice, we can avoid object collision using what?
True
False (*)
Correct
9. From your Alice lessons, the "Checklist for Animation Completion" does not ask questions about the scenario and story
the animation creation process. True or false?
True
False (*)
Correct
10. From your Alice lessons, if you examined a science process that had many steps, which of the following is a way that y
this process?
1. Present the problem as an animation.
2. Further refine and define the tasks needed for each high level step.
3. Identify the high level steps for the science concept.
1. Identify the detailed steps for the science concept.
2. Present the problem as an animation.
1. Present the problem as an animation.
1. Identify the high level steps for the science concept.
2. Further refine and define the tasks needed for each high level step.
3. Present the problem as an animation. (*)
Correct
11. 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?
(*)
Correct
12. In Alice, the setVehicle procedure will associate one object to another. True or false?
True (*)
False
Correct
13. Which of the following actions would require a control statement to control animation timing?
True
False (*)
Correct
15. A complete Alice instruction includes which of the following components?
Procedure (*)
Direction (*)
Amount (*)
Correct
16. From your Alice lessons,
which of the following are
types of storyboards?
17. In Alice, you examine code where a bird moves its wings forward and backward while moving forward simultaneously acro
scene. You notice that this set of procedures are repeated in the Code editor ten times to achieve this motion. How could pro
abstraction be used to make the code simpler and easier to read?
(Choose all correct answers)
Declare a separate "fly" procedure for the body moving forward and wings moving up and down. (*)
Incorrect. Refer to Section 2 Lesson 5.
18. In Alice, when a new procedure is declared, all subclasses of the superclass will inherit the procedure. True or false?
True (*)
False
Correct
19. Which of the following is not an Alice variable value type?
Color
Decimal Number
Whole Number
Function (*)
Correct
20. A variable is a named location inside the computer's memory; once there, the information can be retrieved and changed. Tru
false?
True (*)
False
Correct
21. Which of the following statements about what happens when the following code is executed is false?
Mark for Re
(1) P
Section 3
(Answer all questions in this section)
25.
Symbol &
Symbol <
Symbol =
Symbol + (*)
String concatenation
Logic operators (*)
Integers
Keyboard key names
Correct
27. In Greenfoot, what is a common letter used for the loop variable?
A
I (*)
X
Y
Correct
28. From your Greenfoot lessons, to create a new instance of the Duke class, you rightclick on the class, then select which of the following commands in the class menu?
New subclass...
Set image...
new Duke() (*)
Inspect
Remove
Correct
29. Which of the following demonstrates a Greenfoot subclass/superclass relationship?
(1) Points
True (*)
False
Correct
31. From your Greenfoot
lessons, in an ifstatement, the
programming
statements written in
curly brackets are
executed
simultaneously. True or
false?
True
False (*)
Incorrect. Refer to Section 3 Lesson 3.
32. Using the Greenfoot IDE, when is a constructor automatically executed?
Correct
33. Specific to the Greenfoot IDE, which of the following stop methods is written
correctly?
stop.Greenfoot( );
Greenfoot(stop);
Greenfoot.stop( ); (*)
Greenfoot.stop(key);
Correct
34. In Greenfoot, we can use the act method in the class to automatically create the
Actor instances when the world is initialized. True or false?
True
False (*)
Incorrect. Refer to Section 3 Lesson 8.
35. From your Greenfoot lessons, which of the following is an example of a type of
data passed through a parameter?
Methods
Classes
Integers (*)
Scenarios
Correct
36. What type of
Greenfoot
method would
be used to turn
an object?
orientTo( );
turnAround( );
move ( );
turn( ); (*)
Correct
37. From the Greenfoot IDE, where are inherited methods located?
True (*)
False
Correct
40. From your Greenfoot lessons, to save space in the act method, you can write an entirely
new method below it, called a _____________.
Class method
Instance method
Defined method (*)
World method
Code method
Correct
41. From your
Greenfoot lessons,
which of the
following is an
example of
changing the
environment
during a Q/A test
cycle?
(1) Points
Class
Signature (*)
Parameter
Correct
44. In Greenfoot, which method checks if a key on the keyboard has been pressed?
keyPress method
keyUp method
keyDown method (*)
keyClick method
Incorrect. Refer to Section 3 Lesson 7.
45. When designing a game in Greenfoot, it helps to define the actions that will take place
in a textual storyboard. True or false?
True (*)
False
Correct
46. Using the Greenfoot
IDE, which of the
following
programming
statements tells the
object to turn 38
degrees?
move():
move(2);
turn(38); (*)
turn(38):
Correct
47. In Greenfoot, you can use comparison operators to compare a variable to a random
number. True or false?
True (*)
False
Correct
48. Use you Greenfoot knowledge: What range of numbers does the following method
return?
Greenfoot.getRandomNumber(30)
A random number between 1 and 30.
A random number between 0 and 30.
A random number between 0 and 29. (*)
A random number between 1 and 29.
Correct
49. In a Greenfoot if-else statement, if the condition is true, the if-statement is executed,
and then the else-statement is executed. True or false?
True
False (*)
Correct
50. From your Greenfoot lessons, which of the following is not a characteristic of a static
method?
Belongs to a class itself
Belongs to an instance itself (*)
Available for other classes to use with dot notation
Signature contains the word static
Is a method
Correct