Skip to main content
CS Teaching Tips

Main navigation

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

Explore students’ syntax errors to reveal their misconceptions.

Share Explore students’ syntax errors to reveal their misconceptions. with FacebookShare Explore students’ syntax errors to reveal their misconceptions. with Twitter
  • For instance, students may type books.title[i] instead of books[i].title
    • This is an error where they are trying to go through an array but instead are trying to remove an item from a non-thing.
    • It demonstrates that a student may not fully understand what can be indexed and what cannot.

More about this tip

Tags

  • Content Misconceptions
  • Development Methods
External Source

Interview with Pamela Fox

Other Tips By
Other Tips By Pamela Fox

Similar tips

Give students an opportunity (or force them) to use GDB and Valgrind. It teaches them how to use important debugging tools, it develops their debugging skills and it improves their code designing skills and code testing skills.
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.
Misconception: In Java, students struggle with equal signs because they mistakenly see them as a sign of symmetry.

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

Privacy Policy