NIELIT O Level Exam

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

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

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

A. 4

B. 5

C. 0

D. 1




Correct Answer is :

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 Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad