Download as pdf or txt
Download as pdf or txt
You are on page 1of 12

Data Representation

Uses of Hexadecimal system


Why hexadecimal is used?

● It’s more convenient to use hexadecimal because one


hex digit represents 4 binary digits.
● Easier for humans to remember, copy or work with
● Programming with hex values is more easier than
binary
1. Error codes

● refer to the
memory location of
the error
● Auto-generated by
computer
● Programmer to
interpret the
hexadecimal error
codes
● Example of error
codes from a
windows system ->
2. Media Access Control addresses (MAC address)

MAC
address

Go to cmd prompt -> ipconfig /all -> physical address


MAC Address - cont

● Uniquely identifies a device on


a network
● Refers to Network Interface
Card (NIC) which is part of the
device 00-14-22 - devices made by DELL
● 48 bits - 6 groups of two 00-40-96 - devices made by Cisco
hexadecimal digits 00-a0-c9 - devices made by Intel
● NN-NN-NN-DD-DD-DD or

NN:NN:NN:DD:DD:DD
3. Internet Protocol (IP) addresses

● Data traversing the Internet is divided into smaller pieces, called packets.
● IP information is attached to each packet, and this information helps routers to send packets to the right place.
● The Internet Protocol (IP) is a protocol, or set of rules, for routing and addressing packets of data so that they can
travel across networks and arrive at the correct destination.
● Every device or domain that connects to the Internet is assigned an IP address, and as packets are directed to the IP
address attached to them, data arrives where it is needed
IP Addresses - cont...

● IPv4 address is a 32-bit number written in denary or hexadecimal form


● Ex: 109.108.158.1 in denary or 77.76.9e.01 in Hex
● IPv6 address is 128 bit number broken into 16-bit chunks represented
by Hex
● A8fb:7a88:fff0:0fff:3d21:2085:66fb:f0fa
● IPv4 uses “.” whereas IPv6 uses “:”
4. HTML Color codes

● HyperText Markup Language used in processing, defining and presentation of


text in the webpage
● Uses <tags> to markup the content, defining a particular style for the content
that will be shown
● Represents colours of text on the screen using RGB value (Red Green Blue)
● Intensity of each colour is represented by its hexadecimal value

You might also like