IGCSE 0478 / Chapter 1.1 All chapters Account / sign in

Chapter 1.1 · Data representation

Binary, denary and hex. Why programmers prefer hex, what a MAC address is, and what happens when a register runs out of bits.

8sections
~3 minto read
1try-it
Paper 1IGCSE 0478
Start reading Jump to the try-it
Contents · 8 sections
  1. Denary, Binary & Hexadecimal
  2. Explain why a computer can only process binary data
  3. Uses of Hexadecimal
  4. Why do Developers prefer to use Hexadecimal?
  5. Describe a similarity & difference between Binary and Hexadecimal
  6. MAC Address
  7. Overflow Errors
  8. What Effect does a Logical Shift have on a binary number
01 / 08

Denary, Binary & Hexadecimal

  • Binary system:Base 2. Only has 2 values. Represented using 0 and 1.
  • Denary system:Base 10. Has 10 values. Represented with numbers from 0--9.
  • Hexadecimal:Base 16. Has 16 values. Represented with symbols 0--9 and letters A--F.
02 / 08

Explain why a computer can only process binary data

  • Computer consist of transistors/logic circuits that can only store process data in two states (on/off)
⚠Similar question could be: explain why data needs to be converted to binary.
03 / 08

Uses of Hexadecimal

  • Error codes. Eg #404
  • HTML colour codes. Eg FFFFFF
  • URL
  • Memory Dump
  • IP addresses
  • Assembly language
  • ASCII/Unicode
04 / 08

Why do Developers prefer to use Hexadecimal?

  • Easier/quicker to understand/read/write
  • Easier/quicker to debug
  • Less likely to make a mistake
  • Shorter representation // Takes up less screen space
⚠Think about the hexadecimal error code 404, the binary equivalent is:010000000100.Which is easier to memorise?
05 / 08

Describe a similarity & difference between Binary and Hexadecimal

  • They are both number systems
  • Binary is base 2 whereas hexadecimal is base 16
  • Binary only uses numbers whereas hexadecimal also uses letters // Binary only uses 0 and 1 whereas hexadecimal uses 0 to 9 and A to F
06 / 08

MAC Address

  • Made up of 48 bits
  • Shown as 6 groups of two hexadecimal digits
  • First half represents Manufacturer
  • Second half represents Serial number
  • Uniquely identifies a device on the network
  • eg. 11:11:11:11:11:11
  • MEDIA ACCESS CONTROL (only use if not referred to by the question!)
07 / 08

Overflow Errors

  • A computer has a predefined limit that it can represent (eg. 8 bits) Overflow occurs when a value outside this limit should be returned
  • Can occur when two binary numbers are added together the result cannot be represented in the current register.
  • eg. 255+10 in binary cannot be represented in the current size of the register.
  • Solution: use a 16 bit/2 byte register
08 / 08

What Effect does a Logical Shift have on a binary number

Example 1: 2 Left logical shifts on00010011

  • Result:01001100
  • The number has been multiplied by 2 to the power of 2

Example 2: 2 Left logical shifts on11010011

  • Result:01001100
  • Most significant bits are lost. The answer is incorrect
⚠Before you answer these questions look at what is happening to your binary register. If a left most bit is lost use Example 2 answer, otherwise Example 1.
  • Left shifts = multiplication by 2^number of shifts
  • Right shifts = division by 2^number of shifts

Practice

That’s chapter 1.1 done.

You’ve reached the end of the reading. Mark this topic as studied above, then practise with the mark scheme.

Take the topic test Next: 1.2 Text, Sound & Images