Professional Documents
Culture Documents
Uts 31217
Uts 31217
Uts 31217
If you need
Mark for Review
to repeat a
(1) Points
group of
Java
statements
many
times,
which Java
construct
should you
use?
repeat...until
if
Correct
True (*)
False
Correct
Scenario
Code
Storyboard (*)
Scene editor
Correct
True (*)
False
Correct
Infinite loop
Scene
Procedure (*)
Gallery
Correct
6.To save a
Mark for Review
class to
(1) Points
the
myClasses
directory
you do so
at the
________
level.
eventListener
Scene
object
Class (*)
Correct
A class of another
An instance of another
An object of another
True
False (*)
11.A complete
Mark for Review
Alice
(1) Points
instruction
includes
which of the
following
components?
Image
Class
Amount (*)
Direction (*)
Procedure (*)
conditional (*)
infinite
together
switch
Correct
13. Which of the following is not one of the positioning axes used
Mark for Review
in Alice 3?
(1) Points
w (*)
Correct
14. Results of arithmetic operations cannot be stored in a
Mark for Review
variable. True or false?
(1) Points
True
False (*)
Correct
15. The list below describes variables. All are correct except
Mark for Review
which one?
(1) Points
Correct
16.Variable
Mark for Review
values
(1) Points
can be
changed
as often
as you
like.
True or
false?
True (*)
False
Correct
17. Define the value of the variable LapCount based on the following
Mark for Review
math calculation: LapCount + 10 = 15
(1) Points
10
15
5 (*)
Correct
True
False (*)
19. In Alice, where are objects added and positioned in the scene?
Mark for Review
(1) Points
The template
The gallery
True
False (*)
21.From your
Mark for Review
Alice lessons,
(1) Points
which of the
following are
types of
storyboards?
Actual
Visual (*)
Textual (*)
Factual
Fictional
22. In Alice, if only objects that walk on four legs need to use a
Mark for Review
procedure, in which superclass would the procedure be
(1) Points
declared?
Biped
Prop
Quadruped (*)
Swimmer
Correct
Correct
Correct
Section 3
(Answer all questions in this section)
26.Using the
Mark for Review
Greenfoot
(1) Points
IDE, when is a
constructor
automatically
executed?
False
Correct
True
False (*)
Correct
!=
==
>= (*)
>
Correct
31.In
Mark for Review
Greenfoot,
(1) Points
a
semicolon
is not
necessary
at the end
of a
method
that uses
dot
notation.
True or
false?
True
False (*)
True
False (*)
True (*)
False
Correct
34. Defined methods are methods that are only created by the
Mark for Review
Greenfoot development team?
(1) Points
True
False (*)
keynames[0] (*)
keynames["a"]
keynames["a" key]
keynames[2]
36.From your
Mark for Review
Greenfoot
(1) Points
lessons,
which of
the
following
logic
operators
represents
"and"?
&
&& (*)
Symbol <
Symbol =
Symbol &
Symbol + (*)
bee.setImage("bee.png");
39. Which of the following type of audience should you ask to play
Mark for Review
your Greenfoot game during the testing phase?
(1) Points
Programmer
Target (*)
Testing
Primary
41.In
Mark for Review
Greenfoot,
(1) Points
which of
the
following
methods
return the
world that
the
instance
lives in?
getXY()
getRotation()
World getClass()
Correct
Documentation (*)
Act method
Inspector
If-statement
Correct
Correct
44. From your Greenfoot lessons, the reset button resets the
Mark for Review
scenario back to its initial position. True or false?
(1) Points
True (*)
False
Correct
Greenfoot.pressed(this)
Greenfoot.mouseClicked(this) (*)
Actor.clicked(this)
Greenfoot.clicked(this)
46.What type
Mark for Review
of
(1) Points
parameter
does the
Greenfoot
playSound
method
expect?
47. An instance variable can be saved and accessed later, even if the
Mark for Review
instance no longer exists. True or false?
(1) Points
True
False (*)
Correct
String statement
Degrees to turn
Correct
Parameter void
String statement
True or false response
Correct
Asterisks **
Square brackets [ ]
Parnetheses ( )
Correct