Skip to content
Marlbridge

AP® Computer Science Principles · Unit 3 · Topic 3.1

Variables and Assignments: Topic Checklist (Computer Science Principles 3.1)

Specific "I can" statements for variables and assignment, each linked to the study-guide section or practice question that tests it.

Work through the list without notes. If you cannot do a statement, follow the pointer, then come back. Guide = the study guide; Practice = the practice questions.

Understanding

  • I can explain what a variable is and why a program needs one (Guide: Why programs need variables)
  • I can state that a variable holds one value at a time, and that the value can be a list (Guide: Why programs need variables; Practice: Question 6)
  • I can explain why meaningful variable names help readability and maintenance (Guide: Why programs need variables; Practice: Question 4)
  • I can choose between number, Boolean, string and list for a piece of information (Guide: Data types and choosing a representation; Practice: Question 5)

Skills

  • I can describe the two steps of assignment (evaluate, then store a copy) (Guide: The assignment operator; Practice: Question 1)
  • I can tell ← (assignment) apart from = (equality test) (Guide: The assignment operator; Practice: Question 6)
  • I can build a trace table and find a variable after several assignments (Guide: Worked example 1; Practice: Question 8)
  • I can write a running-total update such as total ← total + price (Guide: Worked example 2; Practice: Questions 3 and 9)
  • I can swap two variables using a temporary variable (Guide: Worked example 2; Practice: Question 2)

Reasoning

  • I can explain why b ← a does not keep b equal to a afterwards (Guide: The assignment operator (Figure 1); Practice: Question 1)
  • I can predict the result when a list is assigned to another list variable (Guide: Lists and copies; Practice: Question 7)
  • I can explain why count ← count + 1 is an update and not an equation (Guide: Common misconceptions; Practice: Question 9)

When every line is secure, move on. The revision notes are here: revision notes.

AP® and Advanced Placement® are trademarks registered by the College Board, which is not affiliated with, and does not endorse, this website. Marlbridge is an independent tuition provider. It is not an authorized AP course provider, an AP school or an exam centre, and these resources are not official College Board materials. Reading them or doing simulations does not meet the laboratory requirement of an AP science course.