Tutorial 2
Tutorial 2
General questions
1. What number system is commonly used to represent data in computers?
2. Complete the following tasks:
- List the first 20 decimal numbers (beginning from 0)
- List the first 20 binary numbers (beginning from 0)
- List the first 20 octal numbers (beginning from 0)
- List the first 20 hexadecimal numbers (beginning from 0)
3. Define the following terms:
(a) bit (b) byte (c) nibble
Exercise 1
1. Using division-by base method, convert the decimal number 247 to binary form.
Confirm whether is the 111101112 is correct answer.
2. Convert 1001002 to decimal equivalent. Check whether the returned decimal is 9 or 36.
3. Convert 10111102 to decimal form.
4. What is the decimal equivalence of 111111112?
5. Convert 101111001102 to its octal equivalent.
6. Convert the binary number 1110110112 to octal form.
7. Find the hexadecimal equivalence of 1101112.
8. Convert the binary number 01011102 to hexadecimal form.
9. Complete the following table for binary, octal, and hexadecimal numbers. What do
you notice?
Exercise 3
1. Using the place value method, convert the following to binary number equivalent to:
(i) 14510 (ii) 128010 (iii) 520410 (iv) 800010
2. Using the polynomial form convert each of the following base 2 numbers to their decimal
equivalents.
1st year–Semester 1 2023-2024
Module: Computer Architecture 1 Tutorial N° 2 : Numeral Systems
3. Using division-remainder method, convert the following decimal numbers to octal form.
(a) 999 (b)1875 (c) 5210 (d) 505
(e)1810 (f)3185 (g)1000 (h)750
4. Convert the following octal numbers to decimal form.
(a) 778 (b) 648 (c) 1028 (d) 12008 (e) 10008
5. Using division-by base method, convert the following decimal numbers to their
hexadecimal equivalents:
(a) 107 (b) 9850 (c) 5207 (d) 7500 (e) 7075
6. Convert the following hexadecimal numbers to decimal form:
(a) 3216 (b) CCD16 (c) EFE16 (d) 11916 (e) 32816
(f) 10AFFD16 (h) DDFF3416 (i) 11ABDF16 (j) CDFF3116
7. Give the expanded base 9 form of the number 5487259. Enter all digits in decimal form, that is,
for A enter 10: ⋅96+ ⋅95+ ⋅94+ ⋅93+ ⋅92+ ⋅9+ . 1
(a) 295 (b) 247 (c) EFD (d) 907 (e) BAAC (f)653F
2. Convert the following binary numbers to their hexadecimal and octal equivalents:
(a) 778 (b) 648 (c) 1028 (d) 12008 (e) 10008
4. Convert the fractional decimal number 43.562510 to binary form. Compare your answer
with 101011.10012.
5. Convert the fractional decimal numbers to binary, octal and hexadecimal forms:
6. Convert 11.110112 to decimal form and compare the value you get with 3.8437510.
1st year–Semester 1 2023-2024
Module: Computer Architecture 1 Tutorial N° 2 : Numeral Systems
Exercise 5
1. Perform the binary addition of 001102 and 011012.
2. Find the sum of the following binary numbers:
Exercise 6
1. Find the result of the following binary difference:
(a) 100112 – 11002 (b) 10110 – 1011
(c) 101 – 100 (d) 10111 – 1111
2. Work out the following binary subtractions:
1. 11 001 2. 101 3. 11011 4. 1100 5. 111011
– 1 010 – 100 – 111 – 011 – 110
Exercise 7
Additional Exercises
1. Binary to decimal
Binary Decimal
101001102
101101112
2. Decimal to binary
Decimal Binary
12510
43610
3. Octal to decimal
Octal Decimal
1238
7568
4. Decimal to octal
Decimal Octal
9810
36910
5. Octal to binary
Octal Binary
2558
12468
6. Binary to octal
Binary Octal
101101101012
1110101010002
7. Hexadecimal to decimal
1st year–Semester 1 2023-2024
Module: Computer Architecture 1 Tutorial N° 2 : Numeral Systems
Hexadecimal Decimal
15A16
2FE16
8. Decimal to hexadecimal
Decimal Hexadecimal
9110
59910
9. Hexadecimal to binary
Hexadecimal Binary
5E8D16
0F4C16
10. Binary to hexadecimal
Binary Hexadecimal
10011110001110012
1011011010110011012