There will be one in-person, timed exam in CSE 122 this quarter. The exam will be on March 19, 2025 from 12:30pm to 2:20pm in KNE 130 and KNE 120.
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 disregard include (but are not limited to) if a student goes to the wrong room or refuses to move when asked to.
- 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 Elba via email.
Seating assignments will be posted during the last week of class.
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 5 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 and students 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.
- By default, your answers should be written in provided space within the exam booklet.
- 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).
- If a sheet of scratch paper has all or part of an answer, please:
- Write your name and the corresponding problem on that 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).
- Clearly indicate under the corresponding problem that your answer is attached on an extra sheet of paper.
- If an answer cannot easily be read or found, it will 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.
Answers must be written as proper Java code—we will not grade pseudocode (i.e., an English explanation instead of code) 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”
You should otherwise NOT use any abbreviations on the exam.
Please make very effort to make your Java code syntactically correct.
- In the case of a syntax error, the grader 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 intended behaviour is not unambiguously clear, then it is likely that your score will be reduced.
You do not need to write any import statements in your exam code (and may assume that the correct import statements exist).
You may choose to define any additional helper methods as part of your solution.
Unless a coding question specifically mentions otherwise, the code you write will be graded purely on external correctness (proper behavior and output) and not on internal correctness (code quality). So, for example, redundancy or lack of comments will not reduce your score. 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.
For the Stacks & Queues programming problems The cheat sheet mentions important restrictions on stacks and queues that you must follow.
Allowed and Forbidden Features¶
For standard Java classes such as Math
, String
, Scanner
, ArrayList
, Set
and String
, you are limited to the methods listed on the provided reference sheet. You may not use the Arrays
or Collections
classes or other standard classes and methods that aren’t included on the provided reference sheet.
You may not use extraneous material to solve exam problems. In other words, the forbidden features policy still applies for the final exam. 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 Elba before the exam begins to arrange an accommodation for a make-up exam due to sickness. If you’re sick, you need to stay home.
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
Set
s:TreeSet
,HashSet
Map
s:TreeMap
,HashMap
Stack
s andQueue
s- Nested Collections
- For each loops and Iterators
- Object Oriented Programming
- Writing a class
- Encapsulating fields and instance methods
- Interfaces
Topics guaranteed to not be on the exam:
- The
Optional
class - JUnit Syntax
- Third Party Libraries
- Image manipulation
- Inheritance between interfaces
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!
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), 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.
While useful, please note that the format of these practice exams may be different to the format of this quarter’s final exam.
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 (which will be live in-person and also plan to record). This quarter, it will be on Monday, March 17th from 4:30 – 7:00 PM in SMI 120.