Intro Programming study guide
This guide is designed to help you understand the core ideas that commonly appear in introductory college Intro Programming courses. Read the explanation, follow the example, then try the practice questions without looking back. The goal is to understand the reasoning—not just memorize an answer.
Course requirements vary by school and instructor. Use this as a learning and review resource alongside your assigned textbook, lectures, and instructor guidance.
Variables & data types
Concept: Variables name stored values, while data types determine what operations make sense.
Worked example: An integer can represent a count; a string can represent a name.
Remember: Focus on the central relationship in variables & data types, define the important terms, and connect each step to the evidence, rule, formula, or process being used.
Common mistakes: Common mistakes include memorizing variables & data types without understanding when it applies, skipping units or definitions, and giving an answer without showing the reasoning that supports it.
Practice it
- Explain variables & data types in your own words.
- Use the lesson idea to create or solve one new intro programming example.
- What is one common mistake a student should avoid when working with variables & data types?
Conditionals
Concept: Conditional statements choose different actions based on Boolean conditions.
Worked example: If score >= 70, a program can follow the “pass” branch; otherwise it follows another branch.
Remember: Focus on the central relationship in conditionals, define the important terms, and connect each step to the evidence, rule, formula, or process being used.
Common mistakes: Common mistakes include memorizing conditionals without understanding when it applies, skipping units or definitions, and giving an answer without showing the reasoning that supports it.
Practice it
- Explain conditionals in your own words.
- Use the lesson idea to create or solve one new intro programming example.
- What is one common mistake a student should avoid when working with conditionals?
Loops
Concept: Loops repeat instructions while a condition holds or for each item in a collection.
Worked example: A for-loop can add every number in a list to compute a total.
Remember: Focus on the central relationship in loops, define the important terms, and connect each step to the evidence, rule, formula, or process being used.
Common mistakes: Common mistakes include memorizing loops without understanding when it applies, skipping units or definitions, and giving an answer without showing the reasoning that supports it.
Practice it
- Explain loops in your own words.
- Use the lesson idea to create or solve one new intro programming example.
- What is one common mistake a student should avoid when working with loops?
Functions
Concept: Functions package reusable logic with inputs, processing, and optional outputs.
Worked example: A function area(w,h) can return w*h whenever rectangle area is needed.
Remember: Focus on the central relationship in functions, define the important terms, and connect each step to the evidence, rule, formula, or process being used.
Common mistakes: Common mistakes include memorizing functions without understanding when it applies, skipping units or definitions, and giving an answer without showing the reasoning that supports it.
Practice it
- Explain functions in your own words.
- Use the lesson idea to create or solve one new intro programming example.
- What is one common mistake a student should avoid when working with functions?
Debugging
Concept: Debugging means finding and correcting syntax, runtime, and logic errors using evidence.
Worked example: Printing intermediate values can reveal where a calculation first becomes incorrect.
Remember: Focus on the central relationship in debugging, define the important terms, and connect each step to the evidence, rule, formula, or process being used.
Common mistakes: Common mistakes include memorizing debugging without understanding when it applies, skipping units or definitions, and giving an answer without showing the reasoning that supports it.
Practice it
- Explain debugging in your own words.
- Use the lesson idea to create or solve one new intro programming example.
- What is one common mistake a student should avoid when working with debugging?