Projects

Costume Change

AI Conversation

Pump up the Volume

Answers

#1. Variables in computer programming are not the same as mathematical variables as they always have a set value rather than having an undefined value.

#2. When a variable is created it can either interact with a single sprite, or it can be set to be able to interact with all sprites.

#3. A variable can only store one value at a time.

#4. The code will fail to switch values as each variable can only hold a single value at a time, and the computer cannot carry out more than one action at a time.

#5. The code will swap the values so that value 1 will equal value 2, value 2 will equal the temp value, and the temp value will equal the original value 1.

Home