Final Exam

Time
8:45 am
Date
Monday 4th February 2019

You have been assigned a seat. [Check your seat allocation here.][ALLOC]

Exam Instructions

The final exam consists of ten questions. You will have ten minutes of reading time, and three hours working time to solve the questions. Questions are not worth equal marks.

It is a good idea to start with the simplest questions. Be mindful of the time; if you get stuck, try to move to the next question, and come back to the problem later.

The submission instructions are detailed in the file for each question. When submitting your program, the system will run a couple of simple tests. The test code is not available, but if a test fails, you can use (e.g.,) gdb, set a break point at the function you implemented, and step through the execution to see where things are going wrong.

Each question is described in the corresponding .c file.

For all questions, you may create your own additional helper functions. Be sure to make them static.

Other Exam Information

For all programming questions, there are submission tests and test files provided. Passing these does not guarantee full marks, but is a good start!

For some of the test files, you will just get a .o file (not a .c file), as seeing the test code would help you answer the actual question.

During the exam you will have access to a C reference card. You will be able to access it by clicking on the desktop and selecting it from the menu.