Policies
See the
Policies page
for information on exam modalities, how to request a makeup exam in the case of conflicts, and our commitment to accommodation requests from SDS.
Prelim 1
Prelim 2
Final Exam
Archive of old exams
To give you some idea of what the exams might be like,
we are freely posting all of the exams from earlier semesters for you to review.
However, please be aware of the following: The material covered and the order in which it is covered may change from semester to semester.
In particular, the material between the Fall and Spring semesters can be quite different. And
exams from Spring 2017 and earlier used Python 2, not 3.
Prelim 1 in Previous Semesters
Commentary on all previous prelim 1s and/or their solutions is included in the
2022SP study guide
.
-
Spring 2022:
Prelim 1
,
Solutions
,
Solution and testing code for first two questions. To try your own solutions, delete (or comment out) the function bodies we wrote, replace with your own code, and then run python on the file.
-
Fall 2021:
Prelim 1
,
Solutions
-
Spring 2021
:
Prelim 1
,
Solutions
,
testing code
and cornellasserts.py (imported by testing code)
-
Fall 2020
:
Prelim 1
,
Solutions
-
Spring 2020
:
Prelim 1
,
Solutions
-
Fall 2019
:
Prelim 1
,
Solutions
-
Spring 2019
:
Prelim 1
,
Solutions
-
Fall 2018
:
Prelim 1
,
Solutions
-
Spring 2018
:
Prelim 1
,
Solutions
-
Fall 2017
:
Prelim 1
,
Solutions
-
Spring 2017
:
Prelim 1
,
Solutions
-
Fall 2016
:
Prelim 1
,
Solutions
-
Spring 2016
:
Prelim 1
,
Solutions
-
Fall 2015
:
Prelim 1
,
Solutions
-
Spring 2015
:
Prelim 1
,
Solutions
-
Fall 2014
:
Prelim 1
,
Solutions
-
Spring 2014
:
Prelim 1
,
Solutions
-
Fall 2013
:
Prelim 1
,
Solutions
-
Spring 2013
:
Prelim 1
,
Solutions
(solutions were not rendering correctly for call frames question; try reloading this version [Mar 8, 9:30am])
Prelim 2 in Previous Semesters
Commentary on all previous prelim 2s and/or their solutions is included in the
2022SP study guide
. Peng Chen made a Superzip of the files for the prior
Prelim 2 files as of Apr 16, 2022. (We course staff are not maintaining this
zip file, so updates will not be reflected in it. )
-
Spring 2022:
Prelim 2
,
Solutions
,
testing code
-
Fall 2021:
Prelim 2
,
Solutions
,
testing code
-
Spring 2021
:
Prelim 2
,
Solutions
,
testing code
-
Fall 2020
:
Prelim 2
,
Solutions
,
testing code
-
[Spring 2020 had no prelim 2 due to pandemic rearrangements]
-
Fall 2019
:
Prelim 2
,
Solutions
,
testing code
-
Spring 2019
:
Prelim 2
,
Solutions
,
testing code
-
Fall 2018
:
Prelim 2
,
Solutions
,
testing code
-
Spring 2018
:
Prelim 2
,
Solutions
,
testing code
(the main test file in the zip file is 2018sp_code.py; the other files contain skeletons for you to fill in, and the main test file is expecting your solutions to be written in those files.)
-
Fall 2017
:
Prelim 2
,
Solutions
-
Spring 2017
:
Prelim 2
,
Solutions
-
Fall 2016
:
Prelim 2
,
Solutions
-
Spring 2016
:
Prelim 2
,
Solutions
-
Fall 2015
:
Prelim 2
,
Solutions
-
Spring 2015
:
Prelim 2
,
Solutions
-
Fall 2014
:
Prelim 2
,
Solutions
-
Spring 2014
:
Prelim 2
,
Solutions
-
Fall 2013
:
Prelim 2
,
Solutions
-
Spring 2013
:
Prelim 2
,
Solutions
Final in Previous Semesters
Commentary on finals up to and including Fall 2021 is included in the
2022SP final exam study guide
.
For those interested in the questions on loop invariants, here is
a reading on loop invariants
.
- Spring 2022:
Final
,
Solutions
,
zip of solutions/testing code
-
Fall 2021
:
Final
,
Solutions
,
zip of skeletons/testing code
-
Spring 2021 :
Final
,
Solutions
,
zip of skeletons/testing code
-
[Fall 2020: final exam was replaced with final project]
-
[Spring 2020 had no final due to pandemic rearrangements]
-
Fall 2019
:
Final
,
Solutions
,
testing code
-
Spring 2019
:
Final
,
Solutions
-
Fall 2018
:
Final
,
Solutions
,
Python Tutor testing links
-
Spring 2018
:
Final
,
Solutions
,
testing code
,
Python Tutor testing links
-
Fall 2017
:
Final
,
Solutions
,
Python Tutor testing links
-
Spring 2017
:
Final
,
Solutions
,
zip of solutions/testing code ,
Python Tutor testing links
-
Fall 2016
:
Final
,
Solutions
-
Spring 2016
:
Final
,
Solutions
-
Fall 2015
:
Final
,
Solutions
-
Spring 2015
:
Final
,
Solutions
, Python Tutor solution/testing links
-
Fall 2014
:
Final
,
Solutions
-
Spring 2014
:
Final
,
Solutions
-
Fall 2013
:
Final
,
Solutions
-
Spring 2013
:
Final
,
Solutions