Data Representation Flashcards
Why is data stored in binary in computer?
The computer uses switches/logic circuits/transistors can only store and process data in two states (high/low) (on/off) (1/0), The binary values represent the current flowing through the circuit, 1 current is on/flowing and 0 is current in off/not flowing.
Advantages of Hex
-easier for humans to read and understand -easier for humans to debug -fewer digits so it takes less space on the display.
Uses of Hex
-notation for colour in HTML #FF0000 red -Display MAC addresses -Display memory dump/ machine code -display error code
Binary Number system
Base 2 system (0-1 values), has units that increase by power 2, more digits for the same value
Denary Number system
Base10 (0 to 9 values), has units that increase by power10, less digits than binary for the same value.
Hex number system
Base 16, 16 symbols (0 to 9 and A to F), Units that increase by power of 16, least digits than binary and denary for the same value
When will overflow error occur?
if value is greater than 255 in an 8-bit register, it occurs when a value outside this limit should be returned.
Why does overflow error occur?
A computer/device has a predefined limit that it can represent/store
What are the two systems for character representation?
ASCII, Unicode
Advantages of ASCII
Character takes only one byte of storage (8 bits)
Advantages of Unicode
-Contains many more characters -Unicode allows for a greater range of characters and symbols than ASCII (different languages/emojis)
Disadvantages of ASCII
Does not contain a large enough character set for some languages
Disadvantages of Unicode
-character takes 2 bytes (16 bits)), -requires more bits per character than ASCII
Define Character Set
-All the characters and symbols that can be represented by a computer system. -each character and symbol is assigned a unique binary value
Explain how the captured images as converted into digital photo files.
-image is made up of pixels, image has set number of pixels wide by pixels high, each pixel stores one colour, each colour has a unique binary value, the colour/binary value of each pixel is stored in sequence, file contains metadata to identify how the file should be displayed, metadata can be colour depth/resolution, suitable photo file example:JPEG, EXTRA: in coloured high quality images, the amount of binary data needed is much greater to get the correct colour depth in each pixel, in images more pixels used will give a higher quality (resolution)
Define Pixel
The smallest component of an image
Define photo resolution
The number of pixels in an image
Define photo colour depth
The number of bits used to represent each colour
How to increase file size and quality of an image
increase resolution and colour depth
Explain how the recorded sounds are converted to digital photo files
sampling is used by recording the amplitude the amplitude of the sound waves at regular time intervals, the value of the sample is recorded as a binary number, increasing the sampling rate means more samples will be used (and the time intervals will be closer) and the sound track quality will be higher
Define sound Sample Rate
numbers of samples taken in a second
Define sound Sample resolution
Number of bits per sample
What increase the accuracy of the recording
file size increases as sample rate and resolution increases as accuracy increases
Why do we compress data
smaller file size(less storage space needed), less bandwidth required, faster transmission(quicker to upload and download)