Fundamentals of Data Representation Flashcards
What is a natural number? (N)
A positive whole number used for counting and ordering.
Eg. 1,2,3,4
What is an integer? (Z)
A positive or negative whole number.
What is a relational number?(Q)
Any number that can be expressed as a fraction, with the numerator and denominator as whole numbers.
What is an irrational number?
A number that can’t be expressed as a fraction.
Eg. Root 2, pi
What is a real number?(R)
Any positive or negative value.
Used for measurements.
What is an ordinal number?
A number used to describe the numerical position of an object.
Eg. Second, fourth
What is a cardinal number?
A number used to describe a quantity.
Eg. One car, three dogs
What are the three number bases?
Base 2 - Binary - 0’s and 1’s
Base 10 -Denary - 0 -> 9
Base 16 - Hexadecimal - 0 -> 9 , A=10 -> F=15
What are the units of data in ascending order?
Bit x4
Nibble x2
Byte x1000
Kilobyte x1000
Megabyte x1000
Gigabyte x1000
Terabyte x1000
Petabyte x1000
What is a bit?
The smallest unit of data that can be processed by a computer.
What is the difference between a kilobyte and a kikibyte?
1 kilobyte = 1000 bytes
1 kikibyte - 1024 bytes
What is the difference between a signed and unsigned binary number?
Unsigned binary always has a positive value.
Signed binary could have either a positive or negative value.
How do you subtract 2 numbers using two’s complement?
1) Make the number being subtracted negative.
2) Do bitwise ADD on the two numbers.
How do you convert a positive number to a negative number?
1) Find the positive binary value
2) Flip the bits
3) Add binary value one
What is a parity bit?
A bit added to data to evaluate whether the data should be accepted or not.
What is majority voting?
A method of repeatedly sending the same bit multiple times, then the computer accepts the bit in majority.
What are the advantages of a parity bit?
Simple to implement
Low overhead
What are the disadvantages of parity bits?
Low reliability
No error correction
What are the advantages of majority voting
Reliable
Can detect and correct multiple-bit errors.
What are the disadvantages of majority voting
High overhead
Inefficient
What are check digits?
An additional digit at the end of a string of numbers designed to catch mistakes.
How do you calculate the check digit for ISBN-10?
Multiply by 10 then 9 then 8 ….
MOD 11
11 - ANS = check digit
How do you calculate the check digit for ISBN-13?
Multiply by 1 then 3 then 1 then 3…..
MOD 10
10 - ANS = check digit
What is a pixel?
The smallest element of an image.
What is a bitmap?
A map of where pixels should go.
What is the colour-depth?
The amount of bits needed to store all the colours for an image.
How do you calculate the number of colours?
2^colour-depth