You are on page 1of 6

Section 2

(Answer all questions in this section)


1. In Alice, you can access the Java on the side option through which menu
option?
Mark for Review

(1) Points
Project
Run
Window (*)
Edit
Correct

2. Which of the following programming instructions commands the fish to


continuously move forward a random speed between 0.5 and 1.0 meters,
minus 0.25 meters, until it collides with the shark?
Mark for Review

(1) Points

(*)
Incorrect. Refer to Section 2 Lesson 10.

3. Alice uses built-in math operators; they are:


Mark for Review

(1) Points
Add and subtract
Multiply and divide
All of the above (*)
None of the above
Correct

4. Alice uses built-in math operators. They are:


Mark for Review

(1) Points
Add
Subtract
Multiply
Divide
All of the above (*)
Correct

5. If the value already exists in the variable it is overwritten by the


assignment operator (=). True or false?
Mark for Review

(1) Points
True (*)
False
Correct
6. Which of the following is not a valid arithmetic operator in Java?
Mark for Review

(1) Points
+
/
-
*
%
$ (*)
None of the above
Correct

7. From your Alice lessons, animations should be tested by the programmer


before they are considered complete. True or false?
Mark for Review

(1) Points
True (*)
False
Correct

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

(1) Points
True (*)
False
Correct

9. The Alice animation should be tested throughout development, not just at


the end of the animation's development. True or false?
Mark for Review

(1) Points
True (*)
False
Correct

10. You have a Class representing Cat. Each Cat can meow, purr, catch
mice, and so on. When you create a new cat, what is it called?
Mark for Review

(1) Points
An instance (*)
A subclass
A submethod
A subprogram
A variable class
Correct
Previous

11. Which of the following statements about methods is false?


Mark for Review

(1) Points
Classes must be defined directly within a method definition. (*)
Methods whose return type is not void are required to include a return
statement specifying what to return.
Java does not permit nesting one method definition within another method's
definition.
The order in which methods are listed within the class is not important.
Correct
12. In Alice, the use of conditional control structures allows what two types
of loops?
Mark for Review

(1) Points
conditional(*)

switch

infinite

together
Incorrect. Refer to Section 2 Lesson 8.

13. The Alice IF control structure requires the false statement to be


populated. True or false?
Mark for Review

(1) Points
True
False (*)
Correct

14. In Alice it is not possible to transfer a class from one animation to


another. True or false?
Mark for Review

(1) Points
True
False (*)
Incorrect. Refer to Section 2 Lesson 11.

15. To save a class to the myClasses directory you do so at the ________


level.
Mark for Review

(1) Points
Scene
Class (*)
object
eventListener
Correct
Previous

You might also like