Report Bug

Qus: <p>What is the output of the following code?</p><pre><span style="font-size: 14px;">x = 50<br></span><span style="font-size: 14px;">def func (x):<br></span><span style="font-size: 14px;">&nbsp; &nbsp; x = 2<br></span><span style="font-size: 14px;">func (x)<br></span><span style="font-size: 14px;">print ('x is now', x)</span></pre>

Qus<p>निम्नलिखित कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">x = 50<br></span><span style="font-size: 14px;">def func (x):<br></span><span style="font-size: 14px;">&nbsp; &nbsp; x = 2<br></span><span style="font-size: 14px;">func (x)<br></span><span style="font-size: 14px;">print ('x is now', x)</span></pre>


A. x is now 50
B. x is now 2
C. x is now 100
D. Error


Solution
A. x is now 50



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