ENGG1811 Lab 13: Exam Programming Practice
You will be working on two programming exercises, similar to exam questions.
Each lab time has a slightly different set of questions.
There is no online assessment this week.
What to do
No preparation is required, but bring some writing paper and a pen. Turn up
to the lab, log on as normal and download the
question workbook. The workbook is only accessible for the first
half hour of the lab period, and it is protected by a password that
the tutors have been told. At other times you will get a file not found
These two summary pages on OO
Basic and Matlab functions and syntax will also be available in the exam.
You can make use of them of you like.
The workbook has two sheets, B2 and C2.
- B2 is an exercise that requires you to write a function in
OpenOffice.org Basic to calculate and possibly classify a value. It
doesn't use loops of any kind.
- C2 is a Matlab function to be solved using both a for loop and array
operations (or vectorisation, which means do not use any loops). The
sheet has test data to be copied to Matlab.
Although in the exam you only write your solution on paper, to make the
most of the questions you should also implement your solution and test it
using the data sheet provided. The tutor will conduct the lab this way:
- Everyone keeps quiet as if it were a real exam. Have pen and paper
- Download the file to the desktop.
- When the tutor tells you the password, open the workbook and start
reading B2. For the first 5 to 10 minutes or so you should not do any
implementation. Sketch your answer as pseudocode on the paper you have
- The tutor is only able to clarify requirements, he/she is not allowed
to help you during the first period.
- You should take only a few minutes to implement the answer, but
testing and corrections using data and instructions on the worksheet may
take a while longer. Take note of the kinds of refinements you made to
get to the final working copy, and consider which of these could you
have anticipated in generating your original paper version.
- Repeat for C2. Allow 10 minutes for thinking and the sketched answer
and 15 for implementation and testing. The total exam time is 50 minutes
(under written exam conditions you would have about 35 minutes, but
without testing and revision). There will be a short delay while the
tutor checks your work if they haven't done so already.
Evaluating your progress
- If you have little or no trouble solving these problems you should do
well in the exam.
- If you have a fair amount of difficulty but the implementation
practice helps, try to learn from this how to improve your initial
- Attempt the sample exam, and if you are stuck attend the exam
The tutor will quickly assess how close your solutions are to working,
and award 1 mark for each reasonable attempt.