Python : Operators Expressions and Python Statements

निम्नलिखित कोड आउटपुट क्या होगा? print(4 & 5) , What will the following code output? print(4 & 5)

निम्नलिखित कोड आउटपुट क्या होगा? print(4 & 5)

What will the following code output? print(4 & 5)
A. 4

B. 5

C. 0

D. 1



Correct Answer :

A. 4



Explanation
<p>Convert numbers to binary:</p><p><span style="font-size: 1rem; letter-spacing: 0.01rem;">4 in binary: 100</span></p><p><span style="font-size: 1rem; letter-spacing: 0.01rem;">5 in binary: 101</span></p><p><span style="font-size: 1rem; letter-spacing: 0.01rem;">Then Perform and operation</span></p><p><span style="font-size: 1rem; letter-spacing: 0.01rem;">100</span></p><p>101</p><p>----</p><p>100 which is 4 in decimal</p>
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