Вы находитесь на странице: 1из 21

1.

In Alice, when using the getDistanceTo function what menu option would you use to subtract a
set value from the distance? Math (*)

2. In Alice, functions are dragged into the control statement, not the procedure. True or false?
False(*)

3. An animation gives the scenario a purpose. True or false? False (*)

4. From your Alice lessons, which of the following is a tool to show the logic of an
animation? Flowchart (*)

5. In Alice, when a new procedure is declared, all subclasses of the superclass will inherit
the procedure. True or false? True (*)

6. From your Alice lessons, random numbers are numbers generated by the user with a
pattern in their sequence. True or false? False (*)

7. In Alice, control statements are dragged into the Code editor. True or false? True (*)

8. In Alice, where are objects added and positioned in the scene? The Scene editor (*)

9. In Alice, the procedures' arguments allow the programmer to adjust the object,
motion, distance amount, and time duration. True or false? True (*)

10. In Alice, which of the following is not a control statement? Move (*)

12. Saved Alice projects can be opened and edited. True or false? True (*)

13. After each execution of your Alice animation, what element or elements could be adjusted
in your code? All of the above (*)

14. The Alice move procedure contains which arguments? Amount (*) Direction (*)

15. What is the first step to programming an object to turn left in Alice?
Select the object to program from the instance menu. (*)

1. In Alice, what function would you use to get a wholenumber from the
user? getIntegerFromUser (*)

2. From your Alice lessons, which programming instruction represents the following
movement: A cat moves forward double (or twice) the distance to the tree.
this.Cat move Forward this.Cat getDistanceTo this.tree * 2.0 (*)
3. To access the Alice Code editor from the Scene editor, which button do you click? Edit
Code (*)

4. Which of the following is a reason why you might disable programming statements in
your Alice code? To help isolate portions of code during testing. (*)

5. Which of the following is not a reason for why comments are helpful in an Alice
program? Comments change the functionality of the program. (*)

6. In Alice, Do In Order and Do Together: Are control statements (*)

7. In Alice, when two objects are synchronized and move together, this means that one
object is: A vehicle of another (*)

8. In Alice, once an instance is added to the scene, it cannot be deleted. True or


false? False (*)

9. Which Alice control statement executes a set of procedures simultaneously?


Do together (*)

10. From your Alice lessons, which control statement executes instructions
simultaneously? Do together (*)

11. In Alice, there is a limit of 10 objects per scene. True or false? False (*)

12. Alice objects move relative to the orientation of the person viewing the animation.
True or false? False (*)

13. In Alice, new procedures are declared in the Scene editor. True or false False (*)

14. Which Alice tool is used to demonstrate the process flow of an


animation? Flowchart (*)

15. In Alice, objects inherit the characteristics of their: Class (*)

1. Which one of the following event listener types is not available at the top-level of the
addEvent drop down list in Alice? Collision (*)

2. You want an event to happen when an object collides with another object, which
category of event handler would you choose? Position/Orientation (*)

2. The list below describes variables. All are correct except which one? Arranged in rows and
columns. (*)
4. If a value has been assigned to (is stored in) a variable, that value will be overwritten when
another value is assigned to the variable using the assignment "=" operator. True or false? True (*)

5. 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? B(*)

6. Which is an example of the Boolean variable type? True or False (*)

7. In Alice, you must place the control structure in the code editor before adding any code
that will go within it. True or false? False (*)

8. Which of the following IF control structures command the blue tang fish to roll and
simultaneously move down if it collides with a shark, or move forward if it does not collide with a
shark? D(*)

9. Identify an example of an Alice expression. 12 + 15 = 27 (*)

10. In Alice, which of the following programming statements moves the cat forward the
distance to the bird? this.Cat move forward {this.Cat getDistanceTo this.Bird} (*)

11. From your Alice lessons, functional decomposition is the process of taking a complex problem
or process and growing it into larger parts that are easier to manage. True or false? False (*)

12. In Alice, it is not possible to upload the animation directly to YouTube. False (*)

