CA2019Proposed solution included

CSC 316 Functional Programming CA 2019

About this paper

CSC 316: Continuous Assessment Test I for CSC316, Functional Programming, Department of Computer Science, Faculty of Science, University of Buea, 3 July 2019. The paper instructs 'Answer ANY TWO Questions'; all three are answered for completeness. Question 1 covers the dimensions used to classify functional programming languages (purity, typing discipline, evaluation order, polymorphism style), evaluation strategies (normal order vs call-by-value), a call-by-value reduction of a lambda expression requiring alpha-renaming to avoid capture, denotational semantics, and how static semantics is captured by a type system. Question 2 covers type safety, type checking and type reconstruction, the distinction between a type system and a type theory, unifiability, two worked unification problems computing most general unifiers, and extending a unification algorithm with a symmetric variable-elimination case. Question 3 covers variable capture, De Bruijn indices, alternative capture-avoidance techniques, evaluating two small let-expressions, and an OCaml record type plus a cipher-checking function with example output.

Open in Shoracy

Opens this paper in the app on your phone.

University of Buea

Faculty of Science - FS

Computer Science - CSC

CSC3162019

Functional Programming

CA · Second Semester · 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
CA
Year
2019
Level
Level 300
Semester
Second Semester
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 2019 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