What will be the output for the pseudo-code for p=22, q=127 fun(int p,int q)…
PYQ Infosys Hiring Test 2025
What will be the output for the pseudo-code for p=22, q=127
fun(int p,int q)
if (p == 1)
return q;
else if (p%2==0)
return fun (p - 1 , q);
else
return 0;
- A.
9
- B.
6
- C.
5
- D.
None of the above mentioned
Attempted by 83 students.
Sign up free to check your answer
Sign up freeLoading lesson…

