wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Unit 3 and 4 Computer Programming Test Review - Alice

Total questions: 38

Worksheet time: 19mins

Name
Class
Date
1.

What is a computer program?

a)

A sequence of instructions that tell the computer what to do

b)

A placeholder for a method

c)

An answer to a question

d)

A command statement to allow the user to control the order of instruction

2.

Which keyword indicates the presence of conditional execution?

a)

DO IN ORDER

b)

DO TOGETHER

c)

IF

d)

//

3.

An Alice object understands movement commands in up, down, left, right, forward, and backward directions based on what?

a)

The camera's view

b)

The user's sense of direction

c)

Another object's view

d)

The object's sense of direction

4.

What is a method?

a)

a block of program code that defines how to perform a specific task

b)

An argument passed into a method

c)

A specific programming language

d)

A command statement that controls the order of instruction run

5.

What is nesting?

a)

a placeholder for an object

b)

A type of command statement

c)

writing one program code inside another

d)

A type of method

6.

What programming "piece" (statements and phrases) allows the user to ask questions about a property?

a)

Method

b)

Function

c)

Parameter

d)

Comment

7.

What types of values may not be returned by built-in functions in Alice?

a)

Numbers

b)

Boolean

c)

Object

d)

Parameter

8.

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

a)

It avoids collision

b)

It seems simple

c)

It uses parameters

d)

It automatically puts the Robot at the center of the rock

9.

What is the purpose of a control structure?

a)

it allows the programmer to apply a method to different objects

b)

it allows the user to control an object with an event

c)

it allows the programmer to control the order in which instructions are executed

d)

it allows the programmer to leave comments

10.

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?

a)

Method

b)

Argument

c)

Command statement

d)

Conditional execution

11.

What is it called when a section of code is run a number of times?

a)

Repetition

b)

Instruction

c)

Argument

d)

Method

12.

What is a Boolean Value

a)

Integers

b)

True/False

c)

Objects

d)

Strings

13.

Which of the following built-in function calls and expressions is NOT acceptable for use in an If/Else control structure?

a)

Is the bear taller than the bunny?

b)

Is the man larger than the woman?

c)

Is the bunny within 2 meters of the pond?

d)

How far is the bunny from the bear?

14.

Which is an example of a repetition control construct?

a)

IF/ELSE

b)

DO IN ORDER

c)

LOOP

d)

DO TOGETHER

15.

What tool is used for copying a set of instructions from one place to another in the editor?

a)

play button

b)

trash can

c)

clipboard

d)

undo button

16.

How far does the bear move in given the program code?

a)

0 meters

b)

10 meters left

c)

5 meters left

d)

10 meters right

17.

How far does the bunny move?

a)

10 meters

b)

50 meters

c)

15 meters

d)

2 meters

18.

The bunny is 6 meters behind the bear, facing the bear. How far will the bunny move?

a)

0 meters

b)

10 meters

c)

There is no way to know.

d)

60 meters

19.

It is NOT conventional for the names of objects to begin with a capital letter.

a)

True

b)

False

20.

Objects of the same class do not share commonalities.

a)

True

b)

False

21.

If two objects are instantiated from the same class, the properties of these objects are identical, however, these two objects are unique.

a)

True

b)

False

22.

Primitive methods are built-in to Alice objects. These primitive methods can be used in methods defined by the programmer.

a)

True

b)

False

23.

Methods that specifically reference more than one object are typically written as object-level methods in Alice.

a)

True

b)

False

24.

Calling world-level methods from within an object-level method generally is good programming practice.

a)

True

b)

False

25.

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.

a)

True

b)

False

26.

What does a class define?

a)

properties of the world

b)

all objects used in a program

c)

a particular kind of object

d)

a method

27.

How are classes predefined in Alice?

a)

as properties in the world

b)

as functions for an object

c)

as methods for an object

d)

as 3D models provided in the gallery

28.

What does "instantiating the class" mean?

a)

The action of creating and displaying an object from a class

b)

Creating a method for a class

c)

Creating a world with an object

d)

Using an object-level method to avoid collision

29.

It is not acceptable to pass a sound file to a method via parameters.

a)

True

b)

False

30.

Which is defined as "a coordinated sequence of instructions that will be carried out when requested"?

a)

comment

b)

parameter

c)

method

d)

argument

31.

One purpose of using a method is to divide a program into small manageable pieces that work together to create a meaningful whole.

a)

True

b)

False

32.

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?

a)

Secondary

b)

Primitive

c)

Evolutionary

d)

Objective

33.

What does it mean to "call a method"?

a)

The action of requesting that Alice execute the instructions in a method

b)

The action of setting up parameters in a method

c)

The action of setting up a world with objects that have built-in methods

d)

The action of using a conditional statement to make a decision in a method

34.

Which of the following cannot be sent to a method's parameter?

a)

Object

b)

Value

c)

Another method

d)

Sound

35.

The rock is 3 meters from the bunny. How may times will the bear and rock move forward?

a)

5 times

b)

1 time

c)

3 times

d)

0 times

36.

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.

a)

True

b)

False

37.

An instruction a statement that executes to make objects perform a certain action.

a)

True

b)

False

38.

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?

a)

Nothing because they cannot move to each other's position if they are both moving at the same time.

b)

They will move to each other's position.

c)

Only Object 1 will move to Object 2's position

d)

They will meet at the same location in the center.