Report Bug

Qus: <p>What will be the output of the following?</p><pre>def iq(a,b):<br>&nbsp; &nbsp; if(a==0):<br>&nbsp; &nbsp; &nbsp; &nbsp;return b<br>&nbsp; &nbsp; else:<br>&nbsp; &nbsp; &nbsp; &nbsp;return iq(a-1,a+b)<br>print(iq(3,6))</pre>

Qus<p>निम्नलिखित का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">def iq(a,b):<br>&nbsp; &nbsp; if(a==0):<br>&nbsp; &nbsp; &nbsp; &nbsp;return b<br>&nbsp; &nbsp; else:<br>&nbsp; &nbsp; &nbsp; &nbsp;return iq(a-1,a+b)<br>print(iq(3,6))</pre>


A. 9
B. 10
C. 11
D. 12


Solution
D. 12



Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test , CCC MCQ Python Coding Tutorials Best Computer Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Website development Company in Allahabad