New materials! On Wed (Nov 9th) we posted the midterm, the midterm solution and the grade distribution.


The median on the exam was a 50/60. This distribution gives you a sense of how you are doing in the class:

Here is the exam and the exam solutions:

Regrade Requests

Sometimes we make mistakes grading. If you notice that we incorrectly read your solution or incorrectly applied a deduction, we can regrade it. However you must follow these instructions:

  1. Write an explanation of the mistake in your gradescope regrade request.
  2. Submit your request by Friday Nov 11th at 5pm.
  3. We reserve the right to regrade the entire exam.


The CS106B Midterm is Thursday Nov 3rd from 7pm to 9pm.

The exam is split into two locations. The location of your exam is based on your last name:

If you're in Braun, there's construction all around, so you may have a harder-than-usual time getting there. Plan accordingly and arrive early!

The exam is open book, open notes, closed computer.

Thur, Nov 3rd
By last name
Midterm Review Session
Sun, Oct 30th
Bishop Auditorium


The midterm covers the material presented in class through the lecture on Monday, Oct 24th. Specifically you will be responsible for:

  1. Functions and Pass by Reference
  2. Use of Collections (Maps, Sets, Stacks, Queues, Vectors and Grids)
  3. Recursion (Definition and Fractals)
  4. Recursive Exploration and Backtracking
  5. Big O

The bulk of the midterm will be build on the concepts you covered in the assignments you have completed up to this point in the course (Life, Serpinski and MetaAcademy).

There will be four or five questions on the exam. The first question will ask you to trace a mystery function and determine runtime Big-O. The remainder will be programming tasks (where you write your solutions by hand).

Things that will not be on the midterm: structs, pointers, defining classes or linked lists.

We put together handouts on the topics which we will expect you to know:


Exams are exciting, and a good chance to learn. Sometimes they can feel competitive. Remember though that in the long term you aren't competing against the other people in the classroom. In fact they will probably be your team mates in the post Stanford world. The only race is with yourself. We don't curve the exam. If everyone does a great job of demonstrating that they understand the material, everyone will get a better grade.

Here is a printable handout with a complete list of all CS106B library functions you may find useful on the exam and a handout on exam strategies:

Practice Midterms

We will post more practice exams (and solutions) as we get closer to the exam. If you want more problems to work on, try the section problems. Most of them are old exam questions.