It is highly recommended that you answer the exam using Rmarkdown (you can simply use the exam Rmarkdown file as a starting point); see below.
You can download the combined lecture notes for this module at notes (pdf).
If there is more than one exam exercise below, your teacher will instruct you about which you can choose.
You find the exam exercise here as an Rmarkdown file and as knitted pdf file.