Module 4 · if, switch and Loops
Cheat Sheet: if, switch and Loops on One Page
ProReading
This page is the module on one screen, for the moment you need a rule fast. That moment comes in a code review, before an interview, or halfway through a judged problem. It adds nothing new. Every line comes from lessons 01 to 06, and each table names the lesson that explains it.
Checking what this lesson needs for you…
What is inside Cheat Sheet: if, switch and Loops on One Page
- Every statement, and how often its parts run
- The switch rules
- break, continue and labels
- What a condition sees
- Which loop: the flowchart and the chart
- Nested loops and their cost
- The off-by-one gallery
- The bug gallery in one line each
- Two programs that use the page
Module test
Ten questions on this module. Pass at 70%, and you can take it as many times as you like.
Take the module test