Beruflich Dokumente
Kultur Dokumente
True
False (*)
[Correct] Correct
3.
Expressions with relational operators produce true and false values. True
or false?
[Correct] Correct
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
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
Image
Class
Procedure (*)
Direction (*)
Amount (*)
[Incorrect] Incorrect. Refer to Section 2 Lesson 3.
this.blueTang Left 1
[Correct] Correct
True (*)
False
[Correct] Correct
Section 2
True
False (*)
True
False (*)
[Correct] Correct
True (*)
False
[Correct] Correct
Section 2
True
False (*)
[Correct] Correct
Object
Distance (*)
Duration (*)
Delay
[Correct] Correct
True
False (*)
[Correct] Correct
True
False (*)
[Correct] Correct
Section 3
[Correct] Correct
27. In Greenfoot, which of the following are execution
controls? Mark for Review
(1) Points
Run (*)
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
3 (*)
4
5
[Correct] Correct
True (*)
False
[Correct] Correct
True
False (*)
[Correct] Correct
keyPress method
keyUp method
keyClick method
True (*)
False
[Correct] Correct
True (*)
False
True
False (*)
True
False (*)
[Incorrect] Incorrect. Refer to Section 3 Lesson 10.
I (*)
[Correct] Correct
Section 3
I = 100 + i
i=1
i = i
i = i + 1 (*)
[Correct] Correct
True (*)
False
[Correct] Correct
43. To execute a method in your Greenfoot game, where is
it called from? Mark for Review
(1) Points
The world
The gallery
True
False (*)
[Correct] Correct
Position
Inherited methods
Defined methods
[Correct] Correct
orientTo( );
turnAround( );
move ( );
turn( ); (*)
[Correct] Correct
True
False (*)
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 (*)
11. In Alice, when a new procedure is declared, its motions are coded
in a separate tab. True or false?
True (*) False
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
20. From your Alice lessons, how do you add an instance to a scene in
Alice?
Select the instance from your computer's network.
Write code that places the instance in the scene.
Select the class, then drag the object into the scene. (*)
Call the addObject method.
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?
True (*) 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?
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?
turn(18);
Spacing
Capitalization
Parenthesis (*)
Comma
Section 2
Design a storyboard
Correct
2. In Alice, which of the following programming statements moves the
butterfly forward, double the distance to the tree? Mark for Review
(1) Points
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
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
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 (*)
True
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.
Incorrect. Refer to Section 2 Lesson 10.
23. From your Alice lessons, how do you add an instance to a scene in
Alice? Mark for Review
(1) Points
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
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 (*)
38. 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
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
42. Use your Greenfoot knowledge: An array object holds a single
variable. True or false? Mark for Review
(1) Points
True
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
The gallery
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
All of theabove (*)
None of theabove
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
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