CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

What value would the following function return for the input x = 95?

Function fun (x : integer) : integer ;
Begin
If x > 100 then fun = x - 10
else fun : = fun(fun (x + 11))
end;

A
90
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
89
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
92
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
91
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution

The correct option is D 91

So the return value is 91

flag
Suggest Corrections
thumbs-up
3
similar_icon
Similar questions
View More
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Functions
QUANTITATIVE APTITUDE
Watch in App
Join BYJU'S Learning Program
CrossIcon