C: final assessment
This covers the whole course. Take it after the last module.
Final quiz
Practical assessment: Build a word frequency counter
Without using hints, write a program that reads words from a file, counts how many times each appears and prints the results from most to least common.
- The words are stored in a struct array that grows with realloc
- A missing file gives a clear message
- Words are compared without regard to capital letters
- The sort uses your own compare rule, with ties in alphabetical order
- All memory is freed, and the program runs with no warnings under -Wall -Wextra
Final project
A student records system: Build a program that adds, lists, searches and sorts student records, and saves them in a file so that they are still there next time.
How it is evaluated
- Correctness: the program does what every requirement says, including on unusual input
- Memory safety: there are no leaks, overruns or use after free
- Structure: small functions with clear names
- Robustness: every fopen and malloc is checked, and errors give clear messages
To complete this course
- Score at least 70% on the final quiz
- Solve the beginner and intermediate exercises in every lesson
- Finish the final project and check it against the evaluation criteria