Professional Documents
Culture Documents
True
False (*)
[Correct] Correct
3.
Expressions with relational operators produce true and false values. True
or false?
[Correct] Correct
4. 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] Correct
[Correct] Correct
Section 2
True (*)
False
[Correct] Correct
True (*)
False
[Correct] Correct
True
False (*)
[Correct] Correct
The Internet
A close friend
[Correct] Correct
10. From your Alice lessons, number, boolean, String and
object are all examples of variable types. True or false? Mark for
Review
(1) Points
True (*)
False
Section 2
If the play button is pressed, then play the video one time.
[Correct] Correct
An instance
A method (*)
A class
A variable
[Incorrect] Incorrect. Refer to Section 2 Lesson 10.
Image
Class
Procedure (*)
Direction (*)
Amount (*)
this.blueTang Left 1
[Correct] Correct
15. From your Alice lessons, random numbers are set in
the distance and duration arguments in a procedure. True or false? Mark
for Review
(1) Points
True (*)
False
[Correct] Correct
Section 2
[Correct] Correct
True
False (*)
True
False (*)
[Correct] Correct
True (*)
False
[Correct] Correct
Section 2
True
False (*)
[Correct] Correct
Object
Distance (*)
Duration (*)
Delay
[Correct] Correct
False (*)
[Correct] Correct
True
False (*)
[Correct] Correct
Section 3
[Correct] Correct
Act (*)
Speed (*)
Move
Turn
[Correct] Correct
True
False (*)
[Correct] Correct
Animal
World (*)
Actor
Vector
[Incorrect] Incorrect. Refer to Section 3 Lesson 5.
True
False (*)
[Correct] Correct
Review your answers, feedback, and question scores below. An asterisk (*)
indicates a correct answer.
Section 3
[Correct] Correct
1
3 (*)
[Correct] Correct
True (*)
False
[Correct] Correct
True
False (*)
[Correct] Correct
keyPress method
keyUp method
keyClick method
Section 3
True (*)
False
[Correct] Correct
True (*)
False
True
False (*)
True
False (*)
I (*)
[Correct] Correct
Section 3
I = 100 + i
i=1
i = i
i = i + 1 (*)
[Correct] Correct
True (*)
False
[Correct] Correct
The world
The gallery
True
False (*)
[Correct] Correct
Position
Inherited methods
Defined methods
[Correct] Correct
turnAround( );
move ( );
turn( ); (*)
[Correct] Correct
True
False (*)
True (*)
False
[Correct] Correct
[Correct] Correct
1. What Alice tool can be used to diagram the If conditional execution
statement?
Cause and effect diagram
Process flow diagram (*)
Conditional flow diagram
3. From your Alice lessons, the If control structure can process one
true and one false response. True or false
True (*)
8. In Alice, functions are dragged into the control statement, not the
procedure. True or false?
True False (*)
Code
Project
Class (*)
Program
11. In Alice, when a new procedure is declared, its motions are coded
in a separate tab. True or false?
True (*) False
Object subclass
Biped class (*)
Quadruped class
Person subclass (*)
13. From your Alice lessons, variables are fixed and cannot be changed.
True or false?
True False (*)
14. Define the value of the variable LapCount based on the following
math calculation: LapCount + 10 = 15
2
4
5 (*)
15
10
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. (*)
22. Each parameter is listed with its name first, then its data type.
True or false?
True False (*)
25. From your Alice lessons, random numbers are set in the distance and
duration arguments in a procedure. True or false?
String (*)
Boolean
Integer
Method
27. From your Greenfoot lessons, the keyDown method is located in which
class?
Actor
Greenfoot (*)
GreenfootImage
World
31. In Greenfoot, you must first create an instance before you create a
class. True or false?
True False (*)
33. From your Greenfoot lessons, how do you call a defined method?
34. Use your Greenfoot knowledge to answer the question. One reason to
write a defined method in a class is to change the behavior
of the class. True or false?
35. 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
38. From your Greenfoot lessons, which of the following logic operators
represents "and"?
&
&& (*)
=
!
40. Use your Greenfoot knowledge to answer the question: Where are
defined variables typically entered in a class's source code?
At the top of the source code, before the constructors and methods. (*)
42. From your Greenfoot lessons, which axes define an object's position
in a world?
(Choose all correct answers)
x (*)
z
y (*)
w
> (*)
<
= =
! =
45. In Greenfoot, you will not receive an error message if your code is
incorrect. It will simply not work, and you will have to determine why the
code doesn't work. True or false?
Position
Inherited methods
Scenario name (*)
Defined methods
47. What does the following Greenfoot programming statement do?
turn(18);
Spacing
Capitalization
Parenthesis (*)
Comma
Section 2
Design a storyboard
Correct
Correct
3. From your Alice lessons, the If control structure can process one
true and one false response. True or false? Mark for Review
(1) Points
True (*)
False
Correct
True (*)
False
Correct
True (*)
False
Section 2
True (*)
False
Correct
9. In Alice, which of the following instructions move the Blue Tang fish
forward 2 meters? Mark for Review
(1) Points
Correct
10. From your Alice lessons, the Do In Order control statement is also
referred to by what other name? Mark for Review
(1) Points
Sequence control
Sequential control (*)
Control order
Order control
Section 2
11. In Alice, which of the following procedures play a sound? Mark for
Review
(1) Points
playSound
playAudio (*)
playSoundFile
playFile
12. From your Alice lessons, the "Checklist for Animation Completion"
does not ask questions about the scenario and storyboards, because these
are not valid parts of the animation creation process. True or false?
Mark for Review
(1) Points
True
False (*)
Correct
13. From your Alice lessons, when coding for keyboard control, the
programmer's job is to consider at least 70% of every key stroke the user
could take. True or false? Mark for Review
(1) Points
True
False (*)
14. From your Alice lessons, you can run the animation to test that it
works properly. True or false? Mark for Review
(1) Points
True (*)
False
Incorrect. Refer to Section 2 Lesson 8.
Correct
16. Which of the following does not describe variables? Mark for Review
(1) Points
A place in memory where data of a specific type can be stored for later
retrieval and use.
Correct
17. From your Alice lessons, a Do Together statement embedded with two
move statements is an example of what? Mark for Review
(1) Points
Harmony
Compilation
Forward thinking
Nesting (*)
True
False (*)
False (*)
20. From your Alice lessons, built-in functions provide precise property
details for the following areas: Mark for Review
(1) Points
Correct
If the play button is pressed, then play the video one time.
Correct
22. Which of the following statements about methods is false? Mark for
Review
(1) Points
Methods whose return type is not void are required to include a return
statement specifying what to return.
The order in which methods are listed within the class is not
important.
Java does not permit nesting one method definition within another
method's definition.
Select the class, then drag the object into the scene. (*)
Correct
x (*)
y (*)
z (*)
Correct
Section 3
Correct
True (*)
False
Correct
28. From your Greenfoot lessons, source code is written in the code
editor. True or false? Mark for Review
(1) Points
True (*)
False
Correct
True
False (*)
Correct
Correct
Section 3
Parameter return
Parameter method
Parameter void
32. From your Greenfoot lessons, abstraction techniques can only be used
once in a class's source code. True or false? Mark for Review
(1) Points
True
False (*)
Correct
33. From your Greenfoot lessons, which of the following are examples of
abstraction? Mark for Review
(1) Points
34. Greenfoot does not have tools to record sound. True or false? Mark
for Review
(1) Points
True
False (*)
Correct
35. What type of parameter does the Greenfoot playSound method expect?
Mark for Review
(1) Points
Section 3
3 (*)
True (*)
False
Correct
39. Use you Greenfoot knowledge: What range of numbers does the
following method return?
40. From your Greenfoot lessons, classes can only use the methods they
have inherited. They cannot use methods from other classes. True or false?
Mark for Review
(1) Points
True
False (*)
Correct
Section 3
41. From your Greenfoot lessons, a problem statement defines the purpose
for your game. True or false? Mark for Review
(1) Points
True (*)
False
Correct
False (*)
Correct
True
False (*)
44. From your Greenfoot lessons, which of the following logic operators
represents "and"? Mark for Review
(1) Points
&
&& (*)
Correct
45. Use your Greenfoot knowledge to answer the question. One reason to
write a defined method in a class is to change the behavior of the class.
True or false? Mark for Review
(1) Points
True (*)
False
Correct
Section 3
The world
Correct
True (*)
False
Correct
True
False (*)
49. Use your Greenfoot knowledge to answer the question: Where are
defined variables typically entered in a class's source code? Mark for
Review
(1) Points
At the top of the source code, before the constructors and methods. (*)
Correct
True
False (*)
Correct
MIDTERM
args
n (*)
i (*)
t
2. In Java, whichsymbolisusedtoassignonevaluetoanother?
<
>
= (*)
//
Addandsubtract
Multiplyand divide
None of theabove
4. In Alice, functions are draggedintothe control statement, nottheprocedure. True or false?
True False (*)
In theirownprocedure.
Quadrupedclass
Personsubclass (*)
13. In Alice, which of thefollowinginstructions turn the Blue Tangfishrightone half of a meter?
1
4
3
6 (*)
15. A loopcanbe infinite (continue forever) or conditional (stopsupon a condition). True or false?
True (*) False
18. The valuethat a variableholds must be a wholenumber, not a decimal. True or false?
True False (*)
Animationchecklist (*)
A closefriend
None of theabove
An object'sorientation
Errorhandling
A procedurethatisinvokedwhentheRunbuttonisclicked.
A procedurethatisusedtolaunchthe program.
CalltheaddObjectmethod.
if (*)
array
boolean
None of theabove.
setImage (newGreenfootImage("duke100.png
setImage
GreenfootImage
duke100.png (*)
new
Methodvariable
Instancevariable (*)
Classvariable
World variable
Callthemethodfromthedefinedmethod.
Writethemethod in theinstance.
Instancemethod
Definedmethod (*)
World method
Code method
getSoundmethod
findSoundmethod
playSoundmethod (*)
importSoundmethod
keyUpmethod
keyDownmethod (*)
keyClickmethod
Curlybrackets { }
Semicolon ;
Colon :
i=1
i=i
i = i + 1 (*)
41. In Greenfoot, whathappensifthe end to a whileloopisn'testablished?
The code willkeepexecutingandwillnever stop. (*)
Design thesolution.
Test thesolution.
Spacingmissing
Parenthesismissing (*)
Commamissing
Act method
Documentation (*)
Inspector
If-statement
48. When a Greenfoot code segment isexecuted in an if-statement, each line of code isexecuted in
sequentialorder. True or false? True (*) False