DC Lab 1 Data Representation
DC Lab 1 Data Representation
DC Lab 1 Data Representation
This lab goes through some important number base conversions that are used by networking
engineers for a variety of tasks. The context of the conversions are “dotted decimal notation
(DDN)”, understanding using binary to represent alternatives, and conversion from ASCII to
Binary. All computing representations are in binary (base 2) but we use different bases (octal
(8), decimal (10), and hexadecimal (16) for humans to represent and understand the binary.
In lab, for each of the questions below, the first part is an example with its solution. The
boldface are questions you are to do and answer in a homework-style quiz. There are 20
questions.
1. Dotted Decimal Notation Conversion
Convert the following to Dotted Decimal Notation (DDN) or to Binary
a. 123.45.87.44: 01111011.00101101.01010111.00101100
b. 10.105.73.9: 00001010.01101001.01001001.00001001
c. 168.88.93.144: 10101000.01011000.01011101.10010000
2. Convert the following to dotted decimal notation.
a. 11001110.01100111.11001100.00010001: 206.103.204.17
b. 10000101.01011000.01101001.00010111: 133.88.105.23
2. Using the ASCII table (http://www.ascii-code.com/), convert the following text to binary
___________. Use 8-bits for each character (each one begins with a zero). Do not include
the quotation marks.
a. “Pace University”
01010000 01100001 01100011 01100101 00100000 01010101 01101110 01101001
01110110 01100101 01110010 01110011 01101001 01110100 01111001
b. “Geographic”
01000111 01100101 01101111 01100111 01110010 01100001 01110000 01101000
01101001 01100011
c. “Walk, don’t run”
01010111 01100001 01101100 01101011 00101100 00100000 01100100 01101111
01101110 00100111 01110100 00100000 01110010 01110101 01101110
4. Using the ASCII table (http://www.ascii-code.com/), convert the following Binary to ASCII
text. 8-bits are used for each character (each one begins with a zero). The quotation marks
aren’t included:
a. 01010000 01101100 01100101 01100001 01110011 01100001 01101110 01110100
01110110 01101001 01101100 01101100 01100101
“Pleasantville”
a. 01010111 01101000 01101001 01110100 01100101 00100000 01010000 01101100
01100001 01101001 01101110 01110011
“White Plains”
b. 00110001 00110000 00110101 00111001 00110000
“10590”
Using the programmer calculator (for binary, pad with zeros to make a complete octet:
5. Convert Decimal to Binary
a. 3,456
00001101 10000000
b. 1,234,567
00010010 11010110 10000111
c. 666,666
00001010 00101100 00101010
6. Convert Binary to decimal
a. 00100110 10010100
9,876
b. 00001000 01001100 11110011
543,987
c. 10000101 10111011 10100001
8,764,321