1. In Recursion, the part of the code which runs itself is called?
2. In Recursion, the condition which stops the recursive calls is called?
3. Look at this sample code:
1: public int Fact(int num) 2: { 3: if (num == 0) 4: return 1; 5: else 6: return num * Fact(num-1); 7: }
Which of these lines are the General Case?
4. Look at this sample code:
Which of these lines are the Base Case?
5. Look at this sample code: 1: public int Fact(int num) 2: { 3: if (num == 0) 4: return 1; 5: else 6: return num * Fact(num-1); 7: }
The function Fact is run with the parameter of 5.
Fact(5);