0%(1)0% found this document useful (1 vote) 352 views24 pagesQuiz 1 Section 2
Examen de java oracla academy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
https://quiz.blesdaily.com full-answer-oracle-academy-java-fundamentals-midterm-exam-and-final/
http://deniace.blogspot.ba/2017/01 /oracle-java-fundamentals-section-2-quiz.html
Section 2 Oracle Java Fundamentals Quiz
Section 2
9,
Quiz L1-L7
(Answer all questions in this section)
In Alice, which control statement is used to invoke simultaneous movement
Do In Order
Count
Do Together (*)
While
Variable
In Alice, a computer program requires functions to tell it how to perform the procedure, True or false?
True
False (*)
‘Manually manipulating an Alice object with your cursor is a way to precisely position an object. True or false?
Tme
False (*)
Only acting objects have one-shot procedures. True or false?
True
False (*)
In Alice, where are objects added and positioned in the scene?
The template
The Scene editor (*)
‘The Code editor
The gallery
Before you can begin to develop the animation storyboard, what must be defined?
‘The debugging process
‘The control statements
The code
The scenario (*)
In Alice, which of the following are benefits of separating out motions into their own procedures?
(Choose all correct answers)
It makes the scene easier to view.
It can allow subelasses of a superclass to use a procedure. (*)
{tsimplifies code and makes it easier to read. (*)
Temakes the animation easier to run,
Itallows many objects of a class to use the same procedure. (*)
Which Alice tool is used to demonstrate the process flow of an animation?
World
Pie chaet
‘Textual storyboard
‘Visual storyboard
Flowchart (*)
Which Alice execution task corresponds with the following storyboard statement?
Cat turns to face mouse.
10,
mouse turnTo cat
this.cat tumnToFace this.mouse (*)
this. mouse turnToFace this.cat
cat TurnTo mouse
From your Alice lessons, which contol statement executes instructions simultaneously?
Do in order
Variable
Do together (*)
Count
From your Alice lessons, buil
Proximity and point of view.
Distance to and nesting.
Proximity and size,
Proximity, size, spatial relation, and point of view. (*)
a functions provide precise property details forthe following areas:12.
From your Alice lessons, whieh programming instruction represents the following movement: turtle moves forward half the
distance to the lower
4,
false?
15
this Turtle move Forward this Turtle getDistanceTo this Flower * 2
this Turtle move Forward this. Turtle gerDistanceTo this.Flower / 1.0
this Turtle move Forward this. Turtle getDistanceTo this Flower /0.5,
this. Turtle move Forward this. Turtle getDistanceTo this.Flower /2.0 (*)
‘What is the purpose of a function in Alice?
To position the object in the Scene editor.
To save the project.
To compute and answer a question about an object. (*)
To define how the object should exeeute a task.
‘The comments you enter in Alice should deseribe the sequence of actions that take place in the code segment, Tau or
True(*)
False
Which of the following is a reason why you might disable programming statements in your Alice code?
To disable the entire program,
To make an object move forward
To make an object turn and move sinzultancously.
To help isolate portions of code during testing. (*)
From your Alice lessons, where on an abject do an object's axes intersect?
At the object's ceater point (*)
At the object's head
At the object's chest
‘At the object's bottom,
Only acting objects have one-shot procedures. True or false?
Tru
False (*)
In Alice, which of the following is not a control statement?
Count
Move (*)
While
Do In Order
In Alice, a computer program requires functions to tell it how to perform the procedure, True or false?
Tme
False (*)
‘When is an instance created in Alice?
‘After the scenario is saved.
‘After the folder is selected in the gallery
After the class icon is dragged into the scene. (*)
‘After the code is ereated
Which of the following is an example of nesting in an Alice program?
Five Do Together statements are nested inside of a Do In Order statement. (*)
A move procedure is nested inside of a turn procedure,
Distance, duration, and direction arguments are nested inside of a procedure.
Text is nested inside of a comments tile.
‘Which Alice control statement executes a set of procedures simultaneously?
Do in order
While
Together
Do together (*)
Programming comments do not affect the functionality of your Alice animation. True or false?
Tre (")
False
‘What is the first step to entering comments in an Alice program?
Select the instance from the instance menu.
Drag and drop the comments tile below a code segment,
‘Type comments that describe the sequence of actions in the code segment.
Drag and drop the comments tile above a code segment. (*)
In Alice the Functions tab will display the pre-defined functions for the selected instance. True or false?
True (*)
False
In Alice, what function would you use to get a wholenumber from the user?
getlntegerFromUser (*)
getBooleanFromUser
getStringFromUser
getDoubleFromUser12. In Alice, there is no way of reordering the function list in the funtion tab. True or false?
Tre
False (*)
13.___Defining the scenario, and the Alice animation to represent the scenario, is the first step to programming your animation, True
or false?
Tre (")
False
14. In Alice, declaring « new procedure to shorten code and make it easier to read is a procedural abstraction technique, True or
false?
True (")
False
15, In Alice, what are the forms of a scenario?
(Choose all correct answers)
A problem to solve. (*)
‘A task to perform. (*)
A parson to help.
A system to start.
‘A section of code to write,
1. Before you can begia to develop the animation storyboard, what must be defined?
The debugging process
‘The control statements
‘The scenario (*)
The code
2. InAllice, declaring a new procedure to shorten code and make it easier to read is a procedural abstraction technique. True or
false?
Tre ()
False
3. A scenario gives the Alice animation a purpose. True or false?
Tre (*)
False
4. From your Alice lessons, which programming instruction represents the following movement: A cat moves forward double (or
thwive) the distance to the tree.
this Cat move Forward this.Cat getDistanceTo this tree / 2.0
this.Cat move Forward this,Cat getDistaneeTo this.tree
this Cat move Forward this.Cat getDistanceTo this tree * 2.0 (*)
this. Cat move forward this Cat getDistanceTo this.tree + 2.0
5. _ In Alice, where you would you get access to the specific joints of an object that are not available through the object drop down
scene editor
procedures tab
funetions tab (*)
code editor
6 Only acting objects have one-shot procedures. Tre or false?
True
False (*)
7. From your Alice lessons, where on an object do an object's axes intersect?
At the object’s bottom,
‘At the object's chest
At the object's head
At the object's center point (*)
8. Which Alice execution task corresponds with the following storyboard statement?
Cat turns to face mouse,
this cat tumToFace this.mouse (*)
mouse turnTo cat
cat TumTo mouse
this mouse turnToFace this.cat
9. InAlice, the computer specifies the low and high range values for the range of numbers from which to pull a randomized
smumber. True of false?
‘True
False (*)
10. When something is broken or doesn't work as intended in a software program, it is referred to as a 2
Bug (*)
Error
Code
Debug11. Debugging and testing is the process of running the animation one time, and adjusting the control statements, procedures, and
arguments
True
False (*)
12. In Alice the Functions tab will display the pre-defined functions for the selected instance. True or false?
Tre ()
False
13. What is the first step to programming an object to tum left in Alice?
Select the object to program from the instance menu. (*)
Drag the turn procedure into the Code editor.
Select the duration for the object to tur.
Select the distance to turn.
14. In Alice, the procedures’ arguments allow the programmer to adjust the object, motion, distance amount, and time duration.
True or false?
True (")
False
15. Which of the following actions would require a control statement to control animation timing?
(Choose all correct answers)
A biped object walking. (*)
Avrock object turning,
Abid flying. (*)
A fish swimming. (%)
1, Define the value of the variable LapCount based on the following math calculation: LapCount + 10
2
15
4
30)
10
2. Which of the following is not an Alice variable value type?
Whole Number
Decimal Number
Color
Functioa (*)
3. In Alice, what are the forms of a scenario?
(Choose all correct answers)
A problem to solve. (*)
‘A person to help.
A task to perform. (°)
A section of code to write.
‘A system to start
4. From your Alice lessons, animations should be tested by the programmer before they are considered complete. True or
false?
Tre ()
False
5. From your Alice lessons, when testing your animation, you should test that comments were added below each sequence of
instructions in the code. True or false?
‘Tre
False (*)
6. InJava,a fimetion is a method that must retm a value. True or false?
True
False (*)13
Which of the following does not describe methods?
A subprogram that acts on data and often retums a value.
‘A set of code that is referred to by name.
Js associated with an instance variable. (*)
Can be called at any point in a program simply by utilizing its name.
In Alice, we can avoid object collision using what?
Downloading the Alice 3 collision detector app.
Using object detection,
Using math operators. (*)
Slowing movements down.
Alice uses built-in math operators; they are:
‘Add and subtract
‘Multiply and divide
All of the above (*)
‘None of the above
In Alice, what tab would you choose to start a new animation with a pre-populated world?
Recent
Blak Slate
Starters (*)
My Projects
In Alice, when is the sceneActivationListener executed?
When the user clicks on on object
At the end of the animation
At the beginning of the animation (*)
‘When an object appears on screen
A data type defines the type of procedures a variable ean store. True or false?
‘Tre
False (*)
‘fa 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 "=" operator, True or false?
15
Tme(*)
False
In Alice, the use of conditional control structures allows what two types of loops?
(Choose all correct answers)
switeh,
together
conditional (*)
finite
In Alice, which one of the following is not a pre-defined control structure?
do in order
do together
do while (*)
while
1. In Java, which symbol is used to assign one value to another?
=)2. What is the output produced by the following code?
bublic AssigneentOperatorstens()
10° public static void main(sering{varga) |
jis10
jiss
kis
jiss
kiss)
jis10
Kis 10
jis1s
kis 15
3. When you want specific code to be executed only if certain conditions are met, what type of Java construct would you use?
if)
array
while loop
boolean
4. Ifyou need to repeat a group of Java statements many times, which Java construct should you use?
(Choose all correct answers)
while loop (*)
do while loop (*)
repeat...ant
it
5. In Alice itis not possible to transfer a class from one animation to another. True or false?
Tre
False (*)
6. You want an event to happen when an object collides with another object, which category of event handler would you choose?
Keyboard
Mouse
Scene Activationtime
Position’ Orientation (*)
7. Which of the following is not an Alice variable value type?
Color
Decimal Number
Function (*)
Whole Number
8, The initializer of a variable with a TextString value type could be (select all that apply):
(Choose all correct answers)
"Greetings" (*)
"Howdy" (*)
ogres)
None of the above.9. Which of the following WHILE control structures commands the fish to move forward repeatedly 0.5 meters at atime, but stop if
it collides with the shark?
vem {hor [Gimrang! eeonsnonin san)’ em)
ooo
°
10. In Alice, we use the WHILE control statement to implement the conditional loop. True or false?
Tre (*)
False
11, In Alice, which of the following programming statements moves the butterfly forward, double the distance to the tree?
this Butterfly move forward {this Butterfly getDistaneeTo this. Tree /2}
this Butterfly move backward {this Butterfly getDistanceTo this. Tree * 2
this Butterfly move forward {this.Butterfly getDistanceTo this.Tree * 2} (*)
this Burerfly move backward {this Butterfly getDistanceTo this.Tree / 2)
12. Am example of an expression is:
for Where
373-9(°)
Move forward | meter
"T feel happy."
13. From your Alice lessons, a textual storyboard provides a detailed, ordered list of the actions each object performs in each scene
of the animation, True or false?
Tre (*)
False
14, From your Alice lessons, when testing your animation, you should test that comments were added below each sequence of
instructions in the code. True or false?
Te
False (*)
15. What can be used as a guideline to ensure your Alice animation fulfills animation principles?
An animation checklist (*)
Other programmers
The Internet
Aclose friend
1. Amevent is any action initiated by the user that is designed to influence the programs execution during play.
True (*)
False
2. In Alice, what tab would you choose to start a new animation with a pre-populated world?
Recent
Starters (*)
My Projects
Blank Slate
3. Which of the following is not a valid arithmetic operator in Java?
sc)
‘None of the above4
variable using the assignment
10,
‘fa value has been assigned to (is stored in) a variable, that value will be overwritten when another value is assigned to the
‘operator, True or false”
Tme(*)
False
In Java, a function is a method that must return a value. True or false?
True
False (*)
‘The list below contains method descriptions. Al are correct except which one?
(Choose all correct answers)
1s associated with an instance variable.
‘A subprogram that acts on data and often returns a value. (*)
‘A set of code that is referred to by name. (*)
Can be called at any point in a program simply by utilizing its name.
In Alice, we can avoid object collision using what?
Downloading the Alice 3 collision detector app.
Using math operators, (*)
Using object detection.
Slowing movements down.
Alice uses builtin math operators; they are
‘Add and subtract
Multiply and divide
All of the above (*)
‘None of the above
Define the value of the variable LapCount based on the following math calculation: LapCouat + 10= 15
2
5)
1s
4
10
‘The intalizer of a vasiable with a TestSuing value type could be (select all that apply)
(Choose all correct answers)
"Greetings" (*)
Howdy" (*)
“cry
‘None of the above.
The list below contains method descriptions. All ae correct except which one?
(Choose all correct answers)
Is associated with an instance variable
A subprogram that acts on data and often retums a value. (*)
‘A set of code that is referred to by name. (*)
Can be called at any point in a program simply by utilizing its name,
In Alice, we can avoie object collisioa using what?
Downloading the Alice 3 collision detector app.
Using math operators. (*)
Using object detection.
Slowing movements down.
‘Alice uses built-in math operators; they aze:
‘Add and subtract
Multiply and divide
All of the above (*)
None of the above10.
15.
Define the value of the variable LapCouat based on the following math calculation: LapCouat + 10 = 15
30)
15
4
10
‘The initializer of a variable with a TextString value type could be (select all that apply):
(Choose all correct answers)
"Greetings" (*)
"Howdy" (*)
"gry
‘None of the above.
The Alice If control structure requires the false statement to be populated. True or false?
‘Tre
False (*)
Section 2 Quiz 4 - L1-L7
(Answer all questions in this section)
1, How do you create a programming instruction in Alice?
Click and crag the desired programming instruction into the Scene editor.
Click and crag the desired programming instruction into the Procedures tab.
aro
Click and ¢rag the desired programming instruction into the myFirstMethad tab. (*)
Click and drag the desired programming instruction into the Functions tab.
4
@ conect
2, Which ofthe following is not an example of a one-shot procedure?
Turn
Move
Roll
Spin (*)
29090
a
Comect
3, In Alice, where are objects added and postioned in the scene?
The template
The gallery
ao
The Scene editor (*)
The Code editor
4
Comect
44, In Alice, the computer specifies the low and high range values for the range of numbers from which
to pull a randomized number. True or false?@ Te
co Fae (*)
] Incorrect. Refer to Section 2 Lesson 4,
5, Which of the following Is an example of nesting in an Alice program?
A move procedure is nested inside of a turn procedure
ao
Five Do Together statements are nested inside of a Do In Order statement. (*)
Distance, duration, and direction arguments are nested inside of a procedure.
9
Text Is nested inside of a comments tlle.
Correct
«6, From your Alice lessons, which programming instruction represents the following movernent: A
* turtle moves forward half the distance to the flower.
C_this.Turtle move Forward this:Turtle getDistanceTo this.Flower * 2
(7 this-Turtle move Forward this:Turlle getDistanceTo this Flower / 2.0 (*)
C_ this.Turtle move Forward this:Turtle getDistenceTo this Flower / 1.0
@ this-Turtle move Forward this.Turlle getDistanceTo this Flower / 0.5
@] Incorrect. Refer to Section 2 Lesson 7.
77 In Alice, you can use @ function to get the current color of the abject. True or false?
cc Tue (")
@ Fase
GB Incorrect. Refer to Section 2 Lesson 7.
‘8, In Alice, new procedures are declared in the Scene editor. True or false?
The
@ False (*)
Correct
9, Defining the scenario, and the Alice animation to represent the scenario, is the frst step to
programming your animation. True or false?
@ Te)
False
@ Correct10, In Ale, you could identify when new procedures need to be declared by reviewing the textual
storyboard for the animation. True or false?
cc Tre (*)
@ False
} Incorrect, Refer to Section 2 Lesson 5,
Toadda
44 rocedure to
myFirstMethod,
right-click on the
procedure you
wish to add and
select the Add
button, True or
false?
@ Te
False)
€ Incorrect. Refer to Section 2 Lesson 3,
112, The say procedure in Alice plays en audio fll, True or false?
@ Te
co False (%)
€] Incorrect. Refer to Section 2 Lesson 3,
13, When you disable a programming instruction, itis stil executed when you run the Alice
animation. True or false?
c The
@ Falso(*)
@ Corect
14, In Alice, a walking motion for a bipedal object can be achieved without the Do Together
+ control statement. True of false?
@ Te
Fae c)
€ Incorrect. Refer to Section 2 Lesson 6,
115, In Alice the setVehicle procedure will associate one object to another, True or false?
@ THe)
FaseCorrect
Section 2 Quiz 1 - L1-L7
(Answer all questions in this section)
1
In Alice, there is a limit of 10 objects per scene. True or false?
c Te
@ False (*)
Correct
From your Alice lessons, where on an object do an object's axes intersect?
At the object's center point (*)
At the object's head
a0
At the object's bottom
At the object's chest
o
@ Incorrect, Refer to Section 2 Lesson 2.
Which of the following would a clown fish object in Alice inherit from its class?
Fins
Two eyes
a0
Procedures
Functions
99
All of the above (*)
@ Incorrect. Refer to Section 2 Lesson 5.
A textual storyboard helps the reader understand the actions that will take place during the
animation. True or false?
@ Tme(*)
c False
© Correct
In Alice, you examine code where a bird moves its wings forward and backward while
moving forward simultaneously across the scene. You notice that this set of procedures are
repeated in the Code editor ten times to achieve this motion. How could procedural
abstraction be used to make the code simpler and easier to read?
(Choose all correct answers)Use the Count control statement to execute the forward motion of the body and up and
down motion of the wings 10 times. (*)
Use the Scene editor to position the wings so that they are up as the body moves
forward.
Do not make any changes to the code.
a
Declare a separate "fly" procedure for the body moving forward and wings moving up
and down. (*)
aaa
© Incorrect. Refer to Section 2 Lesson 5.
6. To
access
the
Alice
Code
editor
from
the
Scene
editor,
which
button
do you
click?
Code Editor
a
Access Code Editor
Code
29090
Edit Code ("*)
@ Incorrect. Refer to Section 2 Lesson 3
7. Debugging and testing is the process of running the animation one time, and adjusting the control
statements, procedures, and arguments.
cc Te
@ False (*)
@ Correct
8. Which of the following is a reason why you might disable programming statements in your Alice
code?
© To make an object tun and move simultaneously.
@ To make an object move forward.
© To help isolate portions of code during testing. (*)c
To disable the entire program.
@ Incorrect. Refer to Section 2 Lesson 3,
9, From your Alice lessons, which programming instruction represents the following movement: A
person moves forward the distance to the table, minus the depth of the person,
e
c
c
c
this. Person move Forward this. Person getDistanceTo this. Table + this.Person getDepth
this.Person move Forward this.Person getDistanceTo this. Table - this. Table getDepth
this.Table move Forward this Person getDistanceTo this Table - this.Table getDepth
this. Person move Forward this Person getDistanceTo this. Table - this Person getDepth (*)
@ Incorrect. Refer to Section 2 Lesson 7,
10. In Alice, functions ask questions about an object. True or false?
c
6
LL Alice,
the
setVehicle
procedure
will
associate
one object
to
another,
True or
false?
True
False (*)
@ Tme(*)
C False
© Correct
12. In Alice, different programming is not required for different objects, because all objects
move the same way. True or false?
@ Tme
© False (*)
© Incorrect. Refer to Section 2 Lesson 6.
13, Debugging is the process of finding bugs in a software program. True or false?
c Tme(*)@ False
@ Incorrect. Refer to Section 2 Lesson 1.
14, Which Alice execution task corresponds with the following storyboard statement? r
Cat tums to face mouse.
this.mouse tunToFace this.cat
cat TurnTo mouse
290
this.cat tummToFace this.mouse (*)
mouse turnTo cat
a
@ Incorrect. Refer to Section 2 Lesson 4.
15. From your Alice lessons, the Do In Order control statement is also referred to by what other [-
name?
@ Incorrect. Refer to Section 2 Lesson 4.
Sequence control
Sequential control (*)
@ Order control
C Control order
Section 2 Quiz 1 - L1-L7
(Answer all questions in this section)
4. In Alice, functions ask questions about an objet. Tre oF Fee? r
Markcfor Review
(1) Points
The
@ False (*)
Correct
12, In Alice, when using the getDistanceTo function what menu option would you use to subtract a set value
* from the distance? Mark for Review
(4) Points
Custom DecimalNumber
Random
Whole to decimal number
99090
Math (*)
>
Correct33, InAlice, a computer program requires functions to tell it how to perform the procedure, True or false?
Cc The.
we False (*)
Correct
n Alice, the procedures’ arguments allow the programmer to adjust the object, motion, distance
‘amount, and time duration. True or false?
cc The)
@ False
] Incorrect, Refer to Section 2 Lesson 6.
5, Which ofthe folowing are ways to open an existing Alice project fle after launching Alice?
(Choose all correct answers)
[F_ Double-click on the project file name in the folder itis stored in on your computer.
[Flick and drag the fle from your computer into Alice 3.
Jy _ Browse for the project using the File System tab. (*)
Jy Select the project from the My Projects tab. (*)
Correct
All objects
inal Mark for Review
have thro
dimensional (2 Points
coordinates
con which
(Choose all correct answers)
x@)
y@)
zc)
a5
All of the above
a4
© coment
r
r
r
Mark for Review
(4) Points
Mark for Review
(4) Points
Mark for Review
(1) Points77 When something is broken or doesn't work as intended in a software program, [=
itis referred to as @ ? Mark for Review
(1) Points
Debug
Code
O Eror
@ 5")
Correct
3, Besking down a problem or processinto smaller parts makes teaser to
* manage. True or false? Mark for Review:
(1) Points
@ Tre)
False
© conect
«9, Tn Alice, which ofthe following stuations could benefit from declaring a new =
procedure? Mark for Review
(1) Points.
(Choose all correct answers)
TF Asingle mation, such as walking takes up a ot of room in
imyFirstMethod. (*)
Jo Arlobject does not have @ default procedure fora motion, such @s
swimming. (*)
J Multiple objects need to use a motion, such as bunnies hopping. (*)
F_ An object needs to move forward, then move up 10 meters.
FA object needs to say three statements
9 Incorrect. Refer to Section 2 Lesson 5.
10, 17 Alice, objects inherit the characteristics oftheir: r
Mark for Review
(2) Points
@ Cass (*)
Project
7 Program
Cc Code
@ comet
Which of
a
the Tsar for Review
howin
flowing (1) Points
exampleof
nesting
Inan
Alice
program?
12.
13.
14,
15.
Text is nested inside of a comments tile,
Distance, duration, and direction arguments are nested inside of @
procedure,
‘A move procedure Is nested inside of a turn procedure.
.90
Five Do Together statements are nested inside of a Bo In Order
statement. (*)
>
@ Correct
Which Alice control statement executes a set of procedures simultaneously?
Mark for Review
(1) Points
© Doin order
Cc Together
{@ Do together (*)
c While
Correct
\Which of the folowing instructions turns the clown fish left § revolutions?
Mark for Review
(2) Points
C_ this.clownFish tur Left 0.5
4@ thisclownFish turn Left 5.0 (*)
C_ thisclownFish turn Left 5
7 this Fish turn Lett 5
In Alice, each class has a set of pre-defined procedures and functions. True or
false? Mark for Review
(1) Points,
@ Tol")
C Faise
Correct
To add a procedure to myFirstMethod, right-click on the procedure you wish to
add and select the Add button. True or false? Mark for Review
(1) Points
c Tue1.70
acoess
the
Alice
Code
ecitor
from
the
‘Scene
editor,
which
button
do
you
lick?
& False (*)
& Correct
r
Mark for Review
(1) Points
Edit Code (*)
2
Code Editor
code
2990
‘Access Code Editor
@ Correct
12, What is the purpose of a function in Alice?
3.
‘To compute and answer a question about an abject. (*)
2
To posttion the object in the Scene editor.
‘To define how the object should execute a task.
To save the project,
290
@ Correct
In an Alice program, which code Is executed when the Run button Is clicked?
‘The one-shot procedures selected in the Scene editor.
‘The code entered in myMethod in the Code editor.
2900
‘The code entered in the class's procedure In the procedures tab,
‘The code entered in myFirstMethod in the Code editor. (*)
a
@ Conect
r
r
Mark for Review
(2) Points
Mark for Review
(1) Points4.
\When something is broken or doesn't work as intended in a software program, itis referred to as a >
— Mark for Review
(2) Points
Debug
Bug (*)
Code
ao
Error
290
@ Correct
5, Functions answer questions about an object, such ass height, width, depth and even distance to f-
another object. True or false? Mark for Review
(1) Points
w@ Te)
co False
& Correct
6, From your [=
Alice lessons, Mark for Review
which
Programming
(1) Points
Instruction
represents
the following
movement
Aturth
moves
forward half
the distance
tothe
flower
C_ this.Turtle move Forward this.Turtle getDistanceTo this Flower * 2
Cthis.Turtle move Forward this. Turtle getDistanceTo this.Flower / 0.5
C_ this.Turtle move Forward this,Turtle getDistanceTo this.Flower / 1.0
@ _ this.Turtle move Forward this.Turtle getDistanceTo this Flower / 2.0 (*)
© Comrect
In Alice, which of the following arguments could be replaced with a random number? r
Mark for Review
(a) Points
(Choose all correct answers)Distance (*)
x
Direction
Procedure name
a4094
Object name
Duration (*)
a
@ comet
1, From your Ale lessons, which of the fllowing are reasons why random numbers would be =
used by a computer? Mark for Review
(2) Points
(Choose all correct answers)
For simulation. (*)
x
For security. (*)
x
For opening a project.
a4
For creating procedures.
@ conect
¢9, In Alice, there is a limit of 10 objects per scene. True or false? r
Mark for Review
(2) Points
c Tue
@ False (*)
Correct
10, Manually manipulating an Alice object with your cursor is a way to precisely position an object. =
True or false? Mark for Review
(4) Points
Tue
@& Fae)
© Conrect
41, In Alice,
weno Terk tor Review
objects are
synchronized (1 Points
and move
together,
this means
that one
abject is
C Acdass of another(7 Aninstance of another
An object of another
@ Avehicle of another (+)
Comect
12, Which of the following actions would require a control statement to control animation timing?
Mark for Review
(1) Points
(Choose all correct answers)
Abird flying. (*)
a
A fish swimming. (*)
A rock object turning.
A biped object walking. (*)
a0
Correct
13, A scenario gives the Alice animation a purpose. True or false?
Mark for Review
(2) Points
we Tue (*)
Cc False
Correct
414, From your Alice lesson, Inheritance means that the superclass Inhets strats fom the p=
subclass. True oF false? Mark for Review
(1) Points
@ Tue
co False (*)
@ Incorrect. Refer to Section 2 Lesson 5.
415, In Alice, when a new procedure Is declared, all subclasses ofthe superclass wil inherit the
procedure, True or false? Mark for Review
(a) Points
@ Tue (")
False
@ Correct