Fundamentals of data representation Flashcards
From the options below give examples of a natural number
- -3
- 7
- 0
- SQRT(-3)
- π
- 6.3
- SQRT(3)
7 or 0
From the below options give examples of a member of set ℚ that is not an integer
- -3
- 7
- 0
- SQRT(-3)
- π
- 6.3
- SQRT(3)
6.3
(ℚ is the set of rational numbers)
From the below options give examples of a member of set ℤ that is not a member of set ℕ
- -3
- 7
- 0
- SQRT(-3)
- π
- 6.3
- SQRT(3)
–3
(ℤ is the set of integers, ℕ is the set of natural numbers)
From the below options give examples of an irrational number
- -3
- 7
- 0
- SQRT(-3)
- π
- 6.3
- SQRT(3)
SQRT(3) or π
From the below options give examples of a number that is not in the set ℝ
- -3
- 7
- 0
- SQRT(-3)
- π
- 6.3
- SQRT(3)
SQRT(–3)
(ℝ is the set of real numbers, including all natural numbers, integers, rational numbers and irrational numbers)
Define what is meant by a rational number
A number that can be represented as a fraction
Explain why all integers can be described as rational numbers
Any integer divided by 1 is equal to itself OR By example, e.g. 3/1=3
Explain why computer scientists often prefer to use hexidecimal representation instead of working with binary numbers
- More compact to display.
- Easier to understand/remember.
- Less likely to make typing errors.
- Saves time to write/type.
NB: Don’t allow ‘takes up less space’ – not clear that this refers to display space, hexadecimal does not save storage space
State the maximum number of unique values that can be stored using 3 bits
8
State the maximum number of unique values that can be stored using 1 nibble
16
(1 nibble = 4 bits)
State the maximum number of unique values that can be stored using 1 byte
256
State the value, in bytes, of 8 bits
1 byte
State the value, in bytes, of 1 kB
1000 bytes
State the value, in bytes, of 1 KiB
1024 bytes
State the value, in bytes, of 5.3 MB
5 300 000 bytes
OR
5.3 million bytes
OR
5.3 x 109 bytes
Add 0101 + 1010 (binary numbers) showing your working and where you have carried numbers
0 1 0 1
1 0 1 0 +
1 1 1 1
Add 1011 0101 + 0111 1101 (binary numbers) showing your wokring and where you have carried numbers
1 0 1 1 0 1 0 1
0 1 1 1 1 1 0 1 +
01 01 11 11 01 0 11 0
(1 mark per correct nibble – ignore a ninth ‘1’ on the far left)
ASCII is a 7-bit character set.
State the maximum number of unique characters that could be stored using ASCII
128
OR
27
State the maximum number of unique characters that could be stored using a 16-bit character set
65 536
OR
216
Suggest reasons why a larger character set might be chosen for a given application (3 marks)
- To encode a wider range of alphabets OR specific examples, e.g. Japanese, Cantonese, Mandarin, Cyrillic.
- To allow for including an increased range of non-alphabetic symbols (e.g. divide sign, sigma sign, copyright sign, emojis).
- Improved portability/compatibility between systems OR a system might assume the wrong character set from a smaller encoding system.
A keyboard is used to transmit characters to a computer system using ASCII, in which the digit 0 is represented by 4810
Even parity is used with the most signficiant bit (the left-most bit) being used as the parity bit.
State the binary code that is transmitted when the user presses the key for the digit 0
0011 0000
A keyboard is used to transmit characters to a computer system using ASCII, in which the digit 0 is represented by 4810
Even parity is used with the most signficiant bit (the left-most bit) being used as the parity bit.
A key is typed and the bit pattern 1011 0011 is received. State whether the computer system will accept or reject this code and why
Rejected
Because the number of 1s is odd
(and the system is using even parity)
State reasons why parity bits are only partially effective at identifying transmission errors
- If two (or more) errors occur then the parity check may be passed
- Simple parity is not sufficient to correct the error
A 4-bit binary message is transmitted from one computer system to another using majority voting.
The following code is received 001 111 110 000
State the original binary message
0110
Explain how majority voting is used to detect and correct errors in data transmission
- Each bit is transmitted multiple times OR 3 times OR 5 times OR any odd number greater than 2
- The receiver checks if all the bits are the same each time
- If they are not then it assumes the value received the most times is correct
Describe how a check digit could be used to detect and correct errors in data transmission
- A calculation is performed using the bits that are to be sent OR a (single-digit) value is produced by an algorithm
- When received, the same algorithm is used to calculate the check digit
- If the digits match then the transmission is accepted OR if the digits don’t match then the transmission is rejected
Explain the difference between a checksum and a check digit
- A check digit is exactly one digit in length
- A checksum can be of any length
An image is stored as a bitmap graphics with pixel dimensions of 3000 px wide by 2000 px tall.
State the resolution of the image as a single number
6 000 000 pixels/6 million pixels
OR
6 megapixels