# Practice Problems by Topic

This page lists old homework and quiz problems, organized by topic in the course. This list is not necessarily comprehensive, but nevertheless we hope you find it useful. Furthermore, this page does not enumerate examples in lecture or Quick Checks; you should definitely refer to these in your studying as well.

### Homeworks

To access blank copies of old homeworks, follow these instructions. (Repeat these instructions for each homework, we will use Homework 4 as an example.).

1. Go to your DataHub and rename the `hw04` folder to something else (say, `hw04-old`).
2. Click the Homework 4 link on the course website. This will bring you to a fresh copy of Homework 4.

Remember that homework solutions are all posted on Ed. The solutions for Homework X are posted in the “Homework X grades are relased!” post.

### Quizzes

To access a blank copy of Quiz 1, follow the instructions above in “Homeworks”, but with the `quiz01` folder. The Quiz 1 DataHub link can be found here.

## Quiz 1 Material

### Functions

• Homework 1: 2, 3, 4
• Homework 2: All
• Homework 3: All
• Homework 4: 2, 3a, 4, 5
• Homework 5: 5b
• Homework 6: 1f Part 1, 2b
• Quiz 1: All
• Quiz 2: 1, 2, 4.5
• Practice Quiz 2: 2

### Boolean Expressions and Control (If-Statements)

• Homework 1: 2d, 4
• Homework 2: 1, 2, 3, 4b, 5
• Homework 3: 1a, 1b, 2b, 3, 4
• Homework 4: 2b
• Homework 6: 1f Part 1
• Quiz 1: 1, 2, 3, 4
• Quiz 2: 4.5
• Practice Quiz 2: 2

### Lists

• Homework 2: 2b, 5
• Homework 3: 1b, 1d, 1e, 2c, 4
• Quiz 1: 2
• Quiz 2: 2.1, 2.2
• Practice Quiz 2: 2

### Strings and String Manipulation

• Homework 1: 1d, 4
• Homework 2: 4
• Homework 3: 2b, 3
• Homework 4: 2b,
• Quiz 1: 4

### While Loops

• Homework 2: 2b, 3, 5
• Homework 3: 1c
• Quiz 1: 5
• In addition, look at the extra video in Lecture 10 on Kaprekar’s constant

## Quiz 2 Material

### Dictionaries

• Homework 4: 1, 2, 3
• Homework 6: 1f Part 1
• Homework 8: 2b
• Quiz 2: 1
• Practice Quiz 2: 1

### NumPy Arrays

Arrays come up throughout the last few homeworks. Only a few problems are listed here – specifically, those that quiz you on arrays themselves.

• Homework 4: 4, 5
• Homework 5: 3c, 5
• Quiz 2: 2.2, 2.3, 3
• Practice Quiz 2: 3

### Table Fundamentals – `num_rows`, `num_columns`, `sort`, `select`, `column`, `relabeled`, `with_columns`

• Homework 5-8, Quiz 2-3, Practice Quiz 2-3: several examples everywhere.

### Tables: `where`

• Homework 5: 4, 5
• Homework 6: 1c, 1e, 1g Part 1, 2a, 3b, 3d
• Homework 7: 2a
• Homework 8: 2c, 2f, 2h
• Quiz 2: 3.7, 4.1
• Practice Quiz 2: 5.1
• Quiz 3: 3.1
• Practice Quiz 3: 2.4

### Tables: `apply`

• Homework 6: 1f, 2b
• Quiz 2: 4.5
• Practice Quiz 2: 4, 5

### Tables: `group`

• Homework 6: 1b, 1e, 1g, 2a, 2c, 3b
• Homework 7: 1b, 1c
• Homework 8: 2a, 2c, 2f
• Quiz 2: 4.2, 4.3, 4.4
• Practice Quiz 2: 4, 5
• Quiz 3: 1.1, 3.1
• Practice Quiz 3: 2.1

### Tables: `pivot`

• Homework 6: 1g Part 2, 3d
• Homework 7: 1d, 1f
• Homework 8: 1a
• Quiz 2: 4.5
• Practice Quiz 2: 4, 5.3
• Quiz 3: 1.2

### Tables: `join`

• Homework 6: 2c, 3c
• Homework 8: 2c
• Quiz 2: 4.4
• Practice Quiz 2: 5.4

## Quiz 3 Material

### Visualization: `barh`

• Homework 7: 1
• Homework 8: 2a
• Quiz 3: 1
• Practice Quiz 3: 2

### Visualization: `hist`

• Homework 7: 2
• Homework 8: 2f
• Quiz 3: 2
• Practice Quiz 3: 1

### Visualization: `scatter`

• Homework 7: 3
• Homework 8: 2g, 2h
• Quiz 3: 3.2
• Practice Quiz 3: 2.4, 2.5

### Visualization: `plot`

• Homework 8: 1b, 1c
• Quiz 3: 3.1

### Visualization: Maps

• Homework 8: 2d, 2e
• Quiz 3: 4.1
• Practice Quiz 3: 3