Question PSC-FUNC-0003
EasyWhat will be the output of the following pseudocode?
Function square(Integer x)
return x * x
End Function
Print square(3) + square(4)
- A.
7
- B.
12
- C.
Show answer and explanation
Answer: D
square(3) = 9 and square(4) = 16, so the sum is 25.