APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY Previous Years Question Paper & Answer

Course : MCA

Semester : SEMESTER 4

Year : 2021

Term : JULY

Branch : MCA

Scheme : 2016 Full Time

Course Code : RLMCA 262

Page:1





PDF Text (Beta):

05RLMCA262052001

to normal form.

Page 1 of 2

Marks
(3)
(3)

(3)

(3)
(3)

(3)

(3)
(3)

(6)

E Pages: 2
Reg No.: Name:
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
Fourth Semester MCA Degree Regular and Supplementary Examination July 2021
Course Code: RLMCA262
Course Name: FUNCTIONAL PROGRAMMING
Max. Marks: 60 Duration: 3 Hours
PARTA
Answer all questions, each carries 3 marks.
1 Explain the concept of currying with the help of an example.
2 State and explain the properties of bijective function with the help of an
example.
3 Which of the following are legal list constructions, also write the contents in
list?
a) list] = 1 : [1,2]
b) list2 = [2] : ]]1[[
९) list3 = [1] : [1]
4 Define Map and Filter using recursion and show their usage using examples.
5 Explain the use of Tuples in functional programming with the help of an
example.
6 Explain and show how constructors are used to define an Enumerated data type
with the help of an example.
7 Define a Haskell function to remove even elements from a list.
8 Write the lists generated by the following Haskell list expressions:
a) [++] |; <- [1..4]]
0) [x*2|x <- [1..5], x*2 > 4]
९) [(4) |i <- [1.2], j - [1..4].<] ]
PART ‏تا‎
‎Answer any one question from each module. Each question carries 6 marks.
Module I
9 Explain any 3 data structures commonly used in functional programming.
OR
10 Let square x=x*x. Show different reduction sequences for square(square(3+2))

(3)

Similar Question Papers