Do My Programming HomeworkDo My Programming Homework

How to study for a programming final: what real courses tell their students

Most programming finals are written by hand. Here is the format in 13 real courses, the advice those courses give their own students, and a plan for the week before.

DoMyProgrammingHomework.io engineering teamReviewed by Pollen Victory, founderPublished Dec 2, 2026 · 9 min read
A short Python function written out as it would be on a paper exam, with the note that there is no compiler in the exam room
The short answer
Find out the format first, because most programming finals are written on paper with no compiler. Of 13 courses we checked, 9 run their exams on paper. Then practice the way the exam works: take a past exam by hand, timed, without notes you won’t have, and only then look at the solution. Stanford’s CS106A calls the alternative a trap: “it’s so tempting to just look over problems and their solution code, but that is not good studying”. Spread the work over several days, and sleep the night before.

Reading your notes feels like studying. For a programming exam it mostly isn’t. This guide collects what real courses tell their own students about their exams, and what four university learning centers say about how to prepare.

We are the engineering team at DoMyProgrammingHomework.io. Every quote is from a course or university page we read on December 1, 2026. Your own course’s rules are the ones that count.

First, find out what kind of exam it is

Exam format in 13 programming courses, fall 2026
CourseFormat, in the course’s wordsWhat you may bring
UC Berkeley CS 61A“The final exam, worth 75 points (paper-based)”The course provides its study guides
UC Berkeley CS 61B“We’ll even write code with our hands on paper during exams”A reference card is provided
Stanford CS106A“you write short phrases of code on paper.”Closed-note, with a printed list of Python functions
Stanford CS106B“This exam is on paper, using pen/pencil.”“one 8.5x11 sheet of your own notes”
Carnegie Mellon 15-112“generally be on paper”, “without the use of other resources.”No other resources. Its quiz rules ban calculators and devices
Michigan EECS 280“in-person, on-paper, at a scheduled time.”Midterm: one note sheet, double-sided
Washington CSE 121“The exam will be conducted on paper.”One sheet of your own notes
Washington CSE 123“The exam will be conducted on paper.”One sheet, “both the front and back sides”
Princeton COS 126“Write neatly and legibly, using a dark pen or pencil.”Midterm: a one-page sheet, “one side, handwritten by you”
Cornell CS 1110“You will be expected to write code for simple functions, given a specification.”Not stated for this term
Harvard CS50“three one-hour quizzes administered during lecture”. No final examNot stated
MIT 6.100Microquizzes “in-class using a computer”. No final exam“You may NOT use any course materials as aids. You may NOT use the Internet.”
Illinois CS 124Weekly quizzes in a testing center: “write and debug working code in 50 minutes”. No final examNot stated

Three things to take from it.

Paper is normal. Nine of the 13 say the exam is written by hand. MIT and Illinois test on a computer, and neither has a final exam. Berkeley’s CS 61A also runs one midterm in a computer testing center.

The rules on notes differ a lot. Carnegie Mellon allows no other resources. Stanford’s CS106B and both Washington courses allow a sheet of your own notes. Find your course’s rule this week, because it changes how you study.

Some courses have no final at all. Harvard’s CS50 ends with a project: “The climax of this course is its final project.”

What changes when there is no compiler

On paper, nothing tells you about a missing bracket. Stanford’s CS106B warns its students: “You will not have a compiler that can point out syntax errors.”

The good news is that graders know this.

  • Stanford CS106A: “We will not generally grade off for syntax.”
  • Stanford CS106B: “we will be quite lenient with errors that are syntactic rather than conceptual”.
  • Washington CSE 123: “Something like a minor syntax error will not necessarily lead to a reduced grade.”

It still has to be real code. Washington again: “Answers must be written as proper Java code”. So the skill being tested is writing a correct function from a blank page, and tracing code in your head. Neither improves by reading.

What the courses tell their own students

Don’t study by reading solutions. Stanford CS106A: “The key is, you need to practice with the blank sheet, writing the code out, not just looking at the solution code.” And: “As in sports, you need to practice in game-day conditions.”

Practice under exam conditions. Stanford CS106B’s advice, written by one of its lecturers: “The only exam-specific preparation is practice under exam-like conditions (i.e. without IDE).” Washington CSE 123: “We strongly suggest that you try to solve all of these problems yourself, on paper, without a computer, and without looking at the answer key until you’re done.”

Do past exams, and review them. Berkeley CS 61B has a study tips page, which says its advice comes from personal experience: ““Do practice exams” is probably the most common tip for successful exam prep.” They add: “Print out the past exam and do the exam on paper while timing yourself.”

Check your handwritten answers on a computer afterwards. A second advice page for CS106B: “don’t just hand-write things and call it a day.” Type the solution in and run it on some test cases. That is how you find out whether what you wrote would have worked.

The exam grows out of the coursework. Berkeley CS 61A: “Students who understood the homework will be well-prepared to succeed on the quiz.” Michigan EECS 280: “We recommend preparing for the final by implementing projects without assistance from AI”. MIT says of students who lean on other people’s work: “they will almost surely struggle with the quizzes”.

It can’t be built in one night. Stanford CS106B: “The mastery for the exams isn’t created by a night of cramming, it is built up throughout the quarter.”

What the learning centers say

Four universities’ academic support centers make the same points, for any subject.

Study advice from four university learning centers
TopicWhat they say
Testing yourselfUniversity of North Carolina: “Quizzing yourself is a highly effective study technique.”
Technical coursesUniversity of North Carolina: “For technical classes, work the problems and explain the steps and why they work.”
Re-readingUniversity of North Carolina: “Re-reading leads to quick forgetting.”
Familiar is not learnedStanford: “Familiarity is not necessarily comprehension!”
SpacingCornell: “Spaced practice is the opposite of cramming!”
CrammingHarvard: “Cramming the night before an exam isn’t effective.”
Practice testsCornell: “If your test is closed book, don’t use any resources. (That includes answer keys!)”
SleepStanford: not sleeping enough “is physiologically counterproductive to learning and thinking clearly.”

