Skip to main content
CS Teaching Tips

Main navigation

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

Ensure young CS students check their functions with a variety of inputs, as well as with edge cases.

Share Ensure young CS students check their functions with a variety of inputs, as well as with edge cases. with FacebookShare Ensure young CS students check their functions with a variety of inputs, as well as with edge cases. with Twitter
  • Young students can have a tendency to not check whether their output is correct or not, but are simply content with the program producing an output. They can also have a tendency to avoid edge cases; place additional focus on them thorough program testing.

More about this tip

Tags

  • CS 1
  • Intro Programming
  • Development Methods
External Source

"Computer science as a cultural encounter" by Yifat Ben-David Kolikant, under "Challenges posed by the students"

Other Tips By
Other Tips By Yifat Ben-David Kolikant

Similar tips

Have students write out test cases and their prediction for what their code will do in class before running it to teach them the practice of analyzing their code first.
When explaining code to the class, project your code and use a tablet to draw on top of it. Ask students for debugging suggestions to make them more comfortable finding bugs and to show them that all programmers, even you, make mistakes.
Have students break their code into smaller pieces to find out where the bug might be.

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

Privacy Policy