Skip to main content
CS Teaching Tips

Main navigation

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

Misconception: Students believe that when they assign a = b, they are copying b into a rather than making a point to b.

Share Misconception: Students believe that when they assign a = b, they are copying b into a rather than making a point to b. with FacebookShare Misconception: Students believe that when they assign a = b, they are copying b into a rather than making a point to b. with Twitter
  • This misconception is a result of an incorrect mental model of how variable assignment works.

More about this tip

Tags

  • Content Misconceptions
  • CS 1
  • Intro Programming
External Source

"Exploring programming misconceptions: an analysis of student mistakes in visual program simulation exercises" by Teemu Sirkiä and Juha Sorva.

Other Tips By
Other Tips By Juha Sorva
Juha Sorva

Similar tips

Foreshadow arrays right after teaching for loops by showing students how to create a 1x6 grid using the rectangle object in the Java objectdraw library because visualizations built off of recently introduced material provide a useful transition.
Misconception: Students think that two different variables cannot refer to the same object.
Have students create a program in Python that draws a map of the stars in order to gain practice using dictionaries to manipulate real data.
  • CSTT Facebook
  • CSTT Twitter

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

Privacy Policy

  • National Science Foundation
  • Sage Fox Group
  • Harvey Mudd College