B 2.4.5 Worksheet 1 answers
Question 1 (a) (i) State the output printed by the call iter_d(4);. [1] (a) (ii) Construct the recursive method recur_d(int n)... [3] Question 2 (a) (i) State the value returned by the call iter_e("Go", 3);. [1] (a) (ii) Construct the recursive method recur_e(String s, int n)... [3] Question 3 (a) (i) State the value returned by the call iter_f(4);. [1] (a) (ii) Construct the recursive method recur_f(int n)... [3]...