Semester : SEMESTER 4
Subject : Functional Programming
Year : 2018
Term : APRIL
Branch : MCA
Scheme : 2016 Full Time
Course Code : RLMCA 262
Page:2
12
13
14
b)
a)
a)
a)
b)
b)
b)
EC410 Pages: 2
OR
Explain recursion over Lists. (6)
Explain the use of MAP function and FILTER function on Lists. (6)
OR
Explain recursion over Natural Numbers (6)
What are Abstract Data types? Explain using one example. (6)
OR
What operations are defined on a Binary Search Tree? Explain the (6) operations
using the definition of the functions.
How would you implement a Queue Data Structure using Haskell? (You (6)
need to insert and delete values in the data structure).
OR
i. Write the Haskell code using Pattern Matching to find the factorial of a
(3) number.
Write the Haskell code to find the sum of even
numbers from a list. (3) ****
Page 2 of 2