Data Representation Flashcards
1 bit =
• 1 byte =
• A nibble =
• 1 kB (kilobyte) =
• 1 MB (megabyte) =
• 1 GB (gigabyte) =
• 1 TB (terabyte) =
• 1 PB (petabyte) =
1 bit = a single 0 or 1
• 1 byte = 8 bits = 1 character of text
• (A nibble = 4 bits or half a byte)
• 1 kB (kilobyte) = 1000 bytes
• 1 MB (megabyte) = 1000 kB or 1000x1000 bytes
• 1 GB (gigabyte) = 1000 MB
• 1 TB (terabyte) = 1000 GB
• 1 PB (petabyte) = 1000 TB
Deneary to Binary
a) 18
b) 57
a) 10010
b) 111001
Show the possivle combinatioms or states per bit:
1 bit =
2 bits =
3 bits =
1 bit = 2
2 bits = 4
3 bits = 8
What is 1001 (binary) in denary?
9
How do you know if binary numbers are even or odd?
Even numbers have a 0 at the end and odd numbers have a 1
How do you translate 2A hex to denary?
2 x 16 = 32
Add the A equal to 10
= 42
How to convert denary to hex.
Divide the denary number by 16 and the remained will be the last digit
E.g 18/16 = 1 r 2 so the hex value for 18 is 12
Binary to hex conversion
Divide the binary into two nibbles of 4 bits and then convert each nibble to it’s hex value. Eg
11100101 ~> 1110 = E in hex and 0101 = 5 in hex therefore 11100101 = E5
Advantages of using Hex?
- Much easier to remember a hex value than a binary value
- Quicker to type or write hex
- Easy to convert between Hex and binary
- People make less errors with fewer digits
Binary addition rules:
0 + 0 =
0 + 1 =
1 + 0 =
1 + 1 =
1 + 1 + 1 =
0 + 0 = 0
0 + 1 = 1
1 + 0 = 1
1 + 1 = 0 Carry 1
1 + 1 + 1 = 1 Carry 1
What does a left and right binary shift do?
Left shifts multipy and right shifts divide by 2
What error does it cause when an addition is too large?
Overflow error
What are the two main character sets?
ASCII and Unicode
Types of bitmap image file formats
BMP, JPG, GIF, PNG
Type of vector format
SVG
What is a pixel?
The smallest identifiable area of an image
What is image resoloution?
The concentration of pixels within a specific area
How to calculate the amount of colours in a pixel
If there are 8 bits per pixel = 2^8 = 256 colours
2 to the power of the amoumts of bits per pixel(n) are equal the the amount of colours. n in this case if referring to bit depth
In 32 bit colour what are the last 8 bits for?
Given to a transparency channel to allow background to show through
What is metadata?
Informatiom other than image data is stored with a file including: Date created, author, resoloution, colour depth per pixel
What is analogue to digital converision?
Analouge sound signals are continuous and digital signals are discrete. Sound is digitized by repeatedly measuring and recording the sound wave
Calculating sound file sizes
File size bits = sample rate (per second) x bit depth x duration (s)
File size / 8 = to amnt in bytes