Python : Operators Expressions and Python Statements

<p>निम्नलिखित पायथन एक्सप्रेशन की वैल्यू क्या होगी ?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">print(float(4+int(2.39)%2))</span></pre> , <p>What will be the value of the following Python expression?</p><pre><span style="font-size: 14px;">print(float(4+int(2.39)%2))</span></pre>

<p>निम्नलिखित पायथन एक्सप्रेशन की वैल्यू क्या होगी ?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">print(float(4+int(2.39)%2))</span></pre>

<p>What will be the value of the following Python expression?</p><pre><span style="font-size: 14px;">print(float(4+int(2.39)%2))</span></pre>
A. 5.0

B. 5

C. 4.0

D. 4



Correct Answer :

C. 4.0



Explanation
The above expression is an example of explicit conversion. It is evaluated as: float(4+int(2.39)%2) = float(4+2%2) = float(4+0) = 4.0. Hence the result of this expression is 4.0.
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