CS101
Assignment
No.2 Solution:-
Q1.
I.
Multiply 6 with 2
6*2=12
6+6=12
110+110=1100=12
II.
Addition of 7 and 3
111+11=1010=10
III.
Subtraction of 5 and 4
5+
(-4)
2’s
complement of -4=1100
0101+1100+10001
neglecting first because of overflow final answer would be 0001
Q2.
|
(00110011)2 AND (10101011)2 |
|
(00100011)2 |
apply XOR operation:
|
(00100011)2 |
|
00010000 |
|
(00110011)2 |
![]() |
| Add caption |

thank sir it gave me a lot of benefit
ReplyDelete