Cornell’s Learning Strategies Center gives the reason for spacing in one sentence: “People learn faster and perform better if they work in brief blocks of time spread out over longer periods of time, rather than in a few lengthy “cram” sessions.”

A plan for the week before

This plan is ours. We built it from the advice above.

Seven steps, starting a week out
  1. Find the format and the rulesPaper or computer, what you may bring, what it covers, and where the past exams are.
  2. Take one past exam coldOn paper, timed, before you study anything. Berkeley’s tips suggest it “when you first start studying”, to guide the rest.
  3. Mark it honestly and list what you missedStanford’s advice for the days before: “Focus your study time on your weakest areas.”
  4. Work problems from a blank pageOne topic at a time, by hand. Then type your answer in and run it.
  5. Make your note sheet early, if one is allowedWashington’s tip: “creating the cheat sheet early can be a very useful form of studying”.
  6. Take a second past exam under full conditionsSame time limit, same sheet, no phone. Redo the questions you got wrong the next day.
  7. Stop and sleepThe night before is for rest, not for new material.

Cornell’s version is a five-day plan: “Plan to spend about 2 hours studying on each of the five days.” Two hours a day for five days is the same ten hours as one long night. You keep more of it.

If you have less time
Time leftDo thisSkip this
A weekThe full plan aboveRe-reading every lecture
Three daysOne past exam, your weak topics, a second past examTopics you already do well
One dayOne past exam, then its solutions, then sleepA third and fourth exam

The last row follows Berkeley’s tips for a time crunch: “don’t do too many exams. But rather do one exam, look at the solution, and REDO the exam the next day.”

Where to find past exams

Start with your own course site. Many courses publish them. Cornell’s CS 1110: “we have posted the exams from previous semesters.” Stanford’s CS106A: “We publish old exams on the course site, as these are excellent for studying.” Berkeley’s CS 61B, Washington’s CSE 121 and 123 and Princeton’s COS 126 keep archives as well, and Harvard’s CS50 posts practice quizzes.

Prefer exams from your own course and instructor. Berkeley’s tips: “Prioritize doing past exams from the same instructor to get a better gauge of the difficulty.”

The night before

Sleep. Washington’s CSE 121 tips put it plainly: “An hour more of sleep is better than an hour more of studying”. Harvard’s Academic Resource Center: “Exercise and sleep both improve memory”.

If you are tempted to stay up anyway, read should you pull an all-nighter before a programming deadline? The numbers on what a night without sleep does to you apply to exams too.

How much the final is worth

In many programming courses, exams carry more of the grade than the assignments, and a few courses require you to pass the final to pass the course. We compared 16 real syllabi in how introductory programming courses are graded. If you are worried about where the grade will land, see is a D a passing grade in college?

What we do, and what we don’t

We don’t take exams for anyone, and we won’t help during one. That would be cheating, and these exams are built to prevent it.

Where we help is the work around the exam. Finals week is often when the last project is due too. Send it to us, and a senior engineer writes or fixes it, tests it and explains the code line by line. An explanation you can follow is also exam preparation. See coding project help, programming assignment help and debug my code.

Free price checkSee what help with your project would costUpload the assignment. You see a price range in under a minute, with no email needed. Your fixed price never goes above the top of that range.
Check your course rules first
Rules on outside help differ between schools, courses and assignments. Read your syllabus and honor code before you use any help, ours included. Our academic integrity page says what we do and what we won’t.

Questions students ask

How do you study for a coding final?

Practice writing code under the exam’s conditions. Take a past exam on paper, timed, without notes you won’t have, and look at the solution only when you finish. Stanford’s CS106A tells students to practice with a blank sheet, writing the code out, not just looking at solution code.

Are programming exams written on paper?

Often. Of 13 courses we checked for fall 2026, 9 say their exams are on paper, including courses at Berkeley, Stanford, Carnegie Mellon, Michigan, Washington and Princeton. MIT’s 6.100 and Illinois CS 124 test on a computer, and neither has a final exam.

Do you lose marks for syntax errors on a paper coding exam?

Usually not for small ones. Stanford’s CS106A says it will not generally grade off for syntax, and Washington’s CSE 123 says a minor syntax error will not necessarily lead to a reduced grade. The answer still has to be real code, not pseudocode.

Can you bring notes to a programming final?

It depends on the course. Stanford’s CS106B allows one 8.5 by 11 sheet of your own notes, and Washington’s CSE 123 allows one sheet, both sides. Carnegie Mellon’s 15-112 exams are taken without other resources. Check your own course’s rule early.

How many days before a final should I start studying?

Start several days out. Cornell’s Learning Strategies Center recommends a five-day plan of about 2 hours a day, and says people learn faster in brief blocks spread over time than in a few long cram sessions.

Is cramming for a final effective?

Not very. Harvard’s Academic Resource Center says cramming the night before an exam isn’t effective, and that information crammed right before a test does not get embedded in long-term memory in reliable ways. Stanford’s CS106B says exam mastery is built up throughout the quarter.

Should I use a cheat sheet if one is allowed?

Yes, and make it early. Berkeley’s CS 61B study tips say the process of writing the cheat sheet is a great way to organize and review the concepts, and suggest creating it early so you can use it while doing past exams.

Sources

The note-sheet rules for Michigan and Princeton come from their midterms, because the rules for the finals were not posted. The seven-step plan is our own.

Stuck on your own assignment?

Upload the prompt and see a predicted budget in under a minute. A senior engineer confirms the final price.

Keep reading

Related guides