Question 1
· unclassifiedP · Verified PYQ
Problem
What will be the final value of the res when INPUT N1=100? Function F(INPUT N1) Static int res=0; IF(N1>0) res=res+1 F(N1/20) END IF return res END Function
- A. 3
- B. 2
- C. Error
- D. 1
Answer:
B2
What will be the final value of the res when INPUT N1=100? Function F(INPUT N1) Static int res=0; IF(N1>0) res=res+1 F(N1/20) END IF return res END Function
Answer:
B2
Local Storage Only
Your progress is saved securely in your browser. No account needed. (If you clear data or switch devices, progress resets).