Prac Exam 1
- Time
- 10:00 am (don’t be late!)
- Date
- Thursday 10 January 2019
You have been assigned to a lab for the exam, based on your tutorial group.
- M10A (mon10-sitar)
- sitar
- M14A (mon14-sitar)
- kora
- T10A (tue10-sitar)
- flute
- T17A (tue17-sitar)
- bugle (brass)
- W10A (wed10-sitar)
- horn (brass)
- W14A (wed14-sitar)
- viola
- H14A (thu14-sitar)
- oboe
- F10A (fri10-sitar)
- sitar
- F14A (fri14-sitar)
- cello
Exam Instructions
The prac exam consists of five questions. You have 90 minutes (1h30m) to solve the questions. Each question is worth 10 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
You will definitely get programming questions involving linked lists, recursion, and binary search trees.
For all 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.