Which of the following is a normal function definition and which is recursive function definition i) let rec sum x y: return x + y ii) let disp: print 'welcome iii) let rec sum num: if (num!=0) then return num + sum (num-1) else return num
Answers
Explanation:
Science
Time : 00:45:00 Hrs
Total Marks : 24
12 x 2 = 24
1.
What is a subroutine?
2.
Define Function with respect to Programming language.
3.
Write the inference you get from X:=(78).
4.
Differentiate interface and implementation
5.
Which of the following is a normal function definition and which is recursive function definition
i) let rec sum x y:
return x + y
ii) let disp :
print ‘welcome’
iii) let rec sum num:
if (num!=0) then return num + sum (num-1)
else
return num
6.
Differentiate parameters and arguments.
7.
Give an example of function definition parameter without type.
8.
Give an example of function definition parameter with type
9.
What is recursive function?
10.
Give an example of pure function
11.
Give an example of impure function.
12.
Construct on algorithm that arranges meetings between these two types so that they change their color to the third type. In the end, all should display the same color.
Answer:
fu*k off
Explanation:
dhzhcchbThe Great Depression deserves its title. The economic crisis that began in 1929 soon engulfed virtually every manufacturing country and all food and raw materials producers. In 1931, Keynes observed that the world was then ‘in the middle of the greatest economic catastrophe . . . of the modern world . . . there is a possibility that when this crisis is looked back upon by the economic historian of the future it will be seen to mark one of the major turning points’ (Keynes, 1931).