Skip to main content
CS Teaching Tips

Main navigation

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

Trace through nested conditionals with students because nesting makes it difficult for them to track which lines of code get executed when.

  • Even students who have mastered IF/ELSE statements have difficulty with nested conditionals.
  • See the Code.org unplugged Nested Conditionals lesson plan for a relevant in-class activity!

More about this tip

Tags

  • Development Methods
  • Programming Concepts
External Source
Interview with Lisa Milenkovic
Other Tips By
Other Tips By Lisa Milenkovic

Similar tips

Explain recursion with the example of determining your row in a stadium by asking the row in front of your what row it is… asking until you get to the first row, the base case.
Analogize stacks and interrupts using a story in which a person is frequently interrupted in the course of performing everyday tasks.
Provide specific ways to get additional practice on material (e.g., Linked lists) because teachers often underestimate the amount of practice students need to solidify course concepts.

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

Privacy Policy