Skip to main content
CS Teaching Tips

Main navigation

  • Browse All Tips
  • Tags
  • 3D
  • About
  • Rate Tips
  • Tip Sheets

Misconception: Students think that two different variables cannot refer to the same object.

Share Misconception: Students think that two different variables cannot refer to the same object. with FacebookShare Misconception: Students think that two different variables cannot refer to the same object. with Twitter
  • Explain to students that a single object can have multiple variables assigned to it.
    • This property can be useful if students need to use the object in different places, or need to store both the object’s old and new values.

More about this tip

Tags

  • Content Misconceptions
  • Programming Concepts
  • CS 1
  • Intro Programming
External Source

"Visual program simulation in introductory programming education" by Juha Sorva.

Other Tips By
Other Tips By Juha Sorva

Similar tips

Misconception: students develop the habit of putting the type in front of variables; they don’t realize that this creates a new variable resulting in lots of variables with the same name.
Misconception: Students don’t understand that the right side of an assignment statement is executed before the assignment. They think that variables store unresolved equations.
Run a pair programming contest in Python to motivate, challenge, and boost students’ self-confidence.

For more information or to report a bug, contact us at admin@csteachingtips.org. Built with Bootstrap. Powered by Drupal.

Privacy Policy