Skip to main content
CS Teaching Tips

Main navigation

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

Misconception: Students mistakenly believe comparison expressions use the same syntax in math, English, and logic.

Share Misconception: Students mistakenly believe comparison expressions use the same syntax in math, English, and logic. with FacebookShare Misconception: Students mistakenly believe comparison expressions use the same syntax in math, English, and logic. with Twitter
  • 3 < x < 5 seems like a legitimate way to express a value of x which is greater than 3 and less than 5 but this is not valid.
    • This statement must be separated into two different statements.

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

Rotate students into different pairs during a single class period so they learn to explain and read code quickly.
Encourage students to try to break everything they code to quell their nervousness with Javascript.
Have students code boundary condition test to handle removing adjacent duplicates to help them better understand data structures and become familiar with common bugs through practice.
  • 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