General Information
- Date: Monday, Nov 20
- Time/Location: Your exam will take place in lecture (5 pm)
- Duration: 70 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 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 focus on the topics covered after the midterm I, but include all the material covered in discussion session (lab),
lecture, quizzes, and projects (#1, #2, #3, and #4) including the following topics:
- 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
- continue statement
- Defining functions
- Function Prototypes
- Random Number Generation
- Casting
- Pointers
- One-dimensional arrays
- const modifier
- Function stack
- Strings
- You are responsible for the following string functions
- typedef
- Design
- Pseudocode
- Memory Maps/Diagrams
- Testing
The exam will NOT cover the following topics:
- Unix, gdb debugger, Emacs, structures,
command line arguments
Practice Material
Go over all the worksheets and lab exercises we have provided. Previous
midterms can be found at prev_exams.zip.
Web Accessibility