WorksheetsBitwise Operators in C Language
Total questions: 10
Worksheet time: 5mins
What is the result of 5 & 3 in binary?
2
0
1
4
What is the result of 7 | 2 in binary?
5
7
9
3
What is the result of 10 ^ 6 in binary?
1000000
1111000
1010101
1100110
What is the result of 8 << 2 in binary?
100000
101010
111111
110000
What is the result of 16 >> 3 in binary?
00100
00001
00011
00010
Fill in the blank: Bitwise AND operator returns 1 if ________ bits are 1.
none
either
both
neither
Fill in the blank: Bitwise OR operator returns 1 if ________ bits are 1.
either
none
both
neither
Fill in the blank: Bitwise XOR operator returns 1 if ________ bits are different.
corresponding
opposite
matching
similar
Fill in the blank: Bitwise left shift operator shifts the bits to the ________.
down
left
right
up
Fill in the blank: Bitwise right shift operator shifts the bits to the ________.
down
up
right
left
