1.1. Data Representation Flashcards
1
Q
The basis of any number system consists of:
A
- A base: the number of digits that a number system
can use to represent numbers - Place value for each digit: digits in certain positions
have a specific value
2
Q
Denary
A
Base 10 integer digits
3
Q
Binary Systems
A
Base 2
4
Q
- kilo- (k)
- mega- (M)
- giga- (G)
- tera- (T)
A
- ×10^3
- ×10^6
- ×10^9
- ×10^12
5
Q
- kibi- (Ki)
- mebi- (Mi)
- gebi- (Gi)
- tebi- (Ti)
A
- ×2^10
- ×2^20
- ×2^30
- ×2^40
6
Q
Binary Coded Decimal (BCD)
A
- Binary representation where each positive denary digit is represented by a sequence of 4 bits (nibble)
- Only certain digits are converted to BCD, because particular digits represent a digit greater than 9.
7
Q
Practical applications of BCD
A
- A string of digits on any electronic device displaying
numbers (eg. Calculators) - Accurately measuring decimal fractions
- Electronically coding denary numbers
8
Q
Two’s Complement
A
- We can represent a negative number in binary by
making the most significant bit (MSB) a sign bit, which
indicates whether the number is positive or negative. - Find the binary equivalent of the denary number
(ignoring the -ve sign) | 42 = 101010
Flip all the bits | 00101001
Add 1 | 00101010
Convert binary to denary and put a –ve sign) | -42
9
Q
Maximum positive number in 8 bits
A
256
10
Q
Maximum negative number in 8 bits
A
-128
11
Q
Hexadecimal Systems
A
- Base 16
- Possible digits: 0 to 9 and A to F, where A to F
represent denary digits 10 to 15
12
Q
Practical applications of Hexidecimal
A
- Defining colours in HTML
- Defining Media Access Control (MAC) addresses
- Assembly languages and machine code
- Debugging via memory dumps
13
Q
Character Sets
A
- A character set generally includes upper & lower case
letters, number digits, punctuation marks and other
characters. - Character sets use different binary representations
for each character via character encoding
14
Q
Character Encoding Standards
A
ASCII, Extended ASCII, Unicode
15
Q
ASCII
A
- Only English
alphabets can be
represented - Each character
encoding takes up
7 bits, hence 128
possible characters - Smaller storage
space.