Section 3 - Data Representation - Part 1 Flashcards
What is a natural number?
A whole number that is used in counting
What is a rational number?
Any value that can be expressed as a ration or fraction
What is an irrational number?
A value that cannot be expressed as a fraction and has an endless series of repeating digits
What is a real number?
A real number is any natural, rational or irrational number. It is the set of all possible real world quantities
What are ordinal numbers?
Numbers that describe the numerical position of objects
What base is decimal?
10, with digits 0 - 9
What base is hexadecimal?
16, with digits 0 - 9 and A - F
What base is binary
2, with digits 0 and 1
How do you convert from binary to hex?
Split the binary number into groups of 4 binary digits and convert each group to their hex equivalent
How do you convert from hex to binary?
Convert each hex digit into the equivalent value with 4 binary digits
How do you convert from hex to decimal?
Multiply the left column by 16 and the right column by 1, then sum the results
How do you convert from decimal to hex?
Convert the decimal number to binary, then the binary into hex
Why is hex used?
- Fewer mistakes will be made when copying the value as it is shorter
- It is easier to remember
What is a bit?
A fundamental unit of information, either a single 1 or 0. They are used to represent the 2 electronic states (on and off)
What is a byte?
A set of 8 bits
What is a nibble?
A set of 4 bits
What is the number of values that can be represented by n bits?
2^n
What is ASCII code?
Previously it was the standard code for representing the characters on the keyboard. It uses 7 bits, forming 128 different bit combinations which is more than enough to cover all the characters on a standard English-Language keyboard
Why can ASCII not be used for arithmetic?
The number character is not the same as the actual number value. For example the ASCII value for 7 is 0110111 which is actually 55 in binary
How many bits are there in ASCII code?
Originally ASCII code used 7 bits, however an 8-bit version was developed to include an additional 128 combinations to represent symbols
What is unicode?
The global standard for multilingual data. There are 16 and 32 bit variations. It is compatible with ASCII because the first 128 codes are the sameW
What is the downside of unicode?
Unicode encodings take more storage space, increasing file size and transmission times
What is error checking?
A variety of systems used to verify that the data they receive is actually the same as the data that was sent
Why do computer systems use error checking?
Bits can change during transmission due to interference