Zebra0.com

alice variablesAlice Programming

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 check to check your answer.

What is the differnce between a variable and a constant? answer

   The value of a variable can change, a constant cannot change.

What are the 4 basic types in Alice? answer

   Double, Integer, Boolean, and String

The argument amount for move, turn and roll is a ____ type. answer

   double

Which tile lets you declare a variable? answer

   variable

Which tile lets you change the value of a variable? answer

   assign

True or False: The value of a constant can change. answer

   False: As the name implies, constants do not change (except in the code editor)

Where will you see the word final? answer

   in front of a constant declaration

Adding a variable to the code is also called ___ a variable answer

   declaring

True or False: A variable or constant can be used as an argument in most commands. answer

   True! That is the whole point!

What type would you declare a variable used as an argument in the turn command? answer

   double

Please review the material for any questions you miss.