Skip to main content
CS Teaching Tips

Main navigation

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

Misconception: students think that when you assign a = b, there is no longer anything assigned to b because b empties its contents into a.

  • When you ask a novice student "what happens to b when you assign a = b?", they may think that b no longer contains content as a result of giving it’s content to a.
  • To learn more, watch Mark Guzdial's CS Education Zoo interview.

More about this tip

Tags

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

CS Education Zoo Interview with Mark Guzdial.

Other Tips By
Other Tips By Mark Guzdial

Similar tips

Give students an opportunity (or force them) to use GDB and Valgrind. It teaches them how to use important debugging tools, it develops their debugging skills and it improves their code designing skills and code testing skills.
Relate how cool it would be to have the entire dictionary for another language put into your head to importing libraries in Java to help students make sense of this abstract concept.
Misconception: When students use the division operator during declaration or assignment of a Double in Java, like double x = a/b, they forget about integer division, which can result in rounding errors.

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

Privacy Policy