Você está na página 1de 8

1Each parameter is listed with its name first, then its data type.

True or
Mark for
. false?
Review
(1) Points

True
False (*)

Correct

2Review the code below.


Mark for
. Review
(1) Points

Select the result from the following statements about what happens when
the loopVal >= 5 .

The message "Printing Some Text" will be printed until loopVal is


no longer less than 5.
The variable loopVal is initialized to 0.
The condition loopVal < 5 is tested before executing anything
further in the program. (*)
The condition loopVal < 5 returns a boolean value.
None of the above.

Correct

3The animation checklist helps you confirm that all elements of the Alice
Mark for
. animation are operating as expected. True or false?
Review
(1) Points

True (*)
False

Correct
4Which of the following elements of the Alice animation should be tested
Mark for
. before the animation is considered complete?
Review
(1) Points

Math calculations operate as expected.


Objects move with smooth timing.
Comments are added to each sequence of instructions.
Control statements are operating as expected.
All of the above. (*)

Incorrect. Refer to Section 2 Lesson 12.

5From your Alice lessons, when testing your animation, you should test
Mark for
. that comments were added below each sequence of instructions in the Review
code. True or false? (1) Points

True
False (*)

Correct

Page 1 of 3

6. An event is any
Mark for
action initiated by
Review
the user that is
(1) Points
designed to
influence the
programs
execution during
play.

True (*)

False
Correct

7. With keyboard
Mark for
controls, you can
Review
create Alice
(1) Points
animations where
the user controls an
object that
interacts with other
objects. True or
false?

True (*)

False

Correct

8. Which is an
Mark for
example of the
Review
Boolean variable
(1) Points
type?

Hello World

True or False
(*)

An object
Incorrect. Refer
to Section 2
Lesson 10.

9. Define the value of


Mark for
the variable
Review
LapCount based on
(1) Points
the following math
calculation:
LapCount + 10 = 15

15

5 (*)

10

Correct

10. In Alice, which of


Mark for
the following
Review
programming
(1) Points
statements moves
the cat forward the
distance to the
bird?
this.Bird move
forward
{this.Bird
getDistanceTo
this.Cat}

this.Cat move
{this.Bird
getDistanceTo
this.Cat / 2}

this.Cat move
forward
{this.Bird
getDistanceTo
this.Cat / 2}

this.Cat move
forward
{this.Cat
getDistanceTo
this.Bird} (*)

Correct

eview your answers, feedback, and question scores below. An asterisk (*) indicates a correct
answer.

Section 2 Quiz 2 - L8-L14


(Answer all questions in this section)

11In Alice, which of the following programming statements moves the


Mark for
. cat backward, half the distance to the bird? Review
(1) Points

this.Cat move backward {this.Cat getDistanceTo this.Bird / 2} (*)


this.Bird move forward {this.Bird getDistanceTo this.Cat / 2}
this.Cat move forward {this.Bird getDistanceTo this.Cat / 2}
this.Cat move backward {this.Bird getDistanceTo this.Cat / 2}

Incorrect. Refer to Section 2 Lesson 9.

12Which of the following does not describe variables?


Mark for
.
Review
(1) Points

A place in memory where data of a specific type can be stored for


later retrieval and use.
Has a type associated with it.
Has a unique name.
Arranged in rows and columns. (*)

Correct

13Expressions with relational operators produce true and false values.


Mark for
. True or false? Review
(1) Points

True (*)
False

Correct

14In Alice, which one of the following is not a pre-defined control


Mark for
. structure?
Review
(1) Points

do while (*)
do together
while
do in order

Correct

15Which of the following IF control structures command the blue tang


Mark for
. fish to roll and simultaneously move down if it collides with a shark, Review
or move forward if it does not collide with a shark? (1) Points
(*)
Incorrect. Refer to Section 2 Lesson 8.

Page 3 of 3