General Information
- Date: Wednesday, Oct 11
- Time/Location: Your exam will take place in lecture.
- Duration: 50 minutes
- Closed-book, Closed-notebooks, No Computers/Calculators.
- Use a pencil/mechanical pencil (no pen) to answer the exam.
- Please take a look at the general exam rules available at
Exam Rules.
Exam Structure
- Short answer questions: This includes for example, multiple
choice, True/False and fill-in-the-blank type questions.
- Code analysis questions: We will give a short segment of code and
you may be asked to identify syntax and logical errors, generate code
output, etc.
- Code reordering questions: We will give a number of unindented, shuffled statements and you
may be asked to reorder the statements to make a working program.
- Code Writing: Write a program/code snippets to solve a given
problem. You should be prepared to give a complete program, but we may also
ask you to provide just a single function or a code fragment.
Topics
The exam will include all the material covered in discussion session (lab),
lecture, quizzes, and projects (#1 and #2) including the following topics:
- Unix - You must be familiar with the following commands and concepts
- cp
- ls
- cd
- pwd
- gcc
- diff
- Input/output redirection
-
Computer Organization
- C Language
- Preprocessor directives (#include, #define)
- Variables
- Expressions
- Operators
- Conditional statements
- switch statement
- Input/Ouput (scanf/printf)
- Loops(while, do while, for loops)
- break statement
- Defining functions
- Pseudocode
The exam will NOT cover the following topics:
- Emacs, debugger, math library functions, continue statement
Practice Material
Go over all the worksheets and lab exercises we have provided.
Some previous midterm for the course are:
Web Accessibility