13. What can be used as a guideline to ensure your Alice animation fulfills animation
principles? An animation checklist (*)

14. What do lines 7, 10 and 13 do in the following code?

Print "A", "B" and the value of num3 on the screen. (*)

15. Review the code below.


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

The condition loopVal < 5 is tested before executing anything further in the program. (*)

1. Which Alice execution task corresponds with the following storyboard statement? <br><br>Cat
turns to face mouse. this.cat turnToFace this.mouse (*)

2. From your Alice lessons, what is the purpose of nesting?


To add visual structure to your program. (*)

3. In Alice, new procedures are declared in the Scene editor. True or false? False (*)

3. From your Alice lessons, which of the following are types of storyboards?

Visual (*)
Textual (*)

5. Which Alice tool is used to demonstrate the process flow of an animation? Flowchart (*)

6. Only acting objects have one-shot procedures. True or false? False (*)

8. How do you create a programming instruction in Alice?

Click and drag the desired programming instruction into the myFirstMethod tab. (*)

9. What is the first step to programming an object to turn left in Alice? Select the object to
program from the instance menu. (*)

10. The say procedure in Alice plays an audio file. True or false? False (*)

11. In Alice, each class has a set of pre-defined procedures and functions. True or false? True (*)

12. In Alice, the setVehicle procedure will associate one object to another. True or
false? True (*)

13. In Alice, different programming is not required for different objects, because all objects
move the same way. True or false? False (*)

14. In Alice, how would you get the length of a fish object? getDepth (*)

15. Functions answer questions about an object, such as its height, width, depth and even
distance to another object. True or false? True (*)
1. In Alice, what tab would you choose to start a new animation with a pre-populated
world? Starters (*)

2. An Alice event is considered what? A keystroke or mouse click. (*)

3. Variable values can be changed as often as you like. True or false? True (*)

4. A variable is a place in memory where data of a specific type can be stored for later
retrieval and use by yourprogram True (*)

5. In Alice, as part of the recording process you can demonstrate the events that are
programmed within your animation. True or false? True (*)

6. In Alice, what are the forms of a scenario?

A problem to solve. (*)


A task to perform. (*)

7. When presenting your Alice animation, it is not important to give the audience a reason to
listen to the presentation. True or false? False (*)

8. In Alice, which of the following programming statements moves the butterfly forward,
double the distance to the tree?

this.Butterfly move backward {this.Butterfly getDistanceTo this.Tree * 2}

9. An example of an expression is: 3*3=9 (*)

10. In Java, a function is a method that must return a value. True or false? False (*)

11. Each parameter is listed with its name first, then its data type. True or
false? False (*)

12. A data type defines the type of procedures a variable can store. True or false? False (*)

13. What is the result of the following code?


x > y : true
x < y : false (*)
14. What tool can be used to diagram an IF conditional execution statement? Process flow
diagram (*)

15. From your Alice lessons, the IF control structure can process one true and one false
response. True or false? True (*)

1. All objects in Alice have three dimensional coordinates on which axes?

x (*)
y (*)
z (*)

4. From your Alice lessons, which programming instruction represents the following movement: A
turtle moves forward half the distance to the flower.

this.Turtle move Forward this.Turtle getDistanceTo this.Flower / 2.0 (*)

5. Before you can begin to develop the animation storyboard, what must be defined?

The scenario (*)

6. In Alice, objects inherit the characteristics of their: Class (*)

8. From your Alice lessons, what does the Count control statement do?

Executes statements a specific number of times. (*)

9. In Alice, control statements are dragged into the Code editor. True or false? True (*)

10. When is an instance created in Alice? After the class icon is dragged into the scene. (*)

12. Debugging and testing is the process of running the animation one time, and adjusting the
control statements, procedures, and arguments. False (*)

13. It is important to save often while debugging your program. True or false? True (*)

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

Classes must be defined directly within a method definition. (*)

2. Consider the following: You want to use the BufferedReader and InputStreamReader
classes to get user input from the command line. Which one of the following import statements
must you use?

import java.buffer.*; import java.awt.*; import java.io.input.*; import java.io.*; (*)


