General Information
- Date: Saturday, Dec 16
- Time/Location: 4:00 PM - 6:00 PM (CSIC 1121)
- Duration: 120 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 include all the material covered in discussion session (lab), lecture, quizzes, and projects including the following topics:
- Unix: cp, ls, rm, cd
- 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- and Two-dimensional arrays
- const modifier
- Function stack
- Strings
- You are responsible for the following string functions
- typedef
- structures
- command-line arguments
- Design
- Pseudocode
- Memory Maps/Diagrams
- Testing
The exam will NOT cover the following topics:
- gdb debugger, Emacs, file I/O, recursion, malloc/calloc/free (dynamic memory allocation)
Practice Material
Go over all the previous midterm exams, worksheets and lab exercises we have provided in ELMS.
Web Accessibility