Skip to main content
CS Teaching Tips

Main navigation

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

Teach students how to trace out-of-bounds errors by demonstrating on the board.

Share Teach students how to trace out-of-bounds errors by demonstrating on the board. with FacebookShare Teach students how to trace out-of-bounds errors by demonstrating on the board. with Twitter
  • Explicitly write, cross out, and update variable-value pairs when tracing through code that iterates.

More about this tip

Tags

  • Development Methods
External Source

Interview with Nick Melnyk

Other Tips By
Other Tips By Nick Melnyk

Similar tips

Have students pay special attention to “off by one” bugs to help them avoid common mistakes in their code.
Students have trouble seeing the connection between models (UMLs, etc.) and code so they only want to focus on coding, a problem when teaching modeling.
When students are working on projects, especially open-ended ones, resist the urge to intervene. Don’t do the job for them!
  • 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