3. The list below displays valid primitive types in Java, except which one? String (*)

4. Which of the following does not describe variables?

Arranged in rows and columns. (*)

5. Which of the following are examples of elements you would test in your Alice animation?

Event listeners trigger the correct responses. (*)

Math expressions calculate as expected. (*)


Objects move with smooth timing. (*)

7. 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?

2. Present the problem as an animation. (*)

8. In Alice, we can avoid object collision using what? Using math operators. (*)

9. Alice uses built-in math operators. They are: All of the above (*)

10. An event is any action initiated by the user that is designed to influence the
program?s execution during play. True (*)

11. When creating an event based on a keypress which event handler would you
use? Keyboard (*)

12. A variable is a named location inside the computer's memory; once there, the
information can be retrieved and changed. True or false? True (*)

13. From your Alice lessons, variables are fixed and cannot be changed. True or
false? False (*)

15. Which of the following IF control structures command the blue tang fish to roll and
simultaneously move down if it collides with a shark, or move forward if it does not collide with
a shark? C(*)

1. In Alice, which control statement is used to invoke simultaneous movement?


Do Together (*)

2. In Alice, a computer program requires functions to tell it how to perform the


procedure. True or false? False (*)
3. Manually manipulating an Alice object with your cursor is a way to precisely
position an object. True or false? False (*)

4. Only acting objects have one-shot procedures. True or false? False (*)

7. In Alice, which of the following are benefits of separating out motions into their
own procedures?
It can allow subclasses of a superclass to use a procedure. (*)
It simplifies code and makes it easier to read. (*)
It allows many objects of a class to use the same procedure. (*)

9. Which Alice execution task corresponds with the following storyboard


statement?
Cat turns to face mouse.
this.cat turnToFace this.mouse (*)

11. From your Alice lessons, built-in functions provide precise property details for the
following areas: Proximity, size, spatial relation, and point of view. (*)

13. What is the purpose of a function in Alice?


To compute and answer a question about an object. (*)

14. The comments you enter in Alice should describe the sequence of actions that
take place in the code segment. True or false? True (*)

15. Which of the following is a reason why you might disable programming
statements in your Alice code? To help isolate portions of code during testing. (*)

1. From your Alice lessons, where on an object do an object's axes


intersect? At the object's center point (*)

4. In Alice, a computer program requires functions to tell it how to perform the


procedure. True or false? False (*)

6. Which of the following is an example of nesting in an Alice program?


Five Do Together statements are nested inside of a Do In Order statement. (*)

8. Programming comments do not affect the functionality of your Alice animation.


True or false? True (*)

9. What is the first step to entering comments in an Alice program? Drag and
drop the comments tile above a code segment. (*)

10. In Alice the Functions tab will display the pre-defined functions for the selected
instance. True or false? True (*)

11. In Alice, what function would you use to get a wholenumber from the
user? getIntegerFromUser (*)

12. In Alice, there is no way of reordering the function list in the function tab. True or
false? False (*)

13. Defining the scenario, and the Alice animation to represent the scenario, is the
first step to programming your animation. True or false? True (*)

14. In Alice, declaring a new procedure to shorten code and make it easier to read is
a procedural abstraction technique. True or false? True (*)

3. A scenario gives the Alice animation a purpose. True or false? True (*)

5. In Alice, where you would you get access to the specific joints of an object that
are not available through the object drop down menu? functions tab (*)

9. In Alice, the computer specifies the low and high range values for the range of
numbers from which to pull a randomized number. True or false? False (*)

10. When something is broken or doesn't work as intended in a software program, it


is referred to as a _________? Bug (*)

12. In Alice the Functions tab will display the pre-defined functions for the selected
instance. True or false? True (*)

15. Which of the following actions would require a control statement to control
animation timing?
A biped object walking. (*) A bird flying. (*)
A fish swimming. (*)

1. Define the value of the variable LapCount based on the following math
calculation: LapCount + 10 = 15 ? 5 (*)

2. Which of the following is not an Alice variable value type? Function (*)

