Skip to main content
CS Teaching Tips

Main navigation

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

Teemu Sirkiä

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

Misconception: Students think that “return x*x” changes the value of x to be x*x.

Misconception: Students think that when they create a new variable within a function, that function will automatically return that variable’s value when executed.

Misconception: Students create a new instance variable when they only need a local variable.

Misconception: Students create a new object when they only need to copy a reference.

Misconception: Students believe that in a primitive assignment, x = y could be the equivalent of y = x; they think that the computer science “=” sign is the same as the mathematical “=” sign.

Subscribe to Teemu Sirkiä

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

Privacy Policy