There will be one in-person, timed exam in CSE 122 this quarter.
The exam will be held on Tuesday, June 10, 2025 from 2:30pm - 4:20pm.
The policies for the exam are now available. Additional resources will be added during the last week of class, and will be announced in lecture and via Ed.
Exam Rules¶
The following points outline the rules and expectations that we will use during the final exam. You are expected to read and understand these rules prior to taking the exam.
Materials¶
You must bring two things with you to the exam:
- Your UW ID card.
- A writing implement. Responses must be written in pencil, blue ink, or black ink.
You may bring one sheet of 8.5 x 11 inch paper with your own notes for reference.
- You may use both the front and back sides; it may be handwritten or typed.
- We will additionally provide you with the CSE 122 final reference sheet.
- We are providing this ahead of time so know what information you do not need to include on your own reference sheet.
- You are restricted to using the Java methods on this reference sheet.
You may NOT:
- use any electronic or computing devices during the exam. This includes calculators, cell phones, music players, smart watches, and any other electronic devices.
- bring any additional paper (including scratch paper) outside of your single reference sheet.
Assigned Seating¶
This exam has assigned seating. You will have an assigned seat and you must sit in that seat.
The exam seating page is now up. Please review it to find your room and seat assignment.
Students are expected to make a reasonable effort to sit in their assigned seat.
- Students who demonstrate an egregious disregard for the seating assignments will receive a penalty to their grade.
- Examples of egregious disregard include (but are not limited to) intentionally sitting in the wrong seat, refusing to move when asked, or moving back to the wrong seat after being asked to move.
- If you arrive for the exam and find someone else in your seat, ask them to move and/or contact a member of course staff.
We will take pictures of the room to help us verify that students sit in their assigned seats. If you have concerns about this, please contact Adrian and Brett via email.
Seating assignments will be posted during the last week of class. If you would like a left-handed seat for the exam, please fill out the Left-Handed Seating Request Form by Tuesday, June 3rd.
Behavior and Etiquette¶
We will ask that you observe proper exam-taking etiquette.
- Please be quiet during the exam. If you have a question or need assistance, please raise your hand.
- When you have finished the exam, please turn in your exam quietly and leave the room.
- You should not leave the exam room in the last 10 minutes of the testing period to avoid disruption during the final moments of the exam.
The Exam Itself¶
The exam is 110 minutes long.
- We plan to distribute the exam early. During that time, you can read and fill out the cover page of the exam. However, you should not flip the page or look at the exam questions until you are told to begin.
- At end when time is called, you are required to stop writing and close your exam.
- Students who look at the exam before being told to begin or who make changes to their exam after time is called will receive grade penalties on the exam.
The exam will be conducted on paper.
- All answers must be written legibly and answers must be clearly indicated.
- If it is unclear, you should draw a box or circle around the answer you want graded, and an “X” through anything you do not want graded.
- This is particularly important if you provide more than one answer, or provide notes in addition to your final answer.
- When in doubt, we will grade the first response written in the indicated space.
- If you need additional scratch paper, raise your hand and a member of the course staff will provide it to you. You should not bring your own paper (outside of your own single reference sheet).
- In general, answers should be written in provided space within the exam booklet.
- If a sheet of scratch paper has all or part of an answer, please:
- Write your name and the problem number on that sheet of paper.
- Clearly indicate under the corresponding problem in the exam booklet that your answer is attached on an extra sheet of paper.
- Staple the entire sheet to the end of your test with a single staple in the upper-left corner (a stapler will be provided).
- If a sheet of scratch paper has all or part of an answer, please:
- If an answer cannot easily be read or found, it may not receive credit.
Code Style and Writing¶
Unless a question mentions otherwise, the code you write will be graded purely on proper behavior and output. We will not grade on code quality unless otherwise specified. You are, however, required to declare all data fields as private, to use generics properly, and to declare variables and parameters using interfaces when possible.
Answers must be written as proper Java code—we will not grade pseudocode (i.e., an English explanation instead of code), abbreviations, or comments. There are only two exceptions:
- you may abbreviate
System.out.print
as “S.o.p” - you may abberviate
System.out.println
as “S.o.pln”
Please make very effort to make your Java code syntactically correct.
- In the case of a syntax error, we will attempt to interpret your intended behaviour.
- In cases where it is unambiguously clear what you meant, your score will likely be unaffected.
- However, if the intent is not unambiguously clear, it is likely that your score will be affected.
You do not need to write import statements in your exam code; you may assume that the correct import statements exist.
You may choose to define any additional helper methods as part of your solution.
You must follow any restrictions specified in a particular problem.
Allowed and Forbidden Features¶
For standard Java classes (such as Math
, String
, Scanner
, ArrayList
, Set
, etc.), you are limited to the methods listed on the provided reference sheet. You may not use the Arrays
or Collections
classes, nor may you use other classes or methods that aren’t included on the provided reference sheet.
You may not use forbidden features to solve exam problems. Please familiarize yourself with the list of forbidden features before the final exam.
Illness¶
If you are sick, you should not attend the exam. You will need to contact Adrian and Brett before the exam begins to arrange an accommodation for a make-up exam due to sickness.
Exam Content¶
There will be 6 questions on the exam. Each of the 6 questions will be marked with one ESN grade. So in other words, you will receive 6 ESN marks for the entire final exam. Some questions might have sub-parts, but they will all be clearly marked as part of the same question.
The exam will focus on the following topics:
- File I/O
Scanner
s andPrintStream
s
- Data Structures
List
s:ArrayList
Stack
sQueue
sSet
s:TreeSet
,HashSet
Map
s:TreeMap
,HashMap
- Nested Collections
- For-each loops
- Iterators
- Object Oriented Programming
- Writing a class
- Instance methods
- Encapsulating fields
- Constructors
equals
- Interfaces
Topics guaranteed to not be on the exam:
- The
Optional
class - JUnit Syntax
- Third Party Libraries
- Image manipulation
- Inheritance between interfaces
Exam questions will be a combination of multiple choice, code tracing, debugging, and programming questions.
Exam Resources¶
We suggest you become familiar with the final exam reference sheet that will be provided as the last page of the exam. You are only allowed to use methods and classes shown on the provided reference sheet on the exam.
In addition, the TAs have put together an exam tips page with their own advice.
Also, here are some recommendations and instructions for how to test your handwritten solutions in Ed!
Past Exams¶
Here is a list of actual final exams from prior offerings of CSE 122. We strongly suggest that you solve all of these problems yourself in a final exam environment: doing them timed, on paper (without a computer), in a quiet environment, and without looking at the answer key until you’re done.
A very important skill to doing well on the test is being able to look at your solution and figure out if it works without relying on a computer or the answer key since you will have neither of those available during the test.
- Sample Final 1 (Sample Final 1 Solutions)
- Sample Final 2 (Sample Final 2 Solutions)
- Note: In previous offerings of CSE 122, 2D Arrays were a major topic of the course; this has since been replaced with File I/O. While both of these are testable knowledge for the final, you can expect that the emphasis will likely be on File I/O over 2D Arrays.
The practice exams are intended to give you a rough sense for the length and types of problems you might see on the actual exam. However, the format of this quarter’s exam may not exactly match these practice exams.
Other Practice Material¶
Outside of past exams, we suggest looking at these additional practice resources in this order:
- Past quizzes: The quiz questions we have been using this quarter are designed for our course. These are great examples of the format and concepts we will ask on the exam.
- Past section materials: The section resources are great study problems for the exam content. In particular sections 16, 17, and 18 are targeted for exam review.
- Past lecture examples!
- PracticeIt!
- Note: Practice-It! has many full exams from past courses, but these do not necessarily line up to our course content. Please take the practice exams there with a large grain of salt since they do not necessarily line up with the CSE 122 exam. If you are curious what is and will not be on the exam, re-read the section above.
Synchronous Resources¶
The last week of lecture is primarily dedicated towards final exam review and preparation. In addition, our final three quiz sections are dedicated to final exam review.
In addition to lecture and section content, the course staff plan to run a final review session. This session will be conducted in-person, though we hope to also be able to record the session. The time and date of this review session will be announced soon.