NOTE: this website is out of date. This is the course web site from a past quarter. If you are a current student taking the course, you should visit the current class web site instead. If the current website is not yet visible by going to cs107.stanford.edu, it may be accessible by visiting this link until the new page is mounted at this address. Please be advised that courses' policies change with each new quarter and instructor, and any information on this out-of-date page may not apply to you.
Spring 2025
Important course announcements will be posted below and announced in class. You are responsible for all material that appears here and should check this page on a regular basis.
Announcements
Scroll to see more announcements. Updates will also be posted on the discussion forum.
-
Final Course Grades Posted Wed. June 18 by Nick Final grades have been uploaded to Axess. Check your Stanford email for more details about grades. We have also posted all your grade information and breakdown to the Gradebook page. There is more information about how we calculated final course grades on the Ed forum here. Have a great summer break - we hope you enjoyed the course!
-
assign6 Grades Released Sun. June 15 by Nick Assignment 6 grades have been posted to the Gradebook page, along with feedback on the readmes. The median functionality score on the assignment was 113/119. Awesome job on implementing your heap allocators!
-
Final Exam Grades Released Thurs. June 12 by Nick Final exam scores have been released via Gradescope, an online course grading website. You can find more information about the exam solutions, statistics, how to see your score, and information about regrade requests, on the final exam grading page here. Awesome job on the exam!
-
assign5 Grades Released Thurs. June 5 by Nick Assignment 5 grades have been posted to the Gradebook page, along with feedback on the readmes. The median functionality score on the assignment was 115/119. Awesome job! Check out Ed for a more in-depth announcement about grading feedback.
-
CS107 Recap Page Posted Mon. June 2 by Nick As an additional resource to our final wrap-up lecture, we've posted a CS107 Recap Page that sums up everything we did this quarter, where you could go next, and ways to explore the CS107 material further if you're interested. We encourage you to check it out!
-
Final Exam Wed. 6/11 8:30-11:30AM Mon. May 26 by Nick The CS107 final exam is on Wednesday, June 11 from 8:30-11:30AM in CEMEX Auditorium. Please see the final exam webpage for information about the exam, as well as study tips and review materials. Like the midterm exam, the final exam is a closed-book, closed-note, closed-device paper exam.
We'll also be hosting a review session for the exam, the details of which are coming soon! -
assign4 Grades Released Mon May 26 by Nick Assignment 4 grades have been posted to the Gradebook page, along with style feedback for the assignments. The median functionality score was 107/107. Awesome job! See Ed for a more in-depth announcement about grading feedback.
-
assign6 Released! Sat. May 25 by Nick The final assignment, assign6, has been posted in the assignments dropdown. It is meant to act as a capstone for all the topics we've covered this quarter by implementing your very own heap allocator! We hope you have fun with it. It is due Wednesday 6/4 at 11:59PM PT and no late submissions are accepted on this assignment, whether or not you have free late days remaining, except in cases of Head TA-granted extensions or OAE accommodations. There is also a checkpoint deadline by which point you need to submit the first part of the assignment (the implicit allocator). You can find more details on the assignment page.
-
Mid-Quarter Grade Update Posted Wed. May 21 by Nick We've posted a mid-quarter grade update page containing overall course statistics for your work so far this quarter. That page includes your raw overall assignment score so far and your overall raw course score. You can view all this information here. We hope you find it helpful!
-
assign5 Released! Wed May 14 by Nick Assignment 5 has been posted in the assignments dropdown. It is meant to reinforce the topics of assembly translation, reverse engineering, and trust and privacy. The backstory: you have been hired as a security expert for Stanford Bank (a fictional on-campus bank). They need you to investigate reports of infiltration and security issues and replicate the issues so that they can fix them. There are three parts to this assignment, and each one will have you investigate supposed vulnerabilities and assess the risks the bank faces. These problems are like C/assembly "puzzles" to solve, and we hope you enjoy solving them and exploring this material as much as we enjoyed creating them! The assignment is due Saturday 5/24 at 11:59PM PT. For this assignment, the late period is 1 day (with a 95% cap) instead of 2 days as on other assignments so far. In other words, there is no option for submitting 2 days late with an 87.5% cap on assign5.. You can find more details on the assignment page. We strongly recommend getting started early on this assignment! We'll also provide more tips and information about parts 2 and 3 in lecture 21 (Fri. 5/16). Check out Ed for more assignment tips and a recommended milestone deadline for each part.
-
assign3 Grades Released Tues May 13 by Nick Assignment 3 grades have been posted to the Gradebook page, along with style feedback for the assignments. The median functionality score (excluding extra credit) was 96/97. Rock on! See Ed for a more in-depth announcement about grading feedback.
-
Midterm Grades Released Mon May 12 by Nick Midterm exam scores have been released via Gradescope, an online course grading website. You can find more information about the exam solutions, statistics, how to see your score, and information about regrade requests, on the midterm grading page here. Good job on the exam! We have also posted a page containing information about commonly-asked questions heading into the final weeks of the course. We hope you find it helpful!
-
assign4 Released! Thurs May 1 by Nick Assignment 4 has been posted on the assignments page. It is meant to reinforce the topic of generics, disclosure and partiality,
void *pointers and function pointers, with exercises ranging from implementing your own version of thelscommand to implementing your own version of thesortcommand. We hope you have fun with it! The assignment is due Wed 5/14 at 11:59PM PT. You can find more details on the assignment page. -
assign2 Grades Released Thurs May 1 by Nick Assignment 2 grades have been posted to the Gradebook page, along with style feedback for the assignments. The median functionality score was 95/96. Awesome job! See Ed for a more in-depth announcement about grading feedback.
-
Midterm Exam Tues. 5/6 7-9PM Mon April 28 by Nick The CS107 midterm exam is on Tuesday May 6 from 7-9PM in CEMEX Auditorium. Please see the midterm exam webpage for information about the exam, review materials and study tips. Please reach out to the instructor and Head TA ASAP if you have accommodations or a conflict with the midterm exam but have not already let us know.
-
assign3 Released! Wed April 23 by Nick Assignment 3 has been posted on the assignments page. It is meant to reinforce the topic of pointers, arrays and heap allocation, with exercises ranging from implementing a convenient version of a C file I/O function to implementing your own versions of the Unix "tail" and "uniq" commands. We hope you have fun with it! The assignment is due Wed 4/30 at 11:59PM PT. You can find more details on the assignment page.
-
assign1 Grades Released Wed April 23 by Nick Assignment 1 grades have been posted to the Gradebook page, along with style feedback for the assignments. The median functionality score on the assignment was 98/100. Awesome job! See Ed for a more in-depth announcement about grading feedback.
-
Submit lecture credit selection by Fri Mon April 21 by Nick By Fri 4/25 11:59PM PDT, please make your selection for how you would like the lecture credit portion of your overall course grade to be calculated. You can find more information and input your selection on the lecture credit form page: click here.
-
assign2 Released! Thu April 17 by Nick Assignment 2 has been posted on the assignments page. It is meant to reinforce the topic of C Strings and thorough documentation, with exercises ranging from implementing tools to display environment variables to implementing your own version of the Unix "which" command. We hope you have fun with it! The assignment is due Wed 4/23 at 11:59PM PT. You can find more details on the assignment page.
-
assign0 Grades Released Mon April 14 by Nick Assignment 0 grades have been posted to the Gradebook page, along with style feedback for the assignments. The median functionality score was 26/26. Way to go! Check out Ed for a short debrief of the assignment.
-
assign1 Released! Mon April 7 by Nick Assignment 1 has been posted on the assignments page. It is meant to reinforce the topics of bits, bitwise operators, and integer representations, with exercises ranging from implementing the core "saturated arithmetic" algorithm to a bit-level particle simulation to understanding the effects of integer representations on real-world software. We hope you have fun with it! The assignment is due Wed 4/16 at 11:59PM PDT. You can find more details on the assignment page.
As you start working, we want to include a reminder about the course style guide; it contains an in-depth reference about how to ensure your programs have great style! We have also added a newcodechecktool to this assignment - check out the spec for more information. Additionally, through TA helper hours and the discussion forum, our focus will be on supporting you so that you can track down your own bugs. Please ask us how to best use tools (like the brand-new GDB!), what strategies to consider, and advice about how to improve your debugging process or track down your bug. If you have debugging questions during helper hours, please make sure to gather information and explore the issue on your own first, and fill out the QueueStatus questions with this information. Starting with a future assignment, we will require this information when signing up for helper hours for debugging help, so please make sure to provide as much information as possible. -
Lab Assignments PostedFri. April 4 by Nick We have posted lab assignments - you can view your assignment from the "labs" dropdown in the top toolbar. We did our best to assign everyone to one of their top choices. On this form, if you'd like, you can also join a different lab with space available. Unfortunately, if a lab is full, we are not able to accommodate additional students at this time, but check back later, as enrollments may shift over time.
Labs start Wed., and this week your lab leader will introduce themselves and explain everything about lab and what it's all about. You can find more information about labs and lab policies on the course information page. We'll see you in lab this week! -
Lab Signups Open 9AM Tues. until Fri. 11:30AM Mon. March 31 by Nick Lab preferences submissions open tomorrow at 9AM! Anytime until Friday at 11:30AM PDT, please submit your lab preferences for which lab you would prefer to attend this quarter. Note that preferences are not first-come first-serve; you may fill out your preferences anytime between those dates, and you may come back to update your preferences later as well. You can access the preferences form in the "Labs" dropdown at the top of the page. For more information about labs including attendance, missing labs, and other policies, see the labs section of our course syllabus.
-
Assignment 0 Posted Mon. March 31 by Nick Assignment 0 has been posted under the assignments tab. It is meant as an introduction to Unix and C, with exercises ranging from uncovering who got unauthorized access to a filesystem to modifying a provided C program to accept command-line arguments. We hope you have fun! The assignment is due Mon. 4/7 at 11:59PM PST.
-
Join CS107ACE! Mon. March 31 by Nick If you're looking for more practice and support as you take CS107, consider joining CS107ACE! ACE is a program that provides extra support to students in the School of Engineering. CS107ACE is a 1-unit companion class for CS107 that provides extra help for CS107 in a small classroom setting. Section will go over lecture content and do practice problems as a class. Sections are an opportunity to ask about anything in the course, and in addition to section, there are CS107ACE-specific office hours twice a week. Besides the extra support, ACE is a great community and a fun addition to CS107! Enrollment is by application, and you can find more information here: click here. Once enrollment decisions are made, students who are accepted will then be given a permission number to enroll on Axess. If you have questions, please email Matthew, the ACE TA (mayoob@stanford.edu).
-
Welcome! Mon March 31 by Nick Welcome to CS107! Class starts on Monday, March 31st at 11:30AM in Gates B1. We are looking forward to meeting you and starting off a great quarter together! We'll have more details to come about the details of CS107's spring offering. In the meantime, please feel free to check out the updated FAQ. It covers questions about recorded lectures, conflicting classes, CS107E, CS107ACE, and more. We hope you find it helpful! CGOE students, please check out our CGOE handout for more information on CGOE logistics.
Course Logistics
Lectures: Mon/Wed/Fri 11:30AM-12:20PM in Gates B1
Labs: Wed/Thu/Fri at various times starting week 2; students sign up for sections after the quarter begins.
Exams:
-
Midterm Exam
Date/Time: Tuesday, May 6, 7-9PM PDT
Location: CEMEX Auditorium
Info: midterm webpage -
Final Exam
Date/Time: Wednesday, June 11, 8:30AM-11:30AM PDT
Location: CEMEX Auditorium
Info: final exam webpage
Submit our Exam information form if at least one of the following applies:
- have an academic or University conflict with the midterm time, and absolutely cannot make the regularly scheduled midterm.
- are a CGOE student wanting to take exams on campus
- if you want a left-handed desk when assigning seating for the exams
Feedback
- How are we doing? Submit anonymous feedback here.
- Submit feedback about a specific piece of coursework (assignments or exams) here
Course Staff and Contact Information
For any OAE accommodations, please submit your OAE letter via our OAE accommodations form here, and the Head TA will follow up with more information.
Instructor email: troccoli+cs107@stanford.edu for CS107 emails, troccoli@stanford.edu for non-CS107 emails
Head TA email: oadekola@stanford.edu
You can email the Head TA for requests of a personal nature, such as about: Office of Accessible Education accommodations, alternate exams, extension requests or other accommodations, assignment autograder test scores, enrollment questions, auditing, or other personal matters.
You can email the instructor for questions about private/personal matters.
You can email the grader listed at the top of your assignment grade report if you have questions about assignment style or manual review grades - for questions about assignment autograder test scores, please email the Head TA.
You can email your lab TA for questions about lab attendance grades, or for lab accommodations (e.g. missing a lab due to extenuating circumstances).
Note that email is not intended for course material or code questions; for those questions, please take advantage of the discussion forum or helper hours!
Meet the Staff
Ola Adekola (Head TA)
Abraham Yosef
Andreea Jitaru
Arman Aydin
Ben Yan
Carolina Borbon Miranda
Esteban Barrero-Hernandez
Julian Rodriguez Cardenas
Lara Franciulli
CS107ACE CA:
Matthew Ayoob (mayoob@stanford.edu)