This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Ananda Gunawardena Lecture 25 Course Review Final Exam is given during 5 reserved time slots in wean 5419. 05-04 MON 1:00pm-4:00pm 05-06 WED 1:00pm-4:00pm 05-08 THU 1:00pm-4:00pm 05-12 TUE 1:00pm-4:00pm (Hub Schedule time) You need to signup for one of the time slots. Go to http://www.surveymonkey.com/s.aspx?sm=mwH6YTKy_2fXLM2DY9mVAmCg_3d_3 d Exam Format: Part I – Code Tracing/Debugging C Language Part II – Long Coding – Shell or Perl Part III – Long Coding – C programming Part I – In this part you will be asked to find potential problems in a piece of code. Code may work correctly or may run into one of the common runtime errors. Some of the errors that you may encounter are • Dereference of invalid or uninitialized pointer • Insufficient or unallocated memory for the operation • Reuse of storage after freeing it • Double freeing of memory • Incorrect use of pointer arithmetic • Returning a pointer that is no longer valid • Trying to free variables in the stack • assigning incompatible types • Array index out of bounds • Program logic confuses pointer and reference types Part II – In this part, you are asked to write a program in Perl or Shell. The program Should process folders, sub-folders, files, and patterns in files. You need to understand how to pass and process command line arguments in Perl or Shell, how to use simple Regular Expressions such as direct pattern matching’s, patterns starting with something, patterns ending with something, refereeing back to a pattern that was matched etc etc. We will discuss more of this in the next lesson. Part III – This is a good old C program that you need to write. You must understand, C functions, malloc and free, C arrays, resizing, function pointers, void*, generic data types, functions with variable number of arguments, bit operations, etc. Basically, any skill that you learned in labs is extremely useful. Review your labs again. We will also discuss and do some review sessions related to this. =============================================================...
View Full Document
This note was uploaded on 11/27/2009 for the course CS 123 taught by Professor Bajkzek during the Fall '08 term at Carnegie Mellon.
- Fall '08