4. From your Alice lessons, animations should be tested by the programmer before
they are considered complete. True or false True (*)

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

7. Which of the following does not describe methods?


Is associated with an instance variable. (*)

9. Alice uses built-in math operators; they are: All of the above (*)

11. In Alice, when is the sceneActivationListener executed?


At the beginning of the animation (*)

14. In Alice, the use of conditional control structures allows what two types of
loops? conditional (*)

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


structure? do while (*)

1. In Java, which symbol is used to assign one value to another? = (*)

2. What is the output produced by the following code?


j is 5
k is 5 (*)

3. When you want specific code to be executed only if certain conditions are met, what
type of Java construct would you use? if (*)

4. If you need to repeat a group of Java statements many times, which Java construct
should you use?
while loop (*)
do while loop (*)

5. In Alice it is not possible to transfer a class from one animation to another. True or
false? False (*)

6. You want an event to happen when an object collides with another object, which
category of event handler would you choose? Position/Orientation (*)

7. Which of the following is not an Alice variable value type? Function (*)

8. The initializer of a variable with a TextString value type could be (select all that
apply):
"Greetings" (*)
"Howdy" (*)
"4" (*)
10. In Alice, we use the WHILE control statement to implement the conditional loop.
True or false? True (*)

13. From your Alice lessons, a textual storyboard provides a detailed, ordered list of the
actions each object performs in each scene of the animation. True or false? True (*)

3. Which of the following is not a valid arithmetic operator in Java? $ (*)

6. The list below contains method descriptions. All are correct except which one?
A subprogram that acts on data and often returns a value. (*)
A set of code that is referred to by name. (*)

6. The list below contains method descriptions. All are correct except which one?
A subprogram that acts on data and often returns a value. (*)
A set of code that is referred to by name. (*)

15. The Alice If control structure requires the false statement to be populated. True
or false? False (*)

2. The Alice Scene editor contains tools to rotate the camera view. True or false?
True (*)

4. The Procedures tab and the Functions tab are the two tabs available in the Alice
methods panel. True or false?
True (*)

5. Which of the following instructions turns the clown fish left 5 meters?
this.clownFish turn Left 5.0 (*)

6. Which of the following procedures turns an object to face another object?


turn
turnToFace (*)

7. Which of the following is the default control statement in myFirstMethod?


Do In Order (*)

8. To add a procedure to myFirstMethod, right-click on the procedure you wish to add


and select the Add button.
False (*)

9. The Alice move procedure contains which arguments?


Direction (*)
Amount (*)
10. An argument is a value that the procedure uses to complete its task. True or false?
True (*)

13. Which of the following ways can you alter a procedure in Alice?
Copy (*)
Disable (*)
Reorder (*)

14. When you disable a programming instruction, it is still executed when you run the
Alice animation. True or false?
False (*)

15. After each execution of your Alice animation, what element or elements could be
adjusted in your code?
All of the above (*)

2. Which Alice execution task corresponds with the following storyboard statement? Cat
rolls to the left.
this.Cat roll Left 1.0 (*)

4. In Alice, the while control statement executes a set of procedures a specific number
of times. True or false?
False (*)

6.In Alice, which of the following arguments could be replaced with a random number?
Distance (*)
Duration (*)

3. Breaking down a problem or process into smaller parts makes it easier to manage.
True or false?
True (*)

4. A textual storyboard helps the reader understand the actions that will take place
during the animation. True or false?
True (*)

6. A flowchart is a useful way to illustrate how your Alice animation’s characters will
look. True or false?
False (*)

7. From your Alice lessons, what does inheritance mean?


Each subclass inherits the methods and properties of its superclass. (*)

8. Which of the following would a clown fish object in Alice inherit from its class?
All of the above (*)

9. Procedural abstraction may need to be implemented if an object in Alice needs to


perform an action, but there isn’t an inherited procedure that accomplishes that action.
True or false?
True (*)

10.Which of the following is a reason why procedural abstraction may be used in


programming an animation?
The code is too long. (*)
The code is difficult to read. (*)
The programmer wants to reuse the code. (*)

