CS:1210 (22C:16 (CS:1210) Exam 1 Announcement
Exam 1 for 22C:16 (CS:1210) "Computer Science I: Fundamentals" will be held on Feb 21st (Friday) from 6:30 pm to 8:30 pm
in 100 PH (Philips Hall).
During the exam you can use any written material you bring, including lecture notes, 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, calculators, dictionaries, etc.
The exam is worth 120 points, which is 12% of your final grade. Here is a brief description
of the structure of the exam.
Each of the problems is worth 30 points, with points being equally divided among multiple
parts of a problem.
- Problem 1. 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. You will be given 3 programs and asked to write down the output produced
by each of these programs. These programs will involve if-statements, break-statements, while-loops (possibly nested), etc.
- Problem 3. 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. You will be given a programming problem and asked to write Python code to solve it.
Your code will be no longer than 5-6 lines long.