Please enable JavaScript to use CodeHS

Idaho High School Computer Science

Control Structures

In this module, students will learn how to use control structures, such as if statements, for loops, and while loops, in their programs. Students teach their programs to make decisions based on the information it receives and learn how to write more efficient code by using loops as shortcuts.

Lessons

8.1 Booleans

  • Booleans
  • Booleans
  • Boolean Variables
  • Fix This Program
  • Plants

8.2 If Statements

  • If Statements
  • If Statements
  • Your First If Statement
  • If/Else Statement
  • Fix This Program
  • +2 more

8.3 Comparison Operators

  • Comparison Operators
  • Comparison Operators
  • Comparison Operators
  • High Jump
  • Roller Coaster
  • +5 more

8.4 Logical Operators

  • Logical Operators
  • Logical Operators
  • Logical Operators
  • Administrators, Teachers, and Students
  • Presidential Eligibility
  • +1 more

8.5 While Loops

  • While Loops
  • While Loops
  • Guess My Number
  • Program Tracing
  • Program Tracing, Part 2
  • +2 more

8.6 For Loops

  • For Loops
  • For Loops
  • Print 10 Numbers
  • 1 Through 10, Part 2
  • Counting 10 to 100 by Tens
  • +5 more

8.7 Nested Control Structures

  • Nested Control Structures
  • Nested Control Structures
  • Double For Loop
  • Average Test Score, Part 2
  • Examine Average Test Score, Part 2
  • +4 more

8.8 Diagram Code with Flowcharts

  • Flowcharts in Programming
  • Flowchart Responses
  • Real-World Flowchart
  • Pre-written Program Flowchart
  • Pre-written Program Flowchart Submission

8.9 Break and Continue

  • Break and Continue
  • Break and Continue
  • Break
  • Continue
  • Bike Frame Size
  • +3 more

8.10 Control Structures Quiz

  • Control Structures Quiz

Courses that include this module