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

Use assignments with visual output to help students understand what their program is actually doing.
Teach "if" statements before "switch" statements, then explain how "switch" is a specialized case of "if" by translating an "if" statement into a "switch" statement.
Assign students to draw a dodecagon in Scratch before introducing repeat blocks so that once you introduce the repeat block, it is clear that it is a time-saving block.

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

Privacy Policy