Sunteți pe pagina 1din 14

1Which of

Mark for
. the
Review
following
(1) Points
IF control
structures
command
the blue
tang fish to
roll and
simultaneo
usly move
down if it
collides
with a
shark, or
move
forward if
it does not
collide
with a
shark?
(*)
Correct
2. What is the output produced by the following code?
Mark for
Review
(1) Points

j is 5
k is 5 (*)
j is 15
k is 15
j is 10
j is 5
k is 5
j is 10
k is 10
Correct
3. Expressions with relational operators produce true and false
Mark for
values. True or false?
Review
(1) Points
True (*)
False

Correct
4. From your Alice lessons, what does inheritance mean?
Mark for
Review
(1) Points
Each superclass inherits the methods and properties of its
subclass.
Each class has its own methods and properties that are non-
transferable to any other class.
Each subclass inherits the methods and properties of its
superclass. (*)
Each class inherits the methods and properties of all classes
available in Alice.
Correct
5. In Alice, procedural abstraction is the concept of making code
Mark for
easier to understand and reuse. True or false?
Review
(1) Points
True (*)
False

Correct
6.What does a
Mark for Review
visual
(1) Points
storyboard
help the
reader
understand?
(Choose all correct answers)
The components of the scene. (*)
How the initial scene will be set up. (*)
The actions that will take place. (*)
The code that is debugged.

Correct
7. In Alice, when is the sceneActivationListener executed?
Mark for Review
(1) Points
At the beginning of the animation (*)
When the user clicks on on object
At the end of the animation
When an object appears on screen

Correct
8. In Alice it is not possible to transfer a class from one
Mark for Review
animation to another. True or false?
(1) Points
True
False (*)

Correct
9. One type of object property is an object's position in the
Mark for Review
scene. True or false?
(1) Points
True (*)
False

Correct
10. From your Alice lessons, random numbers are set in the
Mark for Review
distance and duration arguments in a procedure. True or
(1) Points
false?
True (*)
False

Correct
11.In
Mark for Review
Alice,
(1) Points
we can
avoid
object
collisio
n using
what?
Downloading the Alice 3 collision detector app.
Slowing movements down.
Using object detection.
Using math operators. (*)

Correct
12. In Alice, which of the following programming statements
Mark for Review
moves the cat backward, half the distance to the bird?
(1) Points
this.Bird move forward {this.Bird getDistanceTo
this.Cat / 2}
this.Cat move backward {this.Bird getDistanceTo
this.Cat / 2}
this.Cat move backward {this.Cat getDistanceTo
this.Bird / 2} (*)
this.Cat move forward {this.Bird getDistanceTo
this.Cat / 2}
Correct
13. Which of the following does not describe methods?
Mark for Review
(1) Points
A set of code that is referred to by name.
Can be called at any point in a program simply by
utilizing its name.
A subprogram that acts on data and often returns a
value.
Is associated with an instance variable. (*)

Correct
14. In Java, a function is a method that must return a value.
Mark for Review
True or false?
(1) Points
True
False (*)

Correct
15. From your Alice lessons, if you examined a science process
Mark for Review
that had many steps, which of the following is a way that
(1) Points
you could apply functional decomposition to this process?
1. Identify the high level steps for the science concept.
2. Further refine and define the tasks needed for each
high level step.
3. Present the problem as an animation. (*)
1. Identify the detailed steps for the science concept.
2. Present the problem as an animation.
Present the problem as an animation.
1. Present the problem as an animation.
2. Further refine and define the tasks needed for each
high level step.
3. Identify the high level steps for the science concept.
Correct
16.The
Mark for Review
animatio
n (1) Points
checklist
helps you
confirm
that all
elements
of the
Alice
animatio
n are
operating
as
expected.
True or
false?
True (*)
False

Correct
17. The Procedures tab and the Functions tab are the two tabs
Mark for
available in the Alice methods panel. True or false?
Review
(1) Points
True (*)
False

Correct
18. In Alice, when two objects are synchronized and move
Mark for
together, this means that one object is:
Review
(1) Points
A class of another
An object of another
An instance of another
A vehicle of another (*)

Correct
19. In Alice, the procedures' arguments allow the programmer
Mark for
to adjust the object, motion, distance amount, and time
Review
duration. True or false?
(1) Points
True (*)
False

Correct
20. In Alice, Do In Order and Do Together:
Mark for
Review
(1) Points
Are move statements
Are control statements (*)
Are complex statements
None of the above

Correct
21.In
Mark for Review
Alice,
(1) Points
how
would
you
get the
length
of a
fish
object
?
getHeight
getLength
getWidth
getDepth (*)

Correct
22. Copying programming instructions saves time when
Mark for
programming your Alice project. True or false?
Review
(1) Points
True (*)
False

Correct
23. In Java code the { } brackets are used to represent what
Mark for
statements?
Review
(1) Points
(Choose all correct answers)
while
for
begin (*)
end (*)

Correct
24. Which is an example of the Boolean variable type?
Mark for
Review
(1) Points
True or False (*)
3
An object
Hello World

Correct

Section 3
(Answer all questions in this section)
25. Defined methods are methods that are only created by the
Mark for
Greenfoot development team?
Review
(1) Points
True
False (*)

Incorrect. Refer to Section 3


