Data Representation Flashcards
Natural numbers
- All positive whole numbers and zero
- Used for counting
Integer numbers
All whole numbers, including zero
Rational numbers
- Numbers that can have a fractional part
- Includes zero
Irrational numbers
Numbers that cannot be written exactly as a fraction
Real numbers
- All possible real world quantities
- All members of irrational, rational, integers and natural numbers are real numbers
Ordinal numbers
Integers used to describe the numerical positions of objects in relation to others
Decimal
- Uses the digits 0 through 9
- Denoted with subscript 10
Binary
- Uses the digits 0 and 1
- Can represent high and low currents
- Denoted with subscript 2
Hexadecimal
- Uses the digits 0 through to 9 followed by the uppercase characters A to F
- Denoted with a subscript 16
- Can represent numbers using far fewer digits than binary or even decimal
Bit
- The fundamental unit of information
- Represents high or low current
- Can take either of the values 0 and 1
- The more bits assigned to a number, the more values can be represented
Byte
8 bits
Nibble
4 bits
Binary prefixes
Go up in powers of 2
Denary prefixes
Go up in powers of 10
Unsigned binary numbers
Can only represent positive numbers
Signed binary numbers
Can also represent negative numbers
Range of unsigned binary numbers
0 to 2^n - 1
Two’s complement
- The MSB is given a negative place value
- Has a range of 2^(n-1) to -2^(n-1)
Information coding system
The method computers follow to represent characters
Character code
A decimal digit used to represent a character
ASCII
- A character encoding system that is used to represent English characters
- Uses 7 bits to represent 128 different characters
Unicode
- A character encoding system that is used to represent text from all languages (and other symbols)
- Uses anywhere from 8 to 48 bits per character
Error checking methods
- Parity bits
- Majority voting
- Checksums
- Check digits
Parity bits
- A single bit added to a transmission that can be used to check for errors in transmitted data
- Can use even or odd parity
- If an error is detected the computer asks the sender to retransmit the data