NEW
Font size
S
M
L
XL
WorksheetsAlice 2 - Chapter 3
Total questions: 10
Worksheet time: 5mins
Name
Class
Date
1.
What are the value types used in Alice?
a)
objects, classes
b)
Boolean, string, object, number
c)
methods, functions, properties
d)
variables, parameters, lists
2.
An expression is a math or logic operation on numbers or other types of values. Which of these operators is NOT used for these expressions.
a)
addition +
b)
multiplication *
c)
division /
d)
boolean true/false
3.
Which of the following uses functions and expressions to check current conditions
a)
conditional execution
b)
repetition
c)
sequential execution
4.
What is the difference between a method and a function?
a)
a function answers a question and a method performs an action
b)
a function is easy and a method is hard
c)
a method can not use a function
5.
Which of the following is a relational operator?
a)
=
b)
+
c)
>
d)
*
6.
What type of statement is used to check a condition and make a decision.
a)
loop
b)
while
c)
if/else
7.
What statement is a simple control structure that provides for repeating an instruction (or block of instructions) a counted number of times?
a)
while
b)
do-in-order
c)
loop
d)
for-all-together
8.
Which control structure would you use if you wanted to have the robot move forward if it was taller than the rock?
a)
loop
b)
if/else
c)
do-in-order
d)
do-together
9.
What control structure would you use to have the kangaroo jump up and down 8 times?
a)
if/else
b)
loop
c)
do-together
d)
do-in-order
10.
What type of value gives a result of true or false?
a)
number
b)
object
c)
boolean
d)
string
Reset
