OCR_Computing_GCSE_DataRepresentation Flashcards
Convert the denary number 106 into an 8 bit binary number.
01101010
Convert the denary number 106 into hexadecimal
6A
Peter takes a high resolution picture with a digital camera. The picture is stored in a bitmap file.
Describe how a picture is stored in a bitmap file.
The picture is split into a grid of pixels. Each pixel is given a binary code (which says what colour it is). The bitmap file contains the list of pixels along with meta data about the image e.g. height, width, colour depth, resolution etc.)
Peter wants to send the picture as an email attachment. State methods for reducing the size of the picture file so that it is suitable for sending as an email.
- Use image manipulation software to resize the image so that it uses less pixels.
- Reduce the colour depth to reduce the number of bits required to store each pixel.
3.Compress the file
Data stored in computers can be measured in bits, bytes and kilobytes.
State what is meant by a bit
A single binary digit, 0 or 1.
Data stored in computers can be measured in bits, bytes and kilobytes.
State what is meant by a byte
A group of 8 bits.
A file contains 5120 bytes. Calculate the size of the file in kilobytes. You must show your working.
5120 / 1024 = 5kB
An artist is recording sound using a computer. The graph below represents the pressure wave of the sound being recorded.
At point A on the graph, the size of the sound wave is 90. This is stored digitally using the binary value of 0101 1010 (or 5A in Hex).
What is the the size of the sound wave, the binary value and hex value at point C?
Size=60,
Binary=00111100,
Hex=3C
An artist is recording sound using a computer. The graph below represents the pressure wave of the sound being recorded.
At point A on the graph, the size of the sound wave is 90. This is stored digitally using the binary value of 0101 1010 (or 5A in Hex).
What is the the size of the sound wave, the binary value and hex value at point B?
Size=120,
Binary=01111000,
Hex=78
Explain how sampling intervals and compression can affect the size of a sound file and the quality of its playback. The quality of your written communication will be assessed in your answer to this question.
Sampling Rate
how close together the samples are taken the closer together, the more numbers need to be stored (and therefore larger file) but the sound that is created is closer to the original analogue mention of variable bit rates
Compression
use algorithms to make the file smaller (e.g for transmitting over Internet) and then recreated to be played can be lossy (eg mp3) and the recreated file is of poorer quality or lossless (eg flac) and the recreated file is exactly the same as it was before compression
Calculate the denary value of the 8-bit binary number 10010111. You must show your working.
128 64 32 16 8 4 2 1
1 0 0 1 0 1 1 1
128+16+4+2+1
151
Add the following two 8-bit binary numbers and explain the result. You must show your working.
1 0 0 1 0 1 1 1
1 1 0 1 1 0 0 0
An overflow has occurred because the result is more than 255 (cannot be represented in 8 bits).
Explain how ASCII is used to represent text in a computer system.
Each character is given a numeric code including symbols, digits, upper and lower case. This code is then stored in binary. Each character takes 1 byte. Text is stored as a series of bytes (1 per character). Some codes are reserved for control characters (eg TAB, Carriage Return)
State what is meant by the character set of a computer.
All the characters which are recognised/can be represented by the computer system.
Unicode is also used to represent text in a computer system. Explain the difference between the character sets of Unicode and ASCII.
Unicode has a much larger character set, representing symbols from many different alphabets. This is possible because each character uses 16 bits whereas ASCII only uses 8 bits.
Describe the difference between lossy and lossless compression and give an example where each would be used.
In lossy compression, when the data is uncompressed it is not exactly the same as the original but the difference is so small that it cannot normally be noticed eg music files(mp3) or large resolution images for displaying on small screens.
In lossless compression, when the data is uncompressed it is restored completely to the original file eg compressed text files.
Convert the hexadecimal number 6A to binary.
6 A
0110 1010
Convert the hexadecimal number 6A to denary. You must show your working.
6 A
0110 1010
128 64 32 16 8 4 2 1
0 1 1 0 1 0 1 0
64+ 32 +8 + 2 =
106
Convert the binary number 00111101 to hexadecimal.Show your working
8421 8421
0011 1101
3 D
Explain why hexadecimal numbers are often used to represent binary numbers.
Hex numbers are shorter/more memorable than equivalent binary numbers and can easily be converted to and from binary as each hex digit corresponds to 4 binary digits (a nibble).
Bytes, Kilobytes and Megabytes are units used for the amount of data stored in a computer.
State which of these units is most appropriate for the following item of data.
A one page text document
Kilobyte(s)
Bytes, Kilobytes and Megabytes are units used for the amount of data stored in a computer.
State which of these units is most appropriate for the following item of data.
A ten minute movie clip
Megabyte(s)
Bytes, Kilobytes and Megabytes are units used for the amount of data stored in a computer.
State which of these units is most appropriate for the following item of data.
A person’s surname
Byte(s)
A computer has a hard disk of 2 Terabytes. How much is this in Gigabytes? You must show your working.
2 * 1024GB
2048GB
What is meant by the resolution of the picture?
The concentration of pixels.
How does the resolution affect the size of the bitmap file?
The higher the resolution the more pixels that are required for the picture which will increase the size of the bitmap file.