Data Representation Flashcards
What are natural numbers?
Set of numbers containing all positive whole numbers and zero.
Used to count hoe many of an item you have
What are integer numbers?
Set of whole numbers positive and negative, including zero
What are rarional numbers?
Can have fractional part, positive negative and zero. Can be written as fraction or decimal
What are irational numbers?
Cannot be weitten as a fraction
Pi, squared, cubed etc
What are real numbers?
All possible real world quantities - everything
What are ordinal numbers?
Integers used to describe numerical positions of objects in relation to others.
What type of numbers would be used for counting and for measuring
Counting - natural
Measuring - real
What is Character code?
Decimal digit used to represent a character - A - Z represented by 1 - 26
If used by a computer, binary representstion would be used.
What is ASCII
American Standard Code for Information Interchange.
Introduced 1963, uses 7 bits to represent 128 diff characters including alphabet and some symbols
What is Unicode?
Introduced 1991 and allows wide range of alphabets. Uses between 8 and 48 bits (1 - 6 bytes) per character - larger variety than ASCII
What are parity bits?
Singke bit added to transmission that can be used to check for errors. Value is calculated from transmitted data
Parity check occurs when data recirved - if value of bit correlates to correct type of parity bit, transmission is treated as correct. Othereise, retransmitted.
What are the two types of parity bit?
Odd and even parity
Even - value chosen, make total number of 1’s equal.
Odd - adds parity bit to make data odd.
What is the major issue with parity bits?
If even number of bits are chamged, no error will be detected.
What is majority voting?
Each bit is transmitted multiple times - most commonly occuring value is taken to be correct.
When error occurs - majority doesn’t detect error, just corrects it. - no need for retransmission
Volume of data transmitted (timsed by 5) - major downside.
What are checksums?
Involves addition to a value determined by data itself
Algorithm used to determine value of checksum based on transmitted data - simple modulo function works.
- repeated by recipient. If it does not match, data is retransmitted