Number System Conversion Exercises

100% found this document useful (2 votes)
974 views4 pages
This document provides examples for converting between different number systems, including binary, decimal, octal and hexadecimal. It gives the step-by-step work for converting several numbe…

Uploaded by

thepsalmist
  • Number System - Practice Theory

Computing Fundamentals

1
Number System

Week002 – Number System


Laboratory Exercise 001- Practice Laboratory 001

General Direction: Convert the following number system to the following base as shown in the
table below. Example. Covert 1110 to Decimal, Octal and Hexadecimal. Note that this laboratory is
intended for practice only.
1. Convert 11011101(binary) to base 10, 8 and 16
2. Convert 25(decimal) to base 2, 8 and 16
3. Convert 70(octal) to base 2, 10 and 16
4. Convert CD1(hexadecimal) to base 2,10 and 8

ANSWERS:
1. Convert 11011101(binary) to base 10, 8 and 16
a. Base 10
Decimal 256 128 64 32 16 8 4 2 1
Digit
Value
Binary 0 1 0 1 1 1 0 1 1
Digit
Value
128+32+16+8+2+1 = 187

Final answer: 110111012 = 18710

b. Base 8
011 011 101
421 421 421
3 3 5

Final answer: 110111012 = 3358

c. Base 16
1101 1101
8421 8421
13 13
Final answer: 110111012 = 131316
2. Convert 25(decimal) to base 2, 8 and 16
a. Base 2
Assessments
Division by 2 Quotient Remainder/Bit value

25/2 12.5 1

12/2 6 0

6/2 3 0

3/2 1.5 1

½ 0.15 1

Final answer: 2510 = 110012

b. Base 8

Division by 8 Quotient Remainder/Bit value

25/8 3.125 25-24=1


3x8=24 Remainder is 1

3/8 0.375 3-0=3


0x8=0 Remainder is 3

Final answer: 2510 = 318

c. Base 16

Division by 16 Quotient Remainder/Bit value

25/16 1.5625 25-16=1


1x16=16 Remainder is 9

1/16 0.0625 1-0=1


0x16=0 Remainder is 1

Final answer: 2510 = 1916

3. Convert 70(octal) to base 2, 10 and 16


a. Base 2

Given Binary value

7 111

0 000

Final answer: 708 = 111 0002

b. Base 10
0x80 = 0
Computing Fundamentals
3
Number System

7x81 = 56
0+56 = 56
Final answer: 708 = 5610

c. Base 16

Given Binary value

7 111

0 000

8421 8421
11 | 1000
3 8
Final answer: 708 = 3816

4. Convert CD1(hexadecimal) to base 2,10 and 8


a. Base 2

Given Binary value

C 1100

D 1101

1 0001

Final answer: CD116 = 1100 1101 00012

b. Base 10
1x160 = 1
13x161 = 208
12x162 = 3072
Final answer: CD116 = 328110

c. Base 8

Given Binary value

C 1100

D 1101

1 0001

421 421 421 421


110 | 011 | 010 | 001
6 3 2 1
Assessments
Final answer: CD116 = 63218

Computing Fundamentals
Number System
1
Week002 – Number System
Laboratory Exercise 001- Practice Laboratory 001
General Direc
Division by 2
Quotient
Remainder/Bit value
25/2
12.5
1
12/2
6
0
6/2
3
0
3/2
1.5
1
½
0.15
1
Final answer: 2510 = 110012
b. Bas
Computing Fundamentals
Number System
3
7x81 = 56
0+56 = 56
Final answer: 708 = 5610
c.
Base 16
Given
Binary value
7
111
0
000
Final answer: CD116 = 63218

You might also like