CSC 316 Functional Programming Exam 2022
About this paper
An End-of-Semester Examination for CSC 316 Functional Programming at the University of Buea Faculty of Science, dated Tuesday 21/06/2022, instructed by Dr. William Shu and Mr. Roger Mawoh. Q1 requires implementing OCaml set operations (union, intersection, difference) and list quantifiers/filter (forall, exists, filter) with worked examples. Q2 covers evaluation strategies (normal order, call-by-need, call-by-value), a call-by-name beta-reduction of a multi-step lambda expression, and Church encodings/Church booleans. Q3 covers axiomatic/denotational/operational semantics and a denotational semantics for a restricted Roman-numeral BNF grammar with two worked evaluations. Q4 covers type safety/checking/reconstruction, substitution/unification, typed stores for imperative side effects, and existential types for modules/ADTs with witness types. A handwritten 'DANNY' annotation was excluded as incidental personal information.
Opens this paper in the app on your phone.
University of Buea
Faculty of Science - FS
Computer Science - CSC
Functional Programming
Exam · Second Semester · Level 300
At a glance
- Course code
- CSC316 (CSC 316)
- Type
- Exam
- Year
- 2022
- Level
- Level 300
- Semester
- Second Semester
- Proposed solution
- Included
Where it's from
University
University of BueaFaculty
Faculty of Science - FSDepartment
Computer Science - CSC
Read CSC316 2022 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?