Problem #1-Quick Costume Change

Questions

  1. Are variables in computer programming the same as variables in math class? Why or why not?
  2. They are similar but also have two seperate functions. Variables in Math are placeholders used for formulas.

  3. When creating a variable, what are the two types of scope a variable can have?
  4. Set variable and change variable.

  5. How many values can a variable store at one time?
  6. One

  7. What will the following code snippet do? Explain why it doesn’t work as intended.
  8. The two variables will switch places.

  9. Given the following code snippet, explain what is happening.
  10. Temp Varible will switch with value_1. value_1 switches to value_2. And value_2 will switch to value_1.