0% found this document useful (0 votes)
4 views

Tutorial 2

This document outlines a tutorial on numeral systems for a Computer Architecture module, including exercises on converting between decimal, binary, octal, and hexadecimal systems. It features various tasks such as defining terms, performing conversions, and solving addition, subtraction, multiplication, and division problems in different bases. Additionally, it includes exercises on fractional conversions and expanded forms in various numeral systems.

Uploaded by

derdour amira
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Tutorial 2

This document outlines a tutorial on numeral systems for a Computer Architecture module, including exercises on converting between decimal, binary, octal, and hexadecimal systems. It features various tasks such as defining terms, performing conversions, and solving addition, subtraction, multiplication, and division problems in different bases. Additionally, it includes exercises on fractional conversions and expanded forms in various numeral systems.

Uploaded by

derdour amira
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

1st year–Semester 1 2023-2024

Module: Computer Architecture 1 Tutorial N° 2 : Numeral Systems

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?

Decimal Binary Octal Hexadecimal Decimal Binary Octal Hexadecimal


0 89
15 99
24 108
37 111
46 128
51 134
63 141
78 155
Exercise 2
Tetradecimal, is a number system based on the number 14, and uses the digits
0,1,2,3,4,5,6,7,8,9, A,B,C and D. using your knowledge gained in number system, make a table
that will show the decimals 1-30 and its corresponding Tetradecimal digits.

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

(a) 10102 (c) 1010112 (e) 1011011012 (b) 10000000002


(d) 100011112 (f) 11101110102

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

Exercise 4 (by using the direct method)


1. Convert the following hexadecimal numbers to their binary equivalents:

(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) 10100100 (b) 10100111 (c) 10100010 (d) 101110101

(e) 10010010 (f) 11011111000 (g) 1100001011 (h) 1011011001

(i) 110011100111 (j) 100110110101011

3. Convert the following octal numbers to their binary 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:

(a) 0.62510 (b) 0.45010 (c) 2.50010

(d) 5.162510 (e) 7.187510 (f) 0.35010

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:

3. Find the result of the following binary addition:

4. Add in base 7: 1537 + 2167


5. Add in base 16: A2816 + 73916

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

6. 100010 – 11 7. 01101 – 1011 8. 11111111 – 10101101


9. 11101101 – 100111 10. 100000 – 1111

3. Subtract in base 7: 5367 -2457

4. Subtract in base 5: 14235 - 4245

5. Subtract in base 16: 5B216 – 17C16

Exercise 7

1. Perform the following binary multiplications:


(a) 101101 x 110
1st year–Semester 1 2023-2024
Module: Computer Architecture 1 Tutorial N° 2 : Numeral Systems

(b) 101101 x 111


(c) 1011.01 x 110.1
2. Multiply 328 * 58
3. Multiply 2213 * 23
4. Perform the following binary divisions:
(a) 1011 ÷ 11 (b) 10011 ÷ 101 (c) 1111 ÷ 11 (d) 11 ÷ 11
5. Divide 438 ÷ 78
6. Divide 113 ÷ 23
7. In which number system was the following operation carried out? 54b - 25b = 26b
8. Find the base X and Y in which the following numbers are expressed:
(120)x = (48)10 ; (280)y=(640)10

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

You might also like