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.

  • 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

Use these 5 strategies to give students useful debugging strategies that will help them fix Segmentation Faults.
Have all functions return something in an intro course to help students understand that functions have a start and an end, even though they are always returning.
Encourage students to write the inside of the loop before the loop syntax to help students recognize the conditions necessary for iteration.

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

Privacy Policy