AP CSP Day 2 - Variables and Assignments

AP CSP Day 2 - Variables and Assignments

Course Information


Learning Objectives

Primary Goals

Students will be able to:

  1. Define what a variable is
  2. Understand how variables store data
  3. Create and use variables in programs
  4. Perform assignments using variables

AP Exam Alignment


Lesson Structure (50 minutes)

Opening Hook (10 minutes)

1.1 Welcome & Lesson Preview (5 minutes)

Teacher Activities:

Student Activities:

1.2 Variable Examples Challenge (5 minutes)

Activity: "Identify the Variable"
Instructions:

Purpose: Activate thinking about variables


Core Content Instruction (20 minutes)

2.1 What are Variables? (10 minutes)

Definition (CRD-1.B.1):

A variable is a named storage location that holds a value.

Key Concepts:

Case Study: Using variables in a simple program

2.2 Examples of Variables (5 minutes)

Examples:

Discussion Questions:

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

2.3 Assignment Operations (5 minutes)

Why is it important?:

Discussion Questions:

  1. How can we reassign a variable?
  2. Why is reassignment useful in programming?

Hands-On Activity (15 minutes)

3.1 Group Project: Create a Program with Variables (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 what a variable is
  2. ✅ Identifying examples of variables
  3. ✅ Creating and using variables in programs
  4. ✅ Performing assignments

AP Exam Connection:

4.2 Next Class Preview (3 minutes)

Day 3 Topic: "Expressions and Operators"