What will be the output of the following pseudo code? For input a = 8 & b = 9.…

PYQ Accenture Hiring Assessment 2025

What will be the output of the following pseudo code?

For input a = 8 & b = 9.

function (input a, input b)

If (a < b)

return function (b, a)

elseif (b != 0)

return (a + function (a, b - 1))

else

return 0

  1. A.

    56

  2. B.

    88

  3. C.

    72

  4. D.

    65

Attempted by 79 students.

Sign up free to check your answer

Sign up free

Explore the full course: Cdac C Cat Complete Preparation

Loading lesson…