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

Convert numbers to binary:

4 in binary: 100

5 in binary: 101

Then Perform and operation

100

101

----

100 which is 4 in decimal

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