1.1 Data representation Flashcards

1
Q

What is binary?

A

A base 2 number system where all numbers and data are represented by using 0’s and 1’s

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

What are the advantages of using binary? (4)

A
  • transmitted easily and reliable
  • can be stored and read very easily
  • Computers use circuits that can only be on or off (they only have 2 states), so they work well with binary calculations
  • the input voltage into computers is not very stable (decreases as the battery decreases), only a system with no voltage would be reliable
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a bit?

A

An individual 1 or 0

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

What is a byte?

A

Each group of 8 bits

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

What is a nibble?

A

4 bits, or half a Byte

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

What is Hexadecimal?

A

a Base 16 number system that increases in powers of 16

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

What is the denary value for FB3 (hex)?

A

4019

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

What are the advantages of Hexadecimal? (2)

A
  • Large numbers can be represented in a smaller number of digits (more accurate readings by humans)
  • humans can work in hexadecimal when working with binary
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Every _ binary digits is equal to one hexadecimal digit

A

4

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

Steps to change from binary to hex? (3)

A
  • split the binary into nibbles
  • find the denary value for each nibble
  • convert denary value into the corresponding hex digit
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the uses of hexadecimal? (2)

A
  • colours in HTML and CSS
  • Media Access Control address (MAC address) - a unique identifier assigned to a network interface controller (NIC)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is machine code?

A

Instructions that are executed by the CPU, but they’re in binary

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

What is assembly language?

A

Instructions that are executed by the CPU, but they’re written in words and numbers (e.g. python)

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

What is the difference between machine code and assembly language?

A

Machine code is in binary and assembly language is written with words and numbers

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

What is the difference between a kilobyte and a kibibyte?

A

A kilobyte is 10^3 bytes (1000) and a kibibyte is 2^10 bytes (1024)

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

To what power are binary prefixes and decimal prefixes?

A

Binary - powers of 2
Decimal - powers of 10

17
Q

In one’s compliment, what do the values in the sign column mean?

A

0 - positive
1 - negative

18
Q

How is the one’s complement used?

A

All the binary digits are flipped to form the negative equivalent of a number

19
Q

What is the most significant bit in two’s complement?

A

The leftmost bit

20
Q

How is the two’s complement used?

A
  • all the binary digits are flipped
  • then one is added
21
Q

What is an overflow error? (2)

A
  • When a bit has been carried into the position that has a negative place value (e.g. both numbers are positive but the place value is a 1)
  • can also happen when the correct result cannot be stored in 8 bits
22
Q

When can overflow error happen? (2)

A
  • adding 2 positive numbers produces a 1 as the most significant bit
  • adding 2 negative numbers produces a 0 as the most significant bit
23
Q

What is BCD (Binary Coded Decimal)?

A

A form of binary representation where each denary digit is converted individually into binary

24
Q

What are the advantages of BCD? (3)

A
  • easier for humans to read large binary than if the number is in pure binary
  • Simple to create hardware that only counts in decimal and uses basic calculation (e.g. digital clocks, simple calculators)
  • BCD removes problems of floating point rounding errors, making it useful for handling financial transactions
25
Q

How is data stored in financial systems?

A
  • some fractions cannot be stored accurately using binary, due to the fraction not fitting perfectly within a base 2 binary system
  • This results in a floating point rounding error
  • In financial systems, rounding errors are not acceptable do BCD is used
26
Q

What does ASCII stand for?

A

American Standard Code for Information Interchange

27
Q

What are the advantages of using ASCII? (2)

A
  • Easy to read, write and understand as it is simple for humans to memorise each character
  • smaller storage and transmission size (7 bits for standard ASCII and 8 for extended)
28
Q

What is the disadvantages of using ASCII?

A

Only works for english

29
Q

What is extended ASCII?

A

It is ASCII but it includes french and german letters and accents so it is extended to 8 bits and allows a total of 256 characters

30
Q

What are the advantages of using extended ASCII?

A

Allowed to use more European language characters and accents

31
Q

What are the disadvantages of using extended ASCII? (2)

A
  • 1 bit longer than ASCII so it requires more storage
  • cant support easter alphabets
32
Q

What is unicode?

A

a system with a much larger number of available characters

33
Q

What are the advantages of using Unicode?

A

Millions of different characters are available due to the large number of bits per character (16 or 32 bits)

34
Q

What are the disadvantages of using Unicode?

A

2 or 4 times more storage space taken up per letter

35
Q

What are the steps of converting text into ASCII? (2)

A
  • take each letter and find the corresponding decimal value
  • change the decimal values into binary