Question PSC-FUNC-0010
MediumWhat will be the output of the following pseudocode?
Function b(Integer n)
if (n == 0)
return ""
end if
return b(n / 2) + toString(n mod 2) // integer division
End Function
Print b(13)
- A.
1011
- B.
1101
- C.
Sign up free to see the answer and a step-by-step explanation.