Question PSC-FUNC-0036
EasyWhat will be printed by the following pseudocode?
Function twice(Integer x)
return 2 * x
End Function
Print twice(twice(twice(1)))
- A.
3
- B.
8
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Functions and Recursion question
What will be printed by the following pseudocode?
Function twice(Integer x)
return 2 * x
End Function
Print twice(twice(twice(1)))
3
8
Sign up free to see the answer and a step-by-step explanation.
6
2