NEW
Font size
WorksheetsUnit 3 and 4 Computer Programming Test Review - Alice
Total questions: 38
Worksheet time: 19mins
What is a computer program?
A sequence of instructions that tell the computer what to do
A placeholder for a method
An answer to a question
A command statement to allow the user to control the order of instruction
Which keyword indicates the presence of conditional execution?
DO IN ORDER
DO TOGETHER
IF
//
An Alice object understands movement commands in up, down, left, right, forward, and backward directions based on what?
The camera's view
The user's sense of direction
Another object's view
The object's sense of direction
What is a method?
a block of program code that defines how to perform a specific task
An argument passed into a method
A specific programming language
A command statement that controls the order of instruction run
What is nesting?
a placeholder for an object
A type of command statement
writing one program code inside another
A type of method
What programming "piece" (statements and phrases) allows the user to ask questions about a property?
Method
Function
Parameter
Comment
What types of values may not be returned by built-in functions in Alice?
Numbers
Boolean
Object
Parameter
Why is the following solution considered effective?
move the "spiderRobot" the value of the distance returned by the "spiderRobot distance to rock - the width of the rock" built-in function, while the "spiderRobot" moves its legs
It avoids collision
It seems simple
It uses parameters
It automatically puts the Robot at the center of the rock
What is the purpose of a control structure?
it allows the programmer to apply a method to different objects
it allows the user to control an object with an event
it allows the programmer to control the order in which instructions are executed
it allows the programmer to leave comments
What is it called when some condition is checked and a decision is made about whether (or not) a certain section of the program code will be executed?
Method
Argument
Command statement
Conditional execution
What is it called when a section of code is run a number of times?
Repetition
Instruction
Argument
Method
What is a Boolean Value
Integers
True/False
Objects
Strings
Which of the following built-in function calls and expressions is NOT acceptable for use in an If/Else control structure?
Is the bear taller than the bunny?
Is the man larger than the woman?
Is the bunny within 2 meters of the pond?
How far is the bunny from the bear?
Which is an example of a repetition control construct?
IF/ELSE
DO IN ORDER
LOOP
DO TOGETHER
What tool is used for copying a set of instructions from one place to another in the editor?
play button
trash can
clipboard
undo button
How far does the bear move in given the program code?
0 meters
10 meters left
5 meters left
10 meters right
How far does the bunny move?
10 meters
50 meters
15 meters
2 meters
The bunny is 6 meters behind the bear, facing the bear. How far will the bunny move?
0 meters
10 meters
There is no way to know.
60 meters
It is NOT conventional for the names of objects to begin with a capital letter.
True
False
Objects of the same class do not share commonalities.
True
False
If two objects are instantiated from the same class, the properties of these objects are identical, however, these two objects are unique.
True
False
Primitive methods are built-in to Alice objects. These primitive methods can be used in methods defined by the programmer.
True
False
Methods that specifically reference more than one object are typically written as object-level methods in Alice.
True
False
Calling world-level methods from within an object-level method generally is good programming practice.
True
False
Since object-level methods deal with objects themselves, it is NOT acceptable to use instructions for all types of objects in an object-level method.
True
False
What does a class define?
properties of the world
all objects used in a program
a particular kind of object
a method
How are classes predefined in Alice?
as properties in the world
as functions for an object
as methods for an object
as 3D models provided in the gallery
What does "instantiating the class" mean?
The action of creating and displaying an object from a class
Creating a method for a class
Creating a world with an object
Using an object-level method to avoid collision
It is not acceptable to pass a sound file to a method via parameters.
True
False
Which is defined as "a coordinated sequence of instructions that will be carried out when requested"?
comment
parameter
method
argument
One purpose of using a method is to divide a program into small manageable pieces that work together to create a meaningful whole.
True
False
Every object in an Alice world has a repertoire of instructions it knows how to do (move, turn to face, etc.). What are these methods called?
Secondary
Primitive
Evolutionary
Objective
What does it mean to "call a method"?
The action of requesting that Alice execute the instructions in a method
The action of setting up parameters in a method
The action of setting up a world with objects that have built-in methods
The action of using a conditional statement to make a decision in a method
Which of the following cannot be sent to a method's parameter?
Object
Value
Another method
Sound
The rock is 3 meters from the bunny. How may times will the bear and rock move forward?
5 times
1 time
3 times
0 times
An expression a math operation on numbers or other kinds of values and a function asks a question about a condition or computes a value.
True
False
An instruction a statement that executes to make objects perform a certain action.
True
False
What happens if you move Object 1 to Object 2's position and move Object 2 to Object 1's position in a do together statement?
Nothing because they cannot move to each other's position if they are both moving at the same time.
They will move to each other's position.
Only Object 1 will move to Object 2's position
They will meet at the same location in the center.
