SOLVE THIS JAVA QUESTION PLEASE
Attachments:
2110:
can't get you
Answers
Answered by
0
Answer :::
( a ) 0010100
( b ) 1111111
( c ) 11000011
Answered by
0
We know,
Binary and (&) :
0&0=0
0&1=0
1&0=0
1&1=1
Binary or (|) :
0 | 0=0
0 | 1=1
1 | 0=1
1 | 1=1
Binary nor (^) :
0 ^ 0=0
0 ^ 1=1
1 ^ 0=1
1 ^ 1=0
so,
(a) 1010101 & 0010100 = 0010100
(b) 1111111 | 1100100 = 1111111
(c) 00110011 ^ 11110000 = 11000011
Similar questions