Topic 3 - Fundamentals Of Data Representation Flashcards
what is the capacity of a device ?
how much data the device can store
What is a bit ?
The smallest unit of data that we can store is called a binary digit, or a bit for short.
what is the value of bit ?
The value of a bit can be either a 0 or a 1
Why do we not normally use bits to measure data ?
Because a bit is so small
what are the smaller ways to measure data ?
Nibble (4 bits).
Byte (8 bits).
what are common (large) units of storing data ?
Kilobyte (KB) (1000 bytes). Megabyte (MB) (1000 KB). Gigabyte (GB) (1000 MB). Terabyte (TB) (1000 GB). Each unit is 1000 times the size of the previous unit
To calculate the amount of data that can be stored within a certain capacity, what three things do you need ?
size of the data being stored
how to convert between units
available capacity
The bigger the size of the data being stored, what does this mean for the capacity media ?
The bigger capacity media will be needed.
if a device has more capacity, what does this mean for the data ?
The more capacity available, the more data we can store.
An online video streaming service sends data at 4 MB per second. I only have 180 MB of data left. How long will I be able to watch the stream for?
45 seconds
I want to make a backup of 125 photos, which each take up 16 MB of disk space. What is the minimum amount of secondary storage space that I need, in GB?
Required capacity = number of files × size of a single file
Required capacity = 125 × 16 MB = 2,000 MB
convert from 2000MB to GB
2000MB/1000 = 2 GB
I need to download two videos, of average size 500 MB. What is the total amount of data that I will download?
1 GB
How many Kilobytes are there in four Gigabytes?
1,000 MB
1,000 × 4 = 4,000 MB
1,000 × 4,000 = 4,000,000 KB
In everyday life what number system do we use ?
denary
We use 10 symbols to represent each digit.
Each digit’s place value is multiplied by 10 as we move from right to left
what number system do computers use ?
Binary
Binary is an identical system, except using two symbols for each digit.
Only 1 and 0 are used in binary.
Each digit’s place value is multiplied by two as we move from right to left.
what is hexadecimal ?
Hexadecimal uses 16 different symbols for each place.
Hexadecimal uses the digits 0-9 then A-F:
A = 10 in denary, B = 11 …
Each digit’s place value is multiplied by 16 as we move from right to left.
Convert 10101 from binary to denary
21
How do you convert from Binary to hexadecimal ?
group into groups of 4 bits:
.
Start grouping from the right-hand side
Convert each 4 bit group separately.
How do you convert from Hexadecimal to binary ?
splitting each digit into 4 bits:
Separately convert each hexadecimal digit into 4 bits of binary.
Put all of the 4 bit groups together.
True or false: Some numbers can be represented in binary but not hexadecimal.
False
What is the easiest way to convert from denary to hexadecimal ?
The easiest method to convert denary numbers to hexadecimal is to first convert the denary to binary, and then use the binary to hexadecimal conversion algorithm.
How do you convert from hexadecimal to denary ?
Write out the powers of 16 above each hexadecimal digit.
For each place column, multiply the hexadecimal digit by the power of 16 above it.
Add together all of these results.
Convert 24 from hexadecimal to denary
Convert 24 from hexadecimal to denary:
Write out the powers of 16 above the digits
16 1
2 4
Multiply the digits by the power above them
16 × 2 = 32
1 × 4 = 4
Add the values together
32 + 4 = 36
Convert 15 from denary to binary
1111
Convert 0011001 from binary to hexadecimal
Split into groups of four bits
001 1001
Convert each digit separately
1 9
Put digits together
19
When grouping digits, you should group digits in which direction?
right-to-left
Why is hexadecimal good to use rather then binary ?
Hexadecimal is faster for humans to process than binary.
Hexadecimal allows us to find errors more easily.
Hexadecimal is used in every computer system
what are the advantages of hexadecimal ?
An 8-bit binary number can be represented by two hexadecimal digits.
This means you can reduce storage space and processing time with hexadecimal than with binary.
Hex is easier and faster to write two digits than the full binary sequence.
It is easier for a human to process hexadecimal than binary.
Using hexadecimal
what programming languages use hexadecimal ?
Hexadecimal is used extensively in programming languages such as:
Machine code.
Assembly.
when in programs is hex used when writing programs ?
Hex can be used during the debugging stage of writing programs as it is easy to process by humans.
what can hex represent ?
Hex can represent numbers stored in a CPU’s registers or in main memory.
What’s a MAC address
a number that uniquely identifies a networked device
In binary addition, if we add 0 + 0 what do we get ?
0
In binary addition, if we add 1 + 0 (or 0 + 1) what do we get ?
1
In binary addition, if we add 1 + 1 what do we get ?
we cannot use the symbol 2. So we need to carry the 1 and put 0 in the current place.
In binary addition, if we have 1 + 1 and also a 1 carried over from the previous column what do we get ?
carry the 1 and have 1 left over.
So we carry 1 and put 1 in the current place.
What is an overflow error ?
If a number is carried past the last place column
Are Binary numbers stored as a fixed length ?
Yes
What can overflow errors cause ?
inaccurate results and software crashes
What is a technique for performing multiplication or division on a binary number ?
A binary shift
What happens in a right binary shift ?
each digit is moved one place to the right.
This has the effect of dividing the number by two
Why must you take care when performing a right shift ?
So that no data is shifted off the right hand side as this can cause a loss of accuracy.