Skip to main content
CS Teaching Tips

Main navigation

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

Juha Sorva

Misconception: Students think that two different variables cannot refer to the same object.

Trace through example code in class to show and encourage students to debug effectively

Misconception: Students believe that a method can only be called once on a given object.

Misconception: Students think that both the IF and the ELSE cases of a conditional are executed every single time a conditional runs.

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.

Remind students that the computer will run any code that compiles, no matter how unreasonable, because it doesn’t have the ability to determine if code is reasonable or not.

When explaining program structure, highlight which aspects of the program are static and which are dynamic in order to clearly distinguish between the two.

Misconception: students struggle with scopes of variables and may not understand when a variable can be accessed and when it cannot be accessed.

Be explicit about what direction references point when teaching about objects and references.

Introduce object states early when teaching object-oriented programming.

Pagination

  • Previous page ‹‹
  • Page 2
  • Next page ››
Subscribe to Juha Sorva

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

Privacy Policy