Lecture%2025%20-Course%20Review-1

Lecture%2025%20-Course%20Review-1 - Ananda Gunawardena...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the 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.

Page1 / 9

Lecture%2025%20-Course%20Review-1 - Ananda Gunawardena...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online