Skip to main content
CS Teaching Tips

Main navigation

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

Misconception: when working with Booleans, students assume that false means incorrect and true means correct.

Share Misconception: when working with Booleans, students assume that false means incorrect and true means correct. with FacebookShare Misconception: when working with Booleans, students assume that false means incorrect and true means correct. with Twitter
  • By encouraging students to write appropriate test cases before writing actual code, they will build a better intuition for what an output of true or false actually means.

More about this tip

Tags

  • Content Misconceptions
  • Development Methods
  • Programming Concepts
External Source
Aiza Mbaye, Roxane Caires, Daniel Modell from CSNYC Tip-A-Thon.
Other Tips By
Other Tips By Daniel Modell
Roxane Caires
Daniel Modell

Similar tips

Show code without inheritance before showing code that uses inheritance so that students create a tacit understanding of the benefits inheritance provides.
To introduce recursion, try reading The Cat in the Hat Comes Back, or “Martin and the Dragon,” to make the topic more engaging.
Misconception: When students trace through recursive code, they have trouble figuring out if operations are done before or after the recursive call.
  • 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