Skip to content

Latest commit

 

History

History

README.md

Exam Practice Materials

This folder contains past UG exam questions, which are perfect for self-practice and review.

File Structure

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.

How to Use

  • 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.