CS 2213 Advanced Programming, Spring 2001 Midterm Exam 3 Comments
Grade Distribution:
- 90-100: 8
- 80-89: 8
- 70-79: 4
- 60-69: 8
- 50-59: 12
- below 50: 16
- Class average: 62
General Comments
- Problem 1:
- Many people still do not know what a filter is.
- May only use getchar and putchar here.
- An empty line cannot contain blanks and tabs.
- Problem 2:
- sizeof is not the same as strlen.
- If you change argv[i] you cannot then print out the string.
- Do not output more than what was asked.
- Problem 3:
- This program requires a string compare, not just a compare of pointers.
- Either use the library function or write your own.
- Do not put the string compare code inside of this function.
- Make sure you have a space between fields.
- Make sure you output a newline at the end.
- Problem 4:
- Watch out for infinite loops when the hash table is full.
- Be sure to handle the wrapping of the index correctly.
- Don't treat first comparison as special case.
- You must use symbolic values for the status values.
Exam solutions here.