Alice Programming
Learn Alice in FREE step-by-step lessons.
Quiz on Variables in Alice 3
After watching the videos in the section, you should understand how to declare and use variables and constants.
Write down the answers first. Click the to check your answer.
What is the differnce between a variable and a constant?
The value of a variable can change, a constant cannot change.
What are the 4 basic types in Alice?
Double, Integer, Boolean, and String
The argument amount for move, turn and roll is a ____ type.
double
Which tile lets you declare a variable?
variable
Which tile lets you change the value of a variable?
assign
True or False: The value of a constant can change.
False: As the name implies, constants do not change (except in the code editor)
Where will you see the word final?
in front of a constant declaration
Adding a variable to the code is also called ___ a variable
declaring
True or False: A variable or constant can be used as an argument in most commands.
True! That is the whole point!
What type would you declare a variable used as an argument in the turn command?
double
Please review the material for any questions you miss.