This folder contains past UG exam questions, which are perfect for self-practice and review.
Each exam folder contains the following three files:
-
*-questions.lhs
Contains only the exam questions and problem statements. Use this file to attempt the problems without seeing the solutions. -
*-solutions.lhs
Contains fully worked solutions with explanations for the corresponding questions. -
functions.md
Lists standard Haskell functions and operators allowed in the exam. The definitions here are the ones you should use in the proof-based questions.
-
Open the *-questions.lhs file in your Haskell editor.
-
Write your solutions directly in the file. Make sure that all code lines start with > (no space before it, and one space after it), and that each code block is separated by a blank line.
-
Test your code in GHCi by loading the file with
:l *-questions.lhs. -
When you have finished, review the *-solutions.lhs file to compare your solutions with the provided answers.