Name ______

BioMedical Technology

Alice Chapter 2 Test

Each question is worth 5 points. It is possible to get over 100 on this test.

1. What is the name for a block of program code that defines how to perform a specific task?

a. a class

b. a method

c. the World

d. a segment

Answer: _____

2. What allows the programmer to tell Alice whether to perform actions in order, or simultaneously?

a. Alice asks the user when the program is run

b. blocks

c. all actions are performed in order

d. control statements

Answer: _____

3. An item of information that must be supplied in a method call so that Alice can execute a specified action is formally known as a(n) ______.

a. argument

b. direction

c. statement

d. method

Answer: _____

4. An instruction is composed of ______.

a. a method name and potentially multiple arguments

b. one single argument

c. just the method name

d. a method name and one single argument

Answer: _____

5. What is the purpose of the "+" to the left of some objects' names in the Object tree?

a. there never is any "+" sign

b. to give the programmer access to the subparts of an object

c. the "+" symbolizes when more than one of that object has been added to the world

d. the "+" symbolizes that the object is a person object

Answer: _____

6. The concept of writing one program statement inside of another program statement is known as ______.

a. indenting

b. combining

c. condensing

d. nesting

Answer: _____

7. Comments are instructions that cause some action to take place.

a. True

b. False

Answer: _____

8. Given the initial scene shown below, where Alice is facing the tree, one meter from it. From Alice's point of view, she can see a penguin to the left side of the tree and a monkey on the right side of the tree. Each animal is one meter away from the tree. What is the result of running the following block of code?

a. Alice is near the tree facing the monkey.

b. Alice is near the tree facing the penguin.

c. Alice is near the tree and facing the tree.

d. Alice does not move, instead turning to the right .25 revolutions.

e. Alice is near the penguin and facing the tree.

Answer: _____

9. Given the initial scene shown below, where Alice is facing the tree, one meter from it. From Alice's point of view, she can see a penguin to the left side of the tree and a monkey on the right side of the tree. Each animal is one meter away from the tree. What would be the result of running the following piece of code?

a. Alice is near the tree facing the penguin.

b. Alice is near the tree facing the monkey.

c. Alice is near the penguin facing the tree.

d. Alice is near the penguin facing away from the tree.

e. Alice is near the monkey facing away from the tree.

Answer: _____

10. The initial scene below consists of a single penguin.

After the following code is executed, where will the penguin be with respect to its own orientation

a. two meters forward from its starting position

b. one meter forward and one meter to the right of its starting position

c. in the same place

d. one meter forward and one meter to the left of its starting position

Answer: _____

11. The initial scene below consists of a single penguin.

How much collective distance does the penguin move when the following code is executed?

Answer:

12. The initial scene below consists of a single penguin.

How much collective distance does the penguin move when the following code is executed?

Answer:

13. In the following scene,

a monkey is standing on a toy ball. The orientation of each object is unknown. The execution of the below code produces which result?

a. The monkey and ball will move forward towards the camera at the same time.

b. First, the monkey will move forward towards the camera. Then, the ball will move forward towards the camera.

c. We do not know which direction the ball will move, but the monkey will follow the direction of the ball, so as to keep standing on it.

d. We do not know which direction the ball will move; the monkey and ball may or may not move in the same direction as each other.

Answer: _____

14. In the following scene,

a monkey is standing on a toy ball. The orientation of each object is unknown. The execution of the below code produces which result?

a. The monkey and ball will move forward towards the camera at the same time.

b. First, the monkey will move forward towards the camera. Then, the ball will move forward towards the camera.

c. We do not know which direction the ball will move, but the monkey will follow the direction of the ball, so as to keep standing on it.

d. We do not know which direction the ball will move; the monkey and ball may or may not move in the same direction as each other.

Answer: _____

15. What does it mean to say that the “cat's vehicle is the horse”?

a. If the cat moves, so does the horse

b. Clicking on the cat makes the horse move

c. If the horse moves, so does the cat.

d. Clicking on the horse makes the cat move

e. None of the above

Answer: _____

16. Consider the following scene, code and patterns. Which pattern is traced on the ice by the ice skater when the code is run?

a. ∞

b. 

c.

d.

e. None of the above – the skater turns around in place

Answer: _____

17. Synchronizing the orientation of two objects achieves essentially the same effect as the vehicle property.

a. True

b. False

Answer: _____

18. In the following scene,

a monkey is standing on a toy ball and both have the same orientation. The toy ball is the vehicle of the monkey. The execution of the below code produces which result? a.

b.

c.

d. none of the above figures

Answer: _____

19. The following scene consists of a biplane.

The following code will be executed.

Where will the biplane be positioned after the code is run?

a. A

b. B

c. C

d. D

Answer: _____

20. There is no difference between the "turn to face" and "point at" methods. Some objects have a "turn to face" method, while other objects have the "point at" method instead.

a. True

b. False

Answer: _____

21. There is no difference between the move to and move toward methods.

a. True

b. False

Answer: _____