What will be the output of the following expression ?
x =4 print(x<<2)
निम्नलिखित कोड का आउटपुट क्या होगा?
A. 4
B. 16
C. 6
D. 2
binary of 4 is : 100
After sifting 2 bits at left the value is : 10000 which is 16 in decimal so the answer is 16