Section 2
1. In Alice, objects inherit the characteristics of their:
Class (*)
2. A textual storyboard helps the reader understand the actions that will take place during the animation. True or false?
True (*)
3. In Alice, if a procedure is declared for a clownFish class, which classes can use the procedure?
ClownFish class (*)
4. Alice uses built-in math operators. They are:
All of the above (*)
5. In Alice, which of the following programming statements moves the alien backward the distance to the asteroid, minus 2 meters?
this.Alien move backward {this.Alien getDistanceTo this.Asteroid -2} (*)
6. 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?
An instance (*)
7. Which of the following statements about methods is false?
Classes must be defined directly within a method definition. (*)
8. From your Alice lessons, built-in functions provide precise property details for the following areas:
Proximity, size, spatial relation, and point of view. (*)
9. From your Alice lessons, what is the purpose of nesting?
To add visual structure to your program. (*)
10. Debugging is the process of finding bugs in a software program. True or false?
True (*)
11. A loop can be infinite (continue forever) or conditional (stops upon a condition). True or false?
True (*)
12. When you import a class from another file you have to import the entire class. True or false?
False (*)
13. To save a class to the myClasses directory you do so at the ________ level.
Class (*)
14. Which handle style would be used to rotate an object's sub-part about the x, y, and z axes?
Rotation (*)
15. Which is an example of the Boolean variable type?
True or False (*)
16. In Java code the { } brackets are used to represent what statements?
(Choose all correct answers)
Begin(*)
End(*)
17. In Alice, which of the following is not a control statement?
Move (*)
18. In Alice, a computer program requires functions to tell it how to perform the procedure. True or false?
False (*)
19. In Alice, the setVehicle procedure will associate one object to another. True or false?
True (*)
20. In Alice, where are arithmetic operators available?
(Choose all correct answers)
Amount argument (*)
Duration argument (*)
Get Distance functions (*)
22. What is the purpose of a function in Alice?
To compute and answer a question about an object. (*)
23. Which of the following elements of the Alice animation should be tested before the animation is considered complete?
All of the above. (*)
24. The Alice animation should be tested throughout development, not just at the end of the animation's development. True or false?
True (*)
Section 3
25. To execute a method in your Greenfoot game, where is it called from?
The act method (*)
26. Which one of the following can be used to detect when 2 actors collide?
isTouching() (*)
27. The list below displays components of the Greenfoot source code editor except one. Which one
should be removed?
Instance creator (*)
28. From your Greenfoot lessons, where do you review a class's inherited methods?
Documentation (*)
29. In Greenfoot, you must first create an instance before you create a class. True or false?
False (*)
30. Which of the following are examples of default superclasses that are present in a new Greenfoot scenario?
(Choose all correct answers)
World (*)
Actor (*)
31. Using the Greenfoot IDE, when is a constructor automatically executed?
When a new instance of the class is created. (*)
32. In Greenfoot, actor constructors can be used to create images or values and assign them to the variables. True or false?
True (*)
33. In Greenfoot, which method is used to add a new instance to a scenario when the world is initialized?
addObject (*)
34. When a Greenfoot code segment is executed in an if-statement, each line of code is executed in sequential order. True or false?
True (*)
35. From your Greenfoot lessons, which of the following comparison operators represents "greater than"?
>(*)
36. From your Greenfoot lessons, which axes define an object's position in a world?
(Choose all correct answers)
Y(*)
X(*)
37. Which of the following comparison operators represents "greater than or equal"?
>= (*)
38. Which of the following features of Greenfoot will locate syntax errors in your program?
Compilation (*)
39. When designing a game in Greenfoot, it helps to define the actions that will take place in a textual storyboard. True or false?
True (*)
40. In Greenfoot, a local variable is declared at the beginning of a class. True or false?
False (*)
41. Which of the following is an example of string concatenation?
Instead of entering ".png" after each image file name, add + ".png" after the imageName value in the programming statement. (*)
42. In Greenfoot, when is a local variable most often used?
Within loop constructs (*)
43. An array is an object that holds multiple methods. True or false?
False (*)
44. In Greenfoot, you can only interact with the scenario using a keyboard.
False (*)
45. Greenfoot has tools to record sound. True or false?
True (*)
46. In Java what is casting?
When you take an Object of one particular type and turn it into another Object type. (*)
47. Using the Greenfoot IDE, only five instances can be added to a scenario. True or false?
False (*)
48. In Greenfoot, which of the following options are not possible when associating an image file with an instance?
Add a video (*)
49. 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 the act method are executed. True or false?
True (*)
50. In the Greenfoot IDE, an instance's position is on the x and y coordinates. True or false?
True (*)
Section 2
1. In Alice, when using the getDistanceTo function what menu option would you use to subtract a set value from the distance?
Math (*)
2. From your Alice lessons, if you examined a science process that had many steps, which of the following is a way that 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. (*)
3. When presenting your Alice animation, it is not important to give the audience a reason to listen to the presentation. True or false?
False (*)
4. Identify an example of an Alice expression.
12 + 15 = 27 (*)
5. Alice uses built-in math operators; they are:
All of the above (*)
6. From your Alice lessons, what does the Count control statement do?
Executes statements a specific number of times. (*)
7. Which of the following is not a relational operator?
//(*)
8. In Java, which symbol is used to assign one value to another?
==(*)
9. When you import a class from another file you have to import the entire class. True or false?
False(*)
10. An event is any action initiated by the user that is designed to influence the programメs execution during play.
True(*)
11. What do lines 9 and 11 do in the following code
Accept user input and store them in the variables num1 and num2. (*)
12. Main is an example of what in the following code?
public static void main (String[] args) {
System.out.println{"Hello World!");
}
A method (*)
13. A flowchart is a useful way to illustrate how your Alice animation's characters will look. True or false?
False (*)
14. From your Alice lessons, a flowchart could be created in a software program, or documented in a journal. True or false?
True(*)
15. From your Alice lessons, what does inheritance mean?
Each subclass inherits the methods and properties of its superclass. (*)
16. What do moving objects provide to your scene?
The action (*)
17. A conditional loop is a loop that will continue forever. True or false?
False (*)
18. Which of the following actions would require a control statement to control animation timing?
(Choose all correct answers)
A bird flying. (*)
A fish swimming. (*)
biped object walking. (*)
19. In Alice, which of the following is not a control statement?
Move (*)
20. In Alice, which control statement is used to invoke simultaneous movement?
Do Together (*)