Lesson 6.
26.In
Mark for Review
Greenfoot,
(1) Points
a way to
have all
subclasses
of a
superclass
inherit a
method is
by adding
the
method to
the
superclass.
True or
false?
True (*)
False

Correct
27. From your Greenfoot lessons, a problem statement
Mark for
defines the purpose for your game. True or false?
Review
(1) Points
True (*)
False

Correct
28. When designing a game in Greenfoot, it helps to define
Mark for
the actions that will take place in a textual storyboard.
Review
True or false?
(1) Points
True (*)
False

Correct
29. In Greenfoot, the Run button repeatedly executes all of
Mark for
the programming statements in the class's act method in
Review
sequential order until the pause button is clicked. True or
(1) Points
false?
True (*)
False

Correct
30. In Greenfoot, a subclass is created by right-clicking on a
Mark for
superclass. True or false?
Review
(1) Points
True (*)
False

Correct
31.From your
Mark for Review
Greenfoot
(1) Points
lessons,
which
programming
statement
creates a new
Bee object,
and places it
at x = 120, y
= 100 in the
world?
addClass (new Bee( ), 120, 100);
Move(120,100);
addObject (new Bee( ), 120, 100); (*)
addWorld (new Bee( ), 120, 100);

Incorrect. Refer to Section 3


Lesson 5.
32. In Greenfoot you can use comparison operators to
Mark for
compare a variable to a random number. True or false?
Review
(1) Points
True (*)
False

Correct
33. In Greenfoot, you can use comparison operators to
Mark for
compare a variable to a random number. True or false?
Review
(1) Points
True (*)
False

Correct
34. In Greenfoot, the origin of the world coordinate
Mark for
system (0,0) starts in the center of the world. True or
Review
false?
(1) Points
True
False (*)

Correct
35. In the Greenfoot IDE, what does the AND operator
Mark for
(&&) do?
Review
(1) Points
Compares two boolean variables or expressions
and returns a result that is true if either of its
operands are true.
Compares two boolean values, and returns a
boolean value which is true if and only if both of
its operands are true. (*)
Compares two boolean values and returns a
boolean value which is true if either one of the
operands is true.
Compares two boolean values, and returns a
boolean value which is true if and only if one of
its operands are true.
Correct
36.Use your
Mark for
Greenfoot
Review
knowledge to
(1) Points
answer the
question:
String
concatenation
is a way to
avoid having
to write
additional
characters in
your source
code. True or
false?
True (*)
False

Incorrect. Refer to Section 3


Lesson 10.
37. Infinite loops are a common cause of errors in
Mark for
programming. True or false?
Review
(1) Points
True (*)
False

Correct
38. In Greenfoot, a local variable is declared at the
Mark for
beginning of a class. True or false?
Review
(1) Points
True
False (*)

Correct
39. From your Greenfoot lessons, what is the parameter of
Mark for
the following constructor that creates a new image,
Review
and designates it to the Actor class?
(1) Points
setImage (new GreenfootImage("Bee01.png"));
GreenfootImage
new
setImage
Bee01.png (*)

Correct
40. Using the Greenfoot IDE, when is a constructor
Mark for
automatically executed?
Review
(1) Points
When source code is written.
When the act method is executed.
When a new instance of the class is created. (*)
When a new image is added to the class.

Correct
41Greenfoot
Mark for Review
. Actor
(1) Points
instances
get their
images
from
which of
the
following?
Their methods
Their source code
Their image editor
Their class (*)

Incorrect. Refer to Section 3


Lesson 8.
42. Using the Greenfoot IDE, only five instances can be
Mark for
added to a scenario. True or false?
Review
(1) Points
True
False (*)

Correct
43. In Greenfoot, the body of the method is located in
Mark for
between which of the following characters?
Review
(1) Points
Square brackets [ ]
Asterisks **
Parnetheses ( )
Curly brackets { } (*)

Correct
44. In the Greenfoot IDE, an instance's position is on the x
Mark for
and y coordinates. True or false?
Review
(1) Points
True (*)
False

Correct
45. In Greenfoot, methods can be called in the act method.
Mark for
When the Act button is clicked in the environment, the
Review
methods in the method body of the act method are
(1) Points
executed. True or false?
True (*)
False

Correct
46From
Mark for Review
. your
(1) Points
Greenfoot
lessons,
which of
the
following
methods
return the
current
rotation
of the
object?
int getRotation() (*)
World getClass()
World getWorld()
getXY()

Correct
47. In Greenfoot, a method with what kind of return type is
Mark for
used to learn more about an object's orientation?
Review
(1) Points
non-void return type (*)
void return type
object return type
method return type

Correct
48. In Java what is casting?
Mark for
Review
(1) Points
Casting is when we remove an object from the world
Casting is when we change the coordinates of an actor
Casting is when we reset the state of an instance.
Casting is when we want to tell the java compiler that
a class we are accessing is really another type of class
(*)
Correct
49. Greenfoot has tools to record sound. True or false?
Mark for
Review
(1) Points
True (*)
False

Correct
50. You cannot record unique sounds in Greenfoot. You can
Mark for
only use the sounds that are stored in the Greenfoot
Review
library. True or false?
(1) Points
True
False (*)

Correct

S-ar putea să vă placă și