Chapter1 - Functions-12
Chapter1 - Functions-12
(B) 4 3 1 2
(C) 4 1 2 3
(D) 3 4 1 2
7. Which of the following are distinct syntactic blocks?
a) Subroutines b) Algorithms c) Function d) Definitions
IV. PUBLIC & GOVERNMENT EXAM QUESTIONS:
1. Which is the basic building block of computer programs? (Sep – 20)
a) Argument b) Parameter c) Subroutine d) Interface
2. The function which will give exact result when same arguments are passed are called (Mar – 20)
a) Impure functions b) Partial functions c) Dynamic functions d) Pure functions
i) let rec sum x y: ii) let disp: iii) let rec sum num:
return x + y print ‘welcome’ if (num!=0) then return num+sum(num-1)
else
return num