22C:16: Exam 1 Announcement
Exam 1 for 22C:16 will be held on Feb 22nd (Wednesday) from 6:30 pm to 8:30 pm.
If you are in discussion sections A1, A2, A3, A4, or A5 you should go to room LR1 Van Allen Hall
for the exam.
If you are in discussion section A6 or in the evening section (SCA) you should go to room
LR2 Van Allen Hall.
Make sure you know your section and go to the appropriate room.
During the exam you can use any written material you bring, including lecture notes, Python programs, etc.
Make sure you bring everything that you feel you will need to the exam because you will not be allowed to share
or borrow material with classmates during the exam.
You will have to turn off and remove from your vicinity all electronic devices including
cell phones, lap tops, etc.
The exam is worth 150 points, which is 15% of your final grade. Here is a brief description
of the structure of the exam.
- Problem 1. [30 points] You will be given 10 expressions and asked to evaluate these and write down
their value and type. Some of the expressions may not be well-formed and you'll have to identify these
and explain why these are not well-formed. Some other expressions may be well-formed, but might
cause errors when evaluated. You will have to identify these as well and explain the nature of the
- Problem 2. [40 points] You will be given 4 programs and asked to write down the output produced
by each of these programs. These programs will involve if-statements, while-loops (possibly nested), etc.
- Problem 3. [40 points] You will be given 2 problems and for each you will be given a partially completed
program. You will have to "fill in the blanks" and complete each program in order to solve the given
- Problem 4. [40 points] You will be given a problem and partially completed code for it. The code
will contain one or more functions, but will also be missing one or more functions. You will have
to complete the code by supplying the missing functions. For this you will have to be able to define
functions and also call them appropriately.