Resit2023Proposed solution included

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.

Open in Shoracy

Opens this paper in the app on your phone.

University of Buea

Faculty of Science - FS

Computer Science - CSC

CSC3162023

Functional Programming

Resit · Second Semester Resit · Level 300

Open in the app to read the full paper and its proposed solution.

View solutionOpen in Shoracy
Proposed solution included

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

  1. University

    University of Buea
  2. Faculty

    Faculty of Science - FS
  3. Department

    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
Open in Shoracy