Please enable JavaScript to use CodeHS

Idaho High School Computer Science

Functions and Exceptions

In this module, students will learn how to decompose problems into smaller pieces that work together to solve a problem. Students explore the value and purpose of functions while writing some of their own. They then utilize namespaces, parameters, and exceptions to write more specialized functions.

Lessons

9.1 Functions

  • Functions
  • Functions
  • Greeting
  • Extended Greeting
  • Weather

9.2 Functions and Parameters

  • Functions and Parameters
  • Functions and Parameters
  • Print a Value
  • Name and Age
  • Print Product
  • +3 more

9.3 Namespaces in Functions

  • Namespaces in Functions
  • Namespaces in Functions
  • Functions and Variables
  • Functions and Variables, Part 2
  • Fix This Program!
  • +2 more

9.4 Functions and Return Values

  • Functions and Return Values
  • Functions and Return Values
  • Return 10
  • Add One
  • Negate
  • +5 more

9.5 Recursion

  • Algorithms that Use Recursion
  • Decomposition with Recursion
  • Blastoff!
  • Task Checker
  • Treasure Hunt
  • +1 more

9.6 Exceptions

  • Exceptions
  • Exceptions
  • Enter a Number
  • Enter Name and Age
  • Temperature Converter, Part 2
  • +1 more

9.7 Functions Quiz

  • Functions and Exceptions Quiz
  • Control Flow Badge

Courses that include this module