0% found this document useful (0 votes)
30 views10 pages

DEJ

Uploaded by

ziadkh2010.ky
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views10 pages

DEJ

Uploaded by

ziadkh2010.ky
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

NAME : ZIAD KHALED / ID : 231017416

SHEET 1
Q1:
a) 101011
b) 1000000000000
c) 10.11
d) 110101010001100001
e) 0.1110010011
f) 1000011100.101001
g) 1.101
h) 0.11011
---
Q 2:
a) 13
b) 23
c) 51.75
d) 31.9375
e) 90.625
f) 113.0625
---
Q 3:
a) 46
b) 367
c) 532
d) 64.375
e) 761.328125
f) 529.625
---
Q4: Convert decimal numbers to octal
a) 33
b) 333
c) 663
d) 333.14
e) 2367.4
f) 11045.2_8
---
Q 5:
a) 1010001
b) 101100000
c) 1000010001011
d) 111100101.010110
e) 1101110000.010101
f) 1011010111.101
---
Q6: Convert binary numbers to octal
a) 7
b) 67
c) 136
d) 54.5
e) 54.3
f) 775.7
---
Q 7:
a) 35
b) 26
c) 141
d) 255.9375
e) 58.9375
f) 929.125
---
Q 8:
a) 34
b) B4A
c) 1964

Q 9:
a) E
b) BE
c) A6
d) 98.B
e) FC.3
f) 65.CB
---
Q 10:
a) 00111000
b) 101000010100
c) 1111101100010111
d) 100010101101.0001
e) 10111001000.01
f) 1111110110001000.1
---
Q 11:
A) 750.5= 120.625 = 78.A
b) 001010.101 = 10.625 = A.A
c) 1.101111 = 1.5 =1.BD
d) 1100111110001110.01111010= 147416.72= 53134.4765625

SHEET 2
1. Add the binary numbers:
a) 100
b) 100
c) 1000
d) 1101
e) 1110
2. Use direct subtraction on the following binary numbers:
a) 10
b)1
c) 1
d) 11
e) 1101
f) 11
3. Multiply the following binary numbers:
a) 1001
b) 1000
c) 100011
d) 1101110
e) 10011101
f) 10111010
4. Determine the 1's complement and 2's complement of:
a) 1101011
1's complement: 00101001
2's complement: 00101010
b) 11110
1's complement: 00001
2's complement: 10000
101001
1's complement: 010110
2's complement: 010111

5. Two ways of representing zero in 1's complement form:


 Positive zero: 00000000
 Negative zero: 11111111
6. How is zero represented in 2's complement form?

 Zero is represented as 00000000 only.

7. Express each decimal number as an 8-bit sign-magnitude number:

a) 00011101 (positive sign is 0)

b) 01111011 (negative sign is 1)

c) 01100100 (positive sign is 0)

8. Determine the decimal value of each signed binary number in sign-magnitude form:

a) −25

b) −63

c) +116

9. Express each decimal number as an 8-bit signed number using 1’s complement and 2’s complement:

a)

 Binary of 34: 00100010


 1’s complement: 11011101
 2’s complement: 11011110

b)

Binary of 115: 01110011

c)

 Binary of 99: 01100011


 1’s complement: 10011100
 2’s complement: 10011101

10. Determine the decimal value of each signed binary number in 1’s complement and 2’s complement form:
a)

 1’s complement: negative, magnitude 0011001 = −25


 2’s complement: 11001= −25

b)

 Positive, magnitude 1110100 =116

c)

 Negative, magnitude 0111111 = −63

11. Convert each pair of decimal numbers to binary and add using the 2’s complement form:

a)

 48

b)

 29

c)

 194

12. Add as an 8-bit signed binary number in the 2’s complement:

 a) 73
 b) 32

13. Subtract as an 8-bit signed binary number in the 2’s complement:

a) 000011002−11110111200001100_2 - 11110111_2000011002−111101112

 Convert to 2’s complement: 000010012


 Add: 21

b)

 Convert to 2’s complement: 000111102


 Add: −901

14. Convert each decimal number to BCD and XS-3:

a)
 BCD: 0001 0000
 XS-3: 0100 0011

b)

 BCD: 0100 0100


 XS-3: 0111 0111

c)

 BCD: 0110 1001


 XS-3: 1001 1100

d)

 BCD: 1001 1000


 XS-3: 1100 1011

e) 125:

 BCD: 0001 0010 0101


 XS-3: 0100 0101 1000

 BCD: 0001 1000 0110


 XS-3: 0100 1011 1001

g) 359:

 BCD: 0011 0101 1001


 XS-3: 0110 1000 1100

h) 1051:

 BCD: 0001 0000 0101 0001


 XS-3: 0011 0011 1000 0011

15. Convert the following BCD numbers to decimal:

 a) 1
 b) 18
 c) 754
 d) 800
 e) 9018
 f) 6667

16. Add the following BCD numbers:

a) 1001
b)

c) 10010111

d) 00101001

e) 10011000

f) 110001101001

17. Convert each pair of decimal numbers to BCD, and add as indicated:

a) 0111 (BCD)

b) =00100001 (BCD)

c) 01100011 (BCD)

d) 011100100 (BCD)

e) 1101100 (BCD)

f) 01010101 (BCD)

18. Convert each binary number to Gray code:

a)

 Gray code: 10110

b)

 Gray code: 1001110011001

19. Convert each Gray code to binary:

a)

 Binary: 1111

b)

 Binary: 11100100000

20. Convert (163)10(163)_{10}(163)10 to various systems:

 Octal: (243)
 Hexadecimal: (A3)
 Binary: (10100011)
 XS-3: 01110110
 Gray code: 11111010
 BCD: 000101100011

21. Convert each decimal number to ASCII:

 a) 6
 b)
 c) k
 d) k
 e) 8
 f)

22. Determine each ASCII character:

a) 0

b) =

c) C

d) B

23. Decode the following ASCII coded message:

 Decoded message: "Hello. How are you?"

You might also like