Unit 3 - Data representation Flashcards
What are natural numbers?
Natural numbers are integers greater than 0.
What are ordinal numbers?
The numbers indicating order of occurrence (1st, 2nd, 3rd, etc.)
Advantages of using hexidecimal:
- A hexadecimal value is much easier to read and
remember than a string of binary digits - It is quicker to write or type, since a hex digit takes
up only one character, not four - There is less chance of making an error when typing
hex characters than a string of 1s and 0s - It is very easy to convert to and from binary
How many possible binary codes does ASCII allow for?
256
What are the first 32 characters in the ASCII table?
The first 32 characters are all control characters, such as backspace.
How many characters in the ASCII table are control characters?
The first 32 characters are all control characters.
How many bits make up the characters in Unicode?
Either 16 or 32 bits.
How are parity bits used?
Parity bits are used in error detection. When a byte of data is sent, a parity bit is set to a 1 or a 0 to make the total numbers of 1s in the byte either even or odd depending on the machine.
How does majority voting work?
Majority voting is a method of error detection that requires each bit of data being sent three times. From the three bits, a 1 or 0 is chosen based on which one appears more.
What is a checksum and what is its purpose?
A checksum is an error checking algorithm that can be applied to a packet of data. The algorithm is applied to the packet to calculate a check digit, which is transmitted with the packet. Upon arrival, the same algorithm is applied to make sure the same check digit is obtained.
How does capturing an image using a digital camera work (ignoring colour)?
The image is broken up into a grid of pixels and light sensors are used to detect the intensity/brightness at each pixel. These measurements are converted into a binary code using an analogue-to-digital converter.
How does a digital camera recognise colour?
Each pixel of the image is mapped from a set of filters (red, green and blue). The intensity of the individual filters can be used to calculate the amount of their respective wavelength of light.
What electrical component is used to convert light sensor measurements into binary codes?
An analogue-to-digital converter.
How are bit-mapped graphics represented.
They are represented by a grid of pixels, each holding a colour value.
What are the differences between analogue and digital data? (discrete or continuous?)
Analogue data is continuous by nature; the distance between two points would be analogue since you can forever increase the accuracy of measurement… kind of. Discrete data is much more definitive; a byte is discrete because the potential numbers it represents are fixed.