11.In Alice, new procedures are declared in the Scene editor. True or false?
False (*)

12.In Alice, you could identify when new procedures need to be declared by reviewing
the textual storyboard for the animation. True or false?
True (*)

13.In Alice, which of the following situations could benefit from declaring a new
procedure?
An object does not have a default procedure for a motion, such as swimming. (*)
Multiple objects need to use a motion, such as bunnies hopping. (*)
A single motion, such as walking, takes up a lot of room in myFirstMethod. (*)

14.In Alice, if only objects that walk on four legs need to use a procedure, in which
superclass would the procedure be declared?
Quadruped (*)

2.In Alice, which control statement is used to invoke simultaneous movement?


Do Together (*)

3.In Alice, a walking motion for a bipedal object can be achieved without the Do
Together control statement. True or false?
False (*)

6.In Alice, which procedure is used to assign one object as the vehicle of another?
setVehicle (*)

1. Saved Alice projects can be opened and edited. True or false?


True*

2. Which of the following are ways to open an existing Alice project file after launching
Alice?
Select the project from the My Projects tab.*
Browse for the project using the File System tab.*

5. In Alice, what does the resize handle style do?


Change size of the object and stretch it along the x, y, and z axes*

6. Manually manipulating an Alice object with your cursor is a way to precisely position
an object. True or false?
False*

7. Which of the following is not an example of a one-shot procedure?


Spin*

9. When you edit an object’s properties in the Scene editor, the changes do not take
effect until the Run button is clicked. True or false?
False*

10. One type of object property is an object’s position in the scene. True or false?
True*

11. Which of the following is not one of the positioning axes used in Alice 3? w*

13. Which handle style would be used to rotate an object’s sub-part about the x, y, and z
axes?
Rotation*

14. Rings will appear around a sub-part indicating how you can reposition it. True or
false?
True*

2. 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} (*)
• this.Alien move backward {this.Alien getDistanceTo this.Asteroid * 2}

3. What is the first step to entering comments in an Alice program?


• Drag and drop the comments tile above a code segment. (*)

4. Which of the following are examples of elements you would test in your Alice
animation?
• Math expressions calculate as expected. (*)
• Objects move with smooth timing. (*)
• Event listeners trigger the correct responses. (*)
6. Main is an example of what in the following code?
public static void main (String[] args) {
System.out.println{"Hello World!");
}
• A method (*)

7. Which of the following does not describe methods?


• Is associated with an instance variable. (*)

9. In Java code the { } brackets are used to represent what statements?


• end (*)
• begin (*)

10. In Alice, if only objects that walk on four legs need to use a procedure, in which
superclass would the procedure be declared? When a new procedure is declared, all
subclasses of the superclass will inherit the procedure.
• Quadruped (*)

13. Which of the following is an incorrectly written programming statement?


• move(): (*)

14. From your Greenfoot lessons, what can methods belong to?
• Classes (*)
• Objects (*)

15. In Greenfoot, the turn method expects what type of information in its parameters?
• Degrees to turn (*)

16. In Greenfoot, the move method expects what type of information in its
parameters?
• Integer of steps to move forward (*)

17. In the Greenfoot IDE, an instance's position is on the x and y coordinates. True or
false?
• True (*)

18. From your Greenfoot lessons, what are the ways that you can view a class's
methods?
• In the class's documentation (*)
• By right-clicking on an instance (*)

19. Which class holds the method that ends a Greenfoot game?
• Greenfoot (*)
20. In the following Greenfoot array, what statement would you write to access the "a"
key?
Keynames = {"a", "b", "c", "d"};
• keynames[0] (*)

21. In Greenfoot, what is a common letter used for the loop variable?
• I (*)

22. In Greenfoot you can interact with the scenario using a mouse.
• True (*)

23. Which of the following demonstrates a Greenfoot subclass/superclass


relationship?
• A rose is a subclass of the flower superclass. (*)

24. To execute a method in your Greenfoot game, where is it called from?


• The act method (*)

1. Which of the following does not describe methods? Is associated with an instance
variable. (*)

3. Event listeners look for and resopnd to the interactivity of the computer. True or
false? False (*)

4. Which one of the following event listener types is not available at the top-level
of the addEvent drop down list in Alice? Collision (*)

7. Which of the following is not a relational operator? // (*)

8. Which of the following does not describe variables? Arranged in rows and
columns. (*)
10. A conditional loop is a loop that will continue forever. True or false? False (*)

12. From your Alice lessons, the "Checklist for Animation Completion" does not ask
questions about the scenario and storyboards, because these are not valid parts of
the animation creation process. True or false? False (*)

13. Which of the following are examples of elements you would test in your Alice
animation? (Choose all correct answers): Objects move with smooth timing. (*),
Math expressions calculate as expected. (*), dan Event listeners trigger the correct
responses. (*)

17. In Alice, functions are dragged into the control statement, not the procedure.
True or false? False (*)
18. In Alice, when using the getDistanceTo function what menu option would you
use to subtract a set value from the distance? Math (*)

19. In Alice, once an instance is added to the scene, it cannot be deleted. True or
false? False (*)

20. Which of the following actions would require a control statement to control
animation timing? (Choose all correct answers): A bird flying. (*), A fish swimming.
(*), dan A biped object walking. (*)

21. In Alice, Do In Order and Do Together: Are control statements (*)

22. Which of the following would not be an argument in an Alice programming


instruction that commands a person object to move forward 2 meters? Person's
height (*)

23. The Alice move procedure contains which arguments? Direction (*) dan
Amount (*)

24. Which of the following instructions turns the clown fish left 5 meters?
this.clownFish turn Left 5.0 (*)

25. In Alice, which of the following is the most likely situation where procedural
abstraction could be used? Five dogs all need to bark and run at the same time. (*)

28. From your Alice lessons, which of the following are reasons why random
numbers would be used by a computer? For security. (*) dan For simulation. (*)

29. In Alice, which of the following arguments could be replaced with a random
number? Distance (*) dan Duration (*)

32. Copying programming instructions saves time when programming your Alice
project. True or false? True (*)

39. In Alice, which of the following are benefits of separating out motions into
their own procedures? (Choose all correct answers): It simplifies code and makes it
easier to read. (*),It allows many objects of a class to use the same procedure. (*),
dan It can allow subclasses of a superclass to use a procedure. (*)

40. Which of the following ways can you modify the code in the code editor
window? (Choose all correct answers): Copy & paste (*),Disable (*), Drag to reorder
(*)
41. The Procedures tab and the Functions tab are the two tabs available in the
Alice methods panel. True or false? True (*)

43. In Alice, which function is used to move an object directly to the center point
of another object? getDistance (*)

44. In Alice, you can use a function to get the current color of the object. True or
false? True (*)

45. From your Alice lessons, what is a one-shot procedural method?


A procedure that is used to make a scene adjustment. (*)

48. The move procedure in Alice moves an object in how many different possible
directions? 6 (*)

49. Procedural abstraction may need to be implemented if an object in Alice needs


to perform an action, but there isn't an inherited procedure that accomplishes that
action. True or false? True (*)

50. In Alice, a walking motion for a bipedal object can be achieved without the Do
Together control statement. True or false? False (*)

53. Debugging is the process of finding bugs in a software program. True or false?
True (*)

56. Functions answer questions about an object, such as its height, width, depth
and even distance to another object. True or false? True (*)

57. From your Alice lessons, built-in functions provide precise property details for
the following areas: Proximity, size, spatial relation, and point of view. (*)

59. In Alice, the setVehicle procedure will associate one object to another. True or
false? True (*)

60. In Alice, which of the following situations could benefit from declaring a new
procedure? (Choose all correct answers):
Multiple objects need to use a motion, such as bunnies hopping. (*),
An object does not have a default procedure for a motion, such as swimming. (*),
An object does not have a default procedure for a motion, such as swimming. (*)

61. A scenario gives the Alice animation a purpose. True or false? True (*)
62. In Alice, if a procedure is declared for a clownFish class, which classes can use
the procedure? ClownFish class (*)

63. Which button is selected in the Alice file menu to save a different version of an
animation? Save As... (*)

65. One type of object property is an object's position in the scene. True or false?
True (*)

66. Which of the following is an example of nesting in an Alice program?


Five Do Together statements are nested inside of a Do In Order statement. (*)

68. The delay procedure in Alice halts an object's motion before the next motion
begins. True or false? True (*)

70. From your Alice lessons, the Do In Order control statement is also referred to
by what other name? Sequential control (*)

73. Alice 3 will periodically remind you to save your project. True or false? False (*)

74. Before you can begin to develop the animation storyboard, what must be
defined? The scenario (*)

75. From your Alice lessons, inheritance means that the superclass inherits its
traits from the subclass. True or false? False (*)

76. In Alice, you could identify when new procedures need to be declared by
reviewing the textual storyboard for the animation. True or false? True (*)

77. What is the first step to entering comments in an Alice program? Drag and
drop the comments tile above a code segment. (*)

78. In an Alice program, which code is executed when the Run button is clicked?
The code entered in myFirstMethod in the Code editor. (*)

79. In Alice, each class has a set of pre-defined procedures and functions. True or
false? True (*)

80. When you import a class from another file you have to import the entire class.
True or false? False (*)

81. Which of the following is not a type of event listener in Alice? Cursor (*)
84. When presenting your Alice animation, ensure that your presentation is
thoroughly tested and complete. True or false? True (*)

86. In Alice, what are the forms of a scenario? A problem to solve. (*), A task to
perform. (*)

87. A typical application uses various values and these values continuously change
while the program is running. True or false? True (*)

89. A variable is a place in memory where data of a specific type can be stored for
later retrieval and use by your program. True (*)

90. If you need to repeat a group of Java statements many times, which Java
construct should you use? (Choose all correct answers) do while loop (*), while loop
(*)

91. If you want one message to display if a user is below the age of 18 and a
different message to display if the user is 18 or older, what type of construct would
you use? if (*)

92. In Alice, the use of conditional control structures allows what two types of
loops? (Choose all correct answers) conditional (*)

93. In Alice, which one of the following is not a pre-defined control structure? do
while (*)

95. In Alice, control statements are dragged into the Code editor. True or false?
True (*)

96. The first step to using a top-down approach to programming is to create a


table to align the storyboard steps to the programming instructions. True or false?
False (*)

97. In Alice, how is a one-shot procedure different from procedures in the Code
editor?
A one-shot procedure executes only one time to re-position the object, while
procedures in the Code editor execute every time the Run button is clicked. (*)

98. Alice objects move relative to the orientation of the person viewing the
animation. True or false? False (*)

99. In Alice, you can define your own procedures for a class, but not your own
functions. True or false? False (*)
100. In Alice, there is no way of reordering the function list in the function tab.
True or false? False (*)
102. From your Alice lessons, which of the following are types of storyboards?
(Choose all correct answers) Visual (*), Textual (*)

104. In Alice, which of the following programming statements moves the fish
forward, the distance to the rock, minus the depth of the rock?
this.Fish move forward {this.Fish getDistanceTo this.Rock - this.Rock getDepth} (*)

105. 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} (*)

106. In Alice it is not possible to transfer a class from one animation to another.
True or false? False (*)

107. In Alice, when using a while loop you can only execute a single line of code
within it. True or false? False (*)

108. In Alice, you can access the Java on the side option through which menu
option? Window (*)

109. A variable is a place in memory where data of a specific type can be stored for
later retrieval and use by your program. True (*)

110. Each parameter is listed with its name first, then its data type. True or false?
False (*)

111. What do lines 9 and 11 do in the following code?

Accept user input and store them in the variables num1 and num2. (*)

112. Each parameter is listed with its name first, then its data type. True or false?
False (*)

114. The Alice animation should be tested throughout development, not just at
the end of the animation's development. True or false? True (*)

115. Expressions with relational operators produce true and false values. True or
false? True (*)

Вам также может понравиться