AP CSP Day 11 - Introduction to Functions

AP CSP Day 11 - Introduction to Functions

Course Information


Learning Objectives

Primary Goals

Students will be able to:

  1. Understand the concept of functions in programming
  2. Create programs using user-defined functions
  3. Test and refine function logic
  4. Analyze real-world scenarios that require functions

AP Exam Alignment


Lesson Structure (50 minutes)

Opening Hook (10 minutes)

1.1 Welcome & Lesson Preview (5 minutes)

Teacher Activities:

Student Activities:

1.2 Function Examples Challenge (5 minutes)

Activity: "Identify the Function"
Instructions:

Purpose: Activate thinking about functions


Core Content Instruction (20 minutes)

2.1 What are Functions? (10 minutes)

Definition (CRD-1.K.1):

A function is a named block of code designed to perform a specific task.

Key Concepts:

Case Study: Using functions in a simple program

2.2 Types of Functions (5 minutes)

Examples:

Discussion Questions:

  1. What makes a good function?
  2. Can you think of an example where functions are used in daily life?
  3. Why are functions important in programming?

2.3 Advanced Function Concepts (5 minutes)

Why is it important?:

Discussion Questions:

  1. How can we make functions reusable?
  2. Why is modularity important in programming?

Hands-On Activity (15 minutes)

3.1 Group Project: Create a Program with Functions (15 minutes)

Activity: "Design a Program"
Instructions:

Materials:

Learning Goals:

Assessment:


Closure & Preview (5 minutes)

4.1 Key Concepts Review (2 minutes)

Today's Learning Highlights:

  1. ✅ Understanding the concept of functions in programming
  2. ✅ Creating programs using user-defined functions
  3. ✅ Testing and refining function logic
  4. ✅ Analyzing real-world scenarios that require functions

AP Exam Connection:

4.2 Next Class Preview (3 minutes)

Day 12 Topic: "Parameters and Return Values"