Sheet 3-2

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

ELECTRONICS AND COMMUNICATION ENG. DEPT.

SPHINX UNIVERSITY
DIGITAL AND LOGIC CIRCUITS LEVEL 2 (2023-2024)

SHEET #3

A) Calculate the summation of the following numbers:

1) 00000111 + 00000100
Answer: 1011
2) 10111100 + 00100001
Answer: 11011101
3) 10001100 + 00111001
Answer: 11000101
4) 00010110 + 00110011
Answer: 1001001
5) 00001111 + 11111010
Answer: 100001001
6) 01110000 + 10101111
Answer: 100011111
7) 11011001 + 11100111
Answer: 111000000

B) Subtract the following numbers by using the 2’s complement.

1) 1010100 – 1000011
Answer: 10001
2) 110110 – 11010
Answer: 11100
3) 10001 – 00101
Answer: 1100

C) Calculate the following numbers:

1) 1101 × 1010
Answer: 10000010
2) 10111 × 10011
Answer: 0110110101
3) 1100 ×1111
Answer: 10110100
4) 1010 × 101
Answer: 110010
5) 1100 ÷ 10
Answer: 110
6) 11100 ÷ 100
Answer: 111

D) If X=14 and Y=7, get the binary equivalent and calculate X + Y, X - Y in 2’s
complement, and X × Y
Answer: (14)10 → (1110)2 (7)10 → (0111)2

1110 1110 1110 0010


0111+ 0111- 0111× 111 |1110
10101 0111 1100010

E) Convert the following binary codes to Gray codes


1) 11000110
Answer: 10100101
2) 10010001
Answer: 11011001
3) 01001011
Answer: 01101110

F) Convert the following Gray codes to binary codes


1) 10010001
Answer: 11100001
2) 01001011
Answer: 01110010
3) 11101101
Answer: 10110110

You might also like