CSC 316 Functional Programming Resit 2023
About this paper
CSC 316: Resit Examination for CSC316, Functional Programming, from the Department of Computer Science, Faculty of Science, University of Buea, July 2023. Students answer Question ONE and any TWO others. Question 1 covers why functional programming suits concurrent and high-abstraction problems, and defining OCaml types and a counting function for a civil-status registry of persons. Question 2 covers the three rules of the lambda calculus (alpha-conversion, beta-reduction, eta-conversion), simplifying a lambda expression by alternating left-most-innermost and right-most-outermost reduction and by call-by-value, and constructing least fixpoints for recursive functions via a functional's repeated composition, applied to a sample function. Question 3 covers type safety, type checking and type reconstruction, the notion of substitution and its use in term matching, how substitution generalises to most general unifiers, and the definitions of polymorphism and parametric polymorphism. Question 4 covers how axiomatic, denotational and operational semantics attribute meaning to programs, and formalising the operational semantics of a bean-reduction game (BWG) with three adjacency rules, applied to two example bean sequences.
Opens this paper in the app on your phone.
University of Buea
Faculty of Science - FS
Computer Science - CSC
Functional Programming
Resit · Second Semester Resit · Level 300
At a glance
- Course code
- CSC316 (CSC 316)
- Type
- Resit
- Year
- 2023
- Level
- Level 300
- Semester
- Second Semester Resit
- Proposed solution
- Included
Where it's from
University
University of BueaFaculty
Faculty of Science - FSDepartment
Computer Science - CSC
Read CSC316 2023 in Shoracy.
- Every page, with zoom for diagrams and small print
- The proposed solution, one tap away
- Stays on your phone after the first open, even offline
Don't have the app yet?