Full Marks

A-level Computer Science Year 12 · Topic 3

Data representation and computer systems

Data representation and computer systems is about how numbers, text, images and sound are stored, and how the processor uses them.

We will use number systems, two's complement, fixed and floating point, and bitwise operations with masks.

Then we look at computer architecture, images and sound, error detection, compression, and encryption and hashing.

In this topic

  1. 3.1Number systems and data representationFree below · 67 questions
  2. 3.2Computer architectureOpen in Full Marks · 62 questions
  3. 3.3Bitwise manipulation, binary shifts and masksOpen in Full Marks · 65 questions
  4. 3.4Floating-point normalisation, precision, rounding errors and absolute/relative errorOpen in Full Marks · 65 questions
  5. 3.5Representing images, sound and MIDIOpen in Full Marks · 69 questions
  6. 3.6Error detection and correction: parity, majority voting, checksums and check digitsOpen in Full Marks · 60 questions
  7. 3.7Data compression: lossy, lossless, run-length encoding and dictionary codingOpen in Full Marks · 60 questions
  8. 3.8Encryption and hashing: Caesar cipher, Vernam cipher, symmetric/asymmetric encryption and hash functionsOpen in Full Marks · 71 questions

3.1 · Free notes

Number systems and data representation

Diagram: Number systems and data representation

Key points

In more detail

Practice

Number systems and data representation: 10 questions

Pick an answer to check it, or open the answer for the explanation.

1. What does 8-bit two's complement 11111111 represent?

  1. 255
  2. −1
  3. −127
  4. −128
Show answer

B: −1. −128 + 127 = −1.

2. Why is hexadecimal used by programmers?

  1. Computers store data in hex
  2. Each hex digit represents 4 bits, making binary shorter to read
  3. It is faster to process
  4. It uses fewer transistors
Show answer

B: Each hex digit represents 4 bits, making binary shorter to read. Hex is a human-friendly shorthand for binary.

3. In floating point representation, what does the exponent control?

  1. Precision only
  2. The range, by shifting the binary point
  3. The sign of the mantissa
  4. The character set
Show answer

B: The range, by shifting the binary point. A larger exponent field allows a greater range of values.

4. What is normalisation in floating point?

  1. Removing the exponent
  2. Adjusting the mantissa and exponent to maximise precision
  3. Converting to denary
  4. Rounding to an integer
Show answer

B: Adjusting the mantissa and exponent to maximise precision. It avoids wasting bits on leading zeros.

5. What causes overflow?

  1. Too few instructions
  2. A result requiring more bits than are available
  3. A slow processor
  4. Using hexadecimal
Show answer

B: A result requiring more bits than are available. The most significant bits are lost, giving a wrong result.

6. What is the denary value of 8-bit two's complement 10000000?

  1. 128
  2. −128
  3. 0
  4. −1
Show answer

B: −128. The MSB place value is −128.

7. What does increasing the mantissa bits in floating point do?

  1. Increases range
  2. Increases precision
  3. Reduces accuracy
  4. Removes the exponent
Show answer

B: Increases precision. The exponent controls range instead.

8. What is the result of a binary addition that produces a carry beyond the available bits?

  1. Rounding
  2. Overflow
  3. Underflow
  4. Normalisation
Show answer

B: Overflow. The stored result becomes incorrect.

9. What is the 8-bit binary value 10110110 written in hexadecimal?

  1. A6
  2. 6B
  3. B3
  4. B6
Show answer

D: B6. Split into nibbles: 1011 = B and 0110 = 6, giving B6. 6B reverses the order of the nibbles, and A6 mis-converts 1011.

10. What is denary 45 in 8-bit binary?

  1. 00101101
  2. 01001101
  3. 00110101
  4. 00101011
Show answer

A: 00101101. 45 = 32 + 8 + 4 + 1, which is 00101101. 00110101 is 53, and the other two are different values.

Keep going in Full Marks

Full Marks has 67 questions on Number systems and data representation (57 more than here), set out in practice levels. You also get notes and 3D models for all 8 subtopics of Data representation and computer systems, plus games, timed exams and past papers.

On your exam board

All A-level Computer Science Year 12 topics