COMP2521 Prac Exam 2

Locations

You have been assigned to a lab for the exam, based on your last name.

Please check the table below and make sure you go to the correct lab on the day

Surname/Last NameExam Location
A-Fkora
G-Ksitar
L-Pbrass (horn and bugle)
Q-Vflute
W-Zoboe

Exam Instructions

Start-of-Exam Instructions: End-of-Exam Instructions: Actual Exam Instructions:

The prac exam consists of 3 programming questions, 5 multiple choice questions and two written questions. You have 1 hour and 30 minutes to answer the questions. Each programming question is worth 10 marks. Each multiple choice question is worth 2 marks. Each written question is worth 5 marks.

Each programming question is described in the corresponding .c file

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

As always, it is a good idea to start with the simplest question - be mindful of the time, if you get stuck, try to move to the next question and come back to the problem later.

Your multiple choice and theory answers can be submitted by pressing save on this application.

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

You may submit your solutions as many times as you like. The last submission ONLY will be marked.

To check what you have submitted you may simply type the command '''submit'''

Don't forget you can copy and paste by simply high-lighting text to copy and clicking with the middle mouse button to paste.

To access the C reference card, C manual information or the algorithms almanac, right click on the desktop and select from the menu.

Other Exam Information

Exam will include all material up to and including sorting. There will be 3 programming questions, multiple choice and theory.

For all programming questions there are submission tests and test files provided. Passing these does not guarantee full marks, but they are 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 the following C information You will be able to access it by right clicking on the desktop and selecting it from the menu.

During the exam you will have access to the following C Reference Card You will be able to access it by right clicking on the desktop and selecting it from the menu.

During the exam you will have access to the following algorithm almanac You will be able to access it by right clicking on the desktop and selecting it from the menu.

For some questions you may be required to type in a tree. You should do so in the following type of format

    5
   / \
  2  10
       \
       17
etc