CS101 assignment no.02 solution fall 2020.

 

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



























cs101 assignment no.01 2020
Add caption

Comments

Post a Comment