Practice Problems for the Paper-and-Pencil part of Exam 3
This page links to practice problems for the Paper-and-Pencil part of
Exam 3, along with links to their answers.
-
Your instructor will give you paper copy
of some or all of these practice problems.
- See your instructor for what parts of these practice problems, if any,
are part of your Admission Ticket for Exam 3.
-
For the Paper-and-Pencil part of the exam,
the only external resource
that you may use is a Hint Sheet that is THREE (one-sided) 8.5 x 11 sheets of paper,
with whatever you want on them (printed or handwritten).
-
Read this statement on Academic Integrity;
you will sign and turn it in at the exam.
The exam will assess your ability to trace code by hand,
where that code includes:
-
WHILE loops, in both the while True and while
condition forms.
-
Simple loops within loops, including sequences within sequences.
-
A class definition and code that constructs multiple instances
of that class, accesses and sets instance variables of the class,
and calls methods of the class.
- This will require that you include a box-and-pointer diagram.
- This problem(s) will be about 1/3 of the points for the Paper-and-Pencil Part of Exam
3.
-
Code that has container objects that are mutated,
including code with function(s) whose arguments include container objects that are mutated
within the function.
- This will require that you include a box-and-pointer diagram.
- This problem(s) will be about 1/3 of the points for the Paper-and-Pencil Part of Exam
3.
The practice problems are:
-
A Sample Exam from a previous term,
with answers in a video.
(There are also
written answers to the Sample Exam,
although both the practice problems and the answers are for a slightly different version
than was handed out in class.
- Pay special attention to problems 6 and 7.
-
This Sample Exam does NOT have a problem that requires
tracing code through a class definition,
but YOUR Exam 3 WILL include such a problem. See examples below.
-
Practice Problems for the Paper-and-Pencil portion
with answers here.
- Pay special attention to problems 2, 6, 7 and 23.
-
The answers follow the same pagination as the problems (approximately),
so do a page, check its answers, do a page, check its answers, etc.