Practice Problems

DSC 40A at UC San Diego


This site contains practice problems taken from old DSC 40A exams. We’ve organized problems in two ways:

  1. By topic. This makes it easy to practice old exam problems by topic.
  2. By past exam. This makes it easy to simulate taking an entire exam.

In all cases, you should work on these problems on paper, since your exams will also be on paper. Even though you will see some multiple choice bubbles, you intentionally cannot select them.

Note that some offerings in the past had one Midterm Exam and one Final Exam, while other offerings had two Midterm Exams and a two-part Final Exam. Typically:

Note that in Spring 2024, we’ve covered more linear algebra concepts (e.g. projecting a vector onto the span of other vectors) than were covered in the past, and our exams will reflect this. Note that gradient descent was not in scope for the midterm, but we did cover it, so gradient descent will appear on the final. We did not cover clustering; clustering will not appear on the final.

Furthermore, note that different exams were offered in different formats (remote vs. in-person) with different time limits (50 minutes vs. 80 minutes vs. 180 minutes) and different levels of allowed resources (student-created notes sheets allowed vs. instructor-created reference sheets only vs. no notes). In Spring 2024, the Final Exam will be 180 minutes long, and students are allowed to bring 2 two-sided index cards (4 inches by 6 inches each) of notes that they write by hand (no iPad).

To get a rough sense of the format of the exam, you can see this past exam PDF.


📊 Topics

In scope for the Spring 2024 Final Exam:


📝 Exams

Quarter Instructor(s) Exam
Spring 2024 Suraj Rampure Midterm
Winter 2024 Aobo Li Midterm 1
Midterm 2
Final Part 1
Final Part 2
Spring 2023 Janine Tiefenbruck Midterm 1
Midterm 2
Final Part 1
Final Part 2
Winter 2023 Gal Mishne Final
Winter 2022 Janine Tiefenbruck Midterm 1
Fall 2022 Truong Son Hy, Mahdi Soleymani Midterm
Spring 2021 Janine Tiefenbruck Midterm 1
Fall 2021 Suraj Rampure Midterm
Final

👋 Feedback: Find an error? Still confused? Have a suggestion? Let us know here.