Skip to main content
CS Teaching Tips

Main navigation

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

Misconception: When a variable is on both sides of an equal sign (i.e., x = x+1), students can get very confused.

Share Misconception: When a variable is on both sides of an equal sign (i.e., x = x+1), students can get very confused. with FacebookShare Misconception: When a variable is on both sides of an equal sign (i.e., x = x+1), students can get very confused. with Twitter
  • Students have difficulty when the same variable is on both sides of the equal sign x = x + 1 as opposed to x = y + 1.
    • This misunderstanding probably comes from learning about variables in math.
  • Students can find this concept counter-intuitive because they’re used to looking at the RIGHT side of the equation first!

More about this tip

Tags

  • Content Misconceptions
  • Development Methods
External Source

Interview with Stephanie Hoeppner.

Other Tips By
Other Tips By Stephanie Hoeppner

Similar tips

Misconception: Students think that when they create a new variable within a function, that function will automatically return that variable’s value when executed.
Use an auto-grading tool to provide students with instant feedback on their programs and allow them to resubmit multiple times before the deadline so they can learn to find problems with and debug their code.
Misconception: Students create a new object when they only need to copy a reference.
  • 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