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

Use a simple IDE to avoid distracting from the actual material; using a complex IDE/programming environment can be overwhelming to students.
Remind students about steps of the problem-solving process as they develop algorithms to solve programming problems.
Remind students that variable assignment occurs in the order assignments are given. This avoids the misconception that changing one value affects other variables assigned before it.

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

Privacy Policy