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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Denary

A

Base 10 integer digits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Binary Systems

A

Base 2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  • kilo- (k)
  • mega- (M)
  • giga- (G)
  • tera- (T)
A
  • ×10^3
  • ×10^6
  • ×10^9
  • ×10^12
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  • kibi- (Ki)
  • mebi- (Mi)
  • gebi- (Gi)
  • tebi- (Ti)
A
  • ×2^10
  • ×2^20
  • ×2^30
  • ×2^40
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Maximum positive number in 8 bits

A

256

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Maximum negative number in 8 bits

A

-128

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Character Encoding Standards

A

ASCII, Extended ASCII, Unicode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

ASCII

A
  • Only English
    alphabets can be
    represented
  • Each character
    encoding takes up
    7 bits, hence 128
    possible characters
  • Smaller storage
    space.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Extended ASCII

A
  • ASCII’s extension -
    Also includes most
    European
    languages’
    alphabets
  • ASCII extended to 8
    bits, hence 256
    possible
    characters
17
Q

Unicode

A
  • Superset for ASCII
    & extended ASCII -
    recognized by
    various global
    languages
  • Greater range of
    characters, as it
    uses 2 or 4 bytes
    per character.
  • 2 or 4 times more
    storage space per
    character.