22C:16: Exam 2 Announcement
Exam 2 for 22C:16 will be held on March 28th (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, printed Python programs,
Python documentation, 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. This problem will test your understanding of indexing and slicing of lists and strings,
operations that are common to lists and strings, operations specific to strings, and the map, filter, and reduce
functions.
For examples see Problem 1 in Quiz 6, Problem 1 in Quiz 7, etc.
- Problem 2. [40 points] You will be given 2 programs and asked to write down the output produced
by each of these programs. One of these questions will test your understanding of keyword arguments and parameters,
variable scope, local variables, global variables, etc (see Quiz 5). The other question will test your understanding of how map, filter, and reduce work
.
- 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. One of these problems will mainly test your understanding of indexing, slicing, and common list and string
operations (e.g., Homework 5 and Project 1). The other problem will test your understanding of file input-output and how to process lines of
a file to extract meaningful information from it (e.g., Homework 6 and Project 1).
- Problem 4. [40 points] You will be given a problem and and some suggestions on how to solve it.
The suggestions will describe functions you are required to write. For this problem, you should expect to write a
couple of functions that are 5-6 lines long and a main program that is 5-6 lines long. The problem will
be set up so that we can grade the functions and the main program separately and independently. This will allow
us to give you partial credit, even if for example, you get one function correct but not the other.
This problem will be comprehensive in nature and will test your ability to use a variety of the concepts you have
learned, especially those you have learned since Exam 1.