Quiz Oracle Greenfoot
Quiz Oracle Greenfoot
Quiz Oracle Greenfoot
In
Mark for Review
Greenfoot,
(1) Points
the turn
method
expects
what type of
information
in its
parameters?
Parameter void
String statement
True (*)
False
Correct
True
False (*)
Incorrect. Refer to Section 3 Lesson
2.
True
False (*)
Correct
6. In
Greenfoot, Mark for Review
you can (1) Points
use
comparison
operators
to compare
a variable
to a
random
number.
True or
false?
True (*)
False
Correct
7. An if-else statement executes its first code block if a condition is true, and
its second code block if a condition is false, but not both. True or false? Mark for Review
(1) Points
True (*)
False
==
> (*)
!=
<
Correct
Act method
Documentation (*)
If-statement
Inspector
10. In Greenfoot, a method with what kind of return type is used to learn more
about an object's orientation? Mark for Review
(1) Points
11. In
Greenfoot, Mark for Review
after a (1) Points
subclass is
created,
what has
to occur
before
instances
can be
added to
the
scenario?
Compilation (*)
Creation of an instance
Correct
12. In Greenfoot, the class holds the general attributes of an instance, such as
the methods it inherits. True or false? Mark for Review
(1) Points
True (*)
False
13. From your Greenfoot lessons, the reset button resets the scenario back to
its initial position. True or false? Mark for Review
(1) Points
True (*)
False
Correct
True (*)
False
Correct
15. From your Greenfoot lessons, how do you know the program does not
contain syntax errors? Mark for Review
(1) Points
Correct
1. In
Greenfoot, Mark for Review
which of (1) Points
the
following
methods
display an
object's
orientation?
void move()
void turn()
Correct
2. The list below displays components of the Greenfoot source code editor
except one. Which one should be removed? Mark for Review
(1) Points
Documentation
Class description
Comments
Method body
==
> (*)
!=
<
Correct
True (*)
False
Correct
True
False (*)
6. Which of
the Mark for Review
following (1) Points
comparison
operators
represents
"greater
than or
equal"?
!=
==
>= (*)
>
Correct
True (*)
False
Correct
Correct
10. In Greenfoot, you must first create an instance before you create a class.
True or false? Mark for Review
(1) Points
True
False (*)
11. When a
program Mark for Review
is tested (1) Points
once and
it works
then
testing is
complete.
True
False (*)
True
False (*)
Syntax
Method
Field (*)
Class
Instance
14. In Greenfoot, the body of the method is located in between which of the
following characters? Mark for Review
(1) Points
Parnetheses ( )
Asterisks **
Square brackets [ ]
Correct
True (*)
False
Correct
1. In
Greenfoot, Mark for Review
which of (1) Points
the
following
is the
correct
notation
for calling
a method
for an
instance
of a class?
Method-name.object-name(parameters);
object-name.method-name(parameters); (*)
class-name.method-name(parameters);
Method-name.object-name;
2. An if-else statement executes its first code block if a condition is true, and
its second code block if a condition is false, but not both. True or false? Mark for Review
(1) Points
True (*)
False
Correct
True (*)
False
Correct
True
False (*)
5. In Greenfoot, only 10 methods can be written for each class in the Code
editor. True or false? Mark for Review
(1) Points
True
False (*)
Correct
6. In
Greenfoot, Mark for Review
which of (1) Points
the
following
methods
display an
object's
orientation?
void turn()
void move()
Correct
7. An instance variable can be saved and accessed later, even if the instance
no longer exists. True or false? Mark for Review
(1) Points
True
False (*)
Correct
True
False (*)
Correct
Draw an image
Import an image
10. In Greenfoot, methods can be called in the act method. When the Act
button is clicked in the environment, the methods in the method body of Mark for Review
the act method are executed. True or false? (1) Points
True (*)
False
Correct
11. From
your Mark for Review
Greenfoot (1) Points
lessons,
how do
you know
the
program
does not
contain
syntax
errors?
Correct
12. Which of the following Java syntax is used to correctly create a Bee
subclass? Mark for Review
(1) Points
Correct
13. From your Greenfoot lessons, the reset button resets the scenario back to
its initial position. True or false? Mark for Review
(1) Points
True (*)
False
Correct
True (*)
False
Correct
Set image...
Remove Duke()
Inspect Duke()
New subclass...