Beruflich Dokumente
Kultur Dokumente
com/full-answer-oracle-academy-java-fundamentals-midterm-exam-and-final/
http://deniace.blogspot.ba/2017/01/oracle-java-fundamentals-section-2-quiz.html
Friday, 13 January 2017
True
False (*)
12. In Alice the Functions tab will display the pre-defined functions for the selected instance. True or false?
True (*)
False
13. What is the first step to programming an object to turn left in Alice?
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?
1. Define the value of the variable LapCount based on the following math calculation: LapCount + 10 = 15
2
15
4
5 (*)
10
Whole Number
Decimal Number
Color
Function (*)
4. From your Alice lessons, animations should be tested by the programmer before they are considered complete. True or
false?
True (*)
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?
True
False (*)
True
False (*)
7. Which of the following does not describe methods?
10. In Alice, what tab would you choose to start a new animation with a pre-populated world?
Recent
Blank Slate
Starters (*)
My Projects
12. A data type defines the type of procedures a variable can store. True or false?
True
False (*)
13. If a 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?
True (*)
False
14. In Alice, the use of conditional control structures allows what two types of loops?
15. In Alice, which one of the following is not a pre-defined control structure?
do in order
do together
do while (*)
while
<
= (*)
>
//
2. What is the output produced by the following code?
j is 10
j is 5
k is 5
j is 5
k is 5 (*)
j is 10
k is 10
j is 15
k is 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. If you need to repeat a group of Java statements many times, which Java construct should you use?
5. In Alice it is not possible to transfer a class from one animation to another. True or false?
True
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 Activation/time
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):
(*)
10. In Alice, we use the WHILE control statement to implement the conditional loop. True or false?
True (*)
False
11. In Alice, which of the following programming statements moves the butterfly forward, double the distance to the tree?
If or Where
3*3=9 (*)
Move forward 1 meter
"I 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?
True (*)
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?
True
False (*)
15. What can be used as a guideline to ensure your Alice animation fulfills animation principles?
1. An event is any action initiated by the user that is designed to influence the programメs 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
+
/
-
*
%
$ (*)
None of the above
4. If a 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?
True (*)
False
True
False (*)
6. The list below contains method descriptions. All are correct except which one?
9. Define the value of the variable LapCount based on the following math calculation: LapCount + 10 = 15
2
5 (*)
15
4
10
10. The initializer of a variable with a TextString value type could be (select all that apply):
(Choose all correct answers)
"Greetings" (*)
"Howdy" (*)
"4" (*)
None of the above.
6. The list below contains method descriptions. All are correct except which one?
2
5 (*)
15
4
10
10. The initializer of a variable with a TextString value type could be (select all that apply):
15. The Alice If control structure requires the false statement to be populated. True or false?
True
False (*)
Click and drag the desired programming instruction into the Scene editor.
Click and drag the desired programming instruction into the Procedures tab.
Click and drag the desired programming instruction into the myFirstMethod tab. (*)
Click and drag the desired programming instruction into the Functions tab.
Correct
Turn
Move
Roll
Spin (*)
Correct
The template
The gallery
Correct
4. 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?
True
False (*)
Correct
6. From your Alice lessons, which programming instruction represents the following movement: A
turtle moves forward half the distance to the flower.
7. In Alice, you can use a function to get the current color of the object. True or false?
True (*)
False
8. In Alice, new procedures are declared in the Scene editor. True or false?
True
False (*)
Correct
9. Defining the scenario, and the Alice animation to represent the scenario, is the first step to
programming your animation. True or false?
True (*)
False
Correct
10. In Alice, you could identify when new procedures need to be declared by reviewing the textual
storyboard for the animation. True or false?
True (*)
False
11. To add a
procedure to
myFirstMethod,
right-click on the
procedure you
wish to add and
select the Add
button. True or
false?
True
False (*)
12. The say procedure in Alice plays an audio file. True or false?
True
False (*)
13. When you disable a programming instruction, it is still executed when you run the Alice
animation. True or false?
True
False (*)
Correct
14. In Alice, a walking motion for a bipedal object can be achieved without the Do Together
control statement. True or false?
True
False (*)
15. In Alice, the setVehicle procedure will associate one object to another. True or false?
True (*)
False
Correct
True
False (*)
Correct
3. Which of the following would a clown fish object in Alice inherit from its class?
Fins
Two eyes
Procedures
Functions
All of the above (*)
4. A textual storyboard helps the reader understand the actions that will take place during the
animation. True or false?
True (*)
False
Correct
5. 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?
6. To
access
the
Alice
Code
editor
from
the
Scene
editor,
which
button
do you
click?
Code Editor
Access Code Editor
Code
Edit Code (*)
7. Debugging and testing is the process of running the animation one time, and adjusting the control
statements, procedures, and arguments.
True
False (*)
Correct
8. Which of the following is a reason why you might disable programming statements in your Alice
code?
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.
True
False (*)
11.In Alice,
the
setVehicle
procedure
will
associate
one object
to
another.
True or
false?
True (*)
False
Correct
12. In Alice, different programming is not required for different objects, because all objects
move the same way. True or false?
True
False (*)
13. Debugging is the process of finding bugs in a software program. True or false?
True (*)
False
14. Which Alice execution task corresponds with the following storyboard statement?
<br><br>Cat turns to face mouse.
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
Control order
True
False (*)
Correct
2. In Alice, when using the getDistanceTo function what menu option would you use to subtract a set value
from the distance? Mark for Review
(1) Points
Custom DecimalNumber
Random
Math (*)
Correct
3. In Alice, a computer program requires functions to tell it how to perform the procedure. True or false?
Mark for Review
(1) Points
True
False (*)
Correct
4. In Alice, the procedures' arguments allow the programmer to adjust the object, motion, distance
amount, and time duration. True or false? Mark for Review
(1) Points
True (*)
False
5. Which of the following are ways to open an existing Alice project file after launching Alice?
Mark for Review
(1) Points
Double-click on the project file name in the folder it is stored in on your computer.
Click and drag the file from your computer into Alice 3.
Browse for the project using the File System tab. (*)
Correct
6. All objects
in Alice Mark for Review
have three
(1) Points
dimensional
coordinates
on which
axes?
x (*)
y (*)
z (*)
Correct
7. When something is broken or doesn't work as intended in a software program,
it is referred to as a _________? Mark for Review
(1) Points
Debug
Code
Error
Bug (*)
Correct
True (*)
False
Correct
9. In Alice, which of the following situations could benefit from declaring a new
procedure? Mark for Review
(1) Points
Class (*)
Project
Program
Code
Correct
11. Which of
the Mark for Review
following
(1) Points
is an
example
of
nesting
in an
Alice
program?
Correct
Do in order
Together
Do together (*)
While
Correct
13. Which of the following instructions turns the clown fish left 5 revolutions?
Mark for Review
(1) Points
Correct
14. In Alice, each class has a set of pre-defined procedures and functions. True or
false? Mark for Review
(1) Points
True (*)
False
Correct
True
False (*)
Correct
1. To
access Mark for Review
the
(1) Points
Alice
Code
editor
from
the
Scene
editor,
which
button
do
you
click?
Code Editor
Code
Correct
Correct
3. In an Alice program, which code is executed when the Run button is clicked?
Mark for Review
(1) Points
Correct
4. When something is broken or doesn't work as intended in a software program, it is referred to as a
_________? Mark for Review
(1) Points
Debug
Bug (*)
Code
Error
Correct
5. Functions answer questions about an object, such as its height, width, depth and even distance to
another object. True or false? Mark for Review
(1) Points
True (*)
False
Correct
6. From your
Alice lessons, Mark for Review
which
(1) Points
programming
instruction
represents
the following
movement:
A turtle
moves
forward half
the distance
to the
flower.
Correct
7. In Alice, which of the following arguments could be replaced with a random number?
Mark for Review
(1) Points
Direction
Procedure name
Object name
Duration (*)
Correct
8. From your Alice lessons, which of the following are reasons why random numbers would be
used by a computer? Mark for Review
(1) Points
Correct
True
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
(1) Points
True
False (*)
Correct
11. In Alice,
when two Mark for Review
objects are
(1) Points
synchronized
and move
together,
this means
that one
object is:
A class of another
An instance of another
An object of another
Correct
12. Which of the following actions would require a control statement to control animation timing?
Mark for Review
(1) Points
Correct
True (*)
False
Correct
14. From your Alice lessons, inheritance means that the superclass inherits its traits from the
subclass. True or false? Mark for Review
(1) Points
True
False (*)
15. In Alice, when a new procedure is declared, all subclasses of the superclass will inherit the
procedure. True or false? Mark for Review
(1) Points
True (*)
False
Correct