CS112: Exam 1 :: Coverage and Format
Date and Topics
The first CS112 exam will be held in class on Monday, March 2.
The exam will be an open book exam, so you can refer to the text or any of
your lecture or lab handouts, notes, assignments and solutions during the exam. The exam will focus
on the following topics:
- Variables and assignment statements
- Values: numbers and text
- Vectors and matrices
- Performing arithmetic computations on vectors and matrices
- Indexing with vectors and matrices
- Colon notation
- Conditional expressions, logical vectors and matrices, and
if
statements
- Input/Output with
input
and disp
- Plotting
- Analyzing tables of data
- Creating and processing images
- Writing scripts
You may want to make a crib sheet of important information for quick reference. There
will be a review for the exam during lab on Tuesday, February 25.
Material to review
The following reading, handouts and course work will be most relevant for preparing for the exam:
- Gilat text, fifth or sixth edition: 10-20, 35-52, 63-68, 72-76, 95-102, 133-138, 141-148, 174-186
- Handouts and notes from Lectures #1-8
- Labs #1-4 (Lab #4 is the exam review session)
- Assignments #1-3 and solutions
Types of problems
The following is a list of some of the kinds of problems that will appear on the exam:
- Given a segment of MATLAB code, hand simulate the execution of the code, showing all of the
values that are returned by the code statements
- Given one or more MATLAB statements, rewrite the code using a different approach (that
may be described explicitly)
- Given a short description of a task, write code to perform this task (this may involve
writing a single statement or several statements)
- Given some buggy code, locate and describe the errors and suggest a way to fix the errors.
Note that credit will be lost both for missing real bugs and for identifying things that are not
real bugs! You will not need to specify the actual MATLAB error messages, you can just summarize
the nature of the error in English.