ExamShortcut

Hardware, Memory & Number Systems

🔒 Log in to track
high importance7 formulas⚡ 14 shortcuts6 subtopics
All subtopics·Subtopic 3 of 6

Number systems: binary, octal, decimal, hexadecimal

🔒 Log in to track
⏱ 5 min read🧩 4 question types🎯 18 practice Q
The idea in one minute
SystemBaseDigitsExample
Binary20,11101
Octal80-765
Decimal100-991
Hexadecimal160-9, A-F (A=10 ... F=15)2F

Any base -> decimal: multiply each digit by (base)^position, counting positions from 0 at the right. Example: 1011011 = 1x2^6 + 0x2^5 + 1x2^4 + 1x2^3 + 0x2^2 + 1x2^1 + 1x2^0 = 64+16+8+2+1 = 91.

Decimal -> base b: repeatedly divide by b and read remainders bottom to top. 58 -> binary: 58/2=29 r0, 29/2=14 r1, 14/2=7 r0, 7/2=3 r1, 3/2=1 r1, 1/2=0 r1 -> 111010.

Binary -> octal: group bits in 3s from the right (each octal digit = 3 bits). 11010111 -> 011 010 111 -> 327.

Binary -> hexadecimal: group bits in 4s from the right. 10101111 -> 1010 1111 -> AF.

Hex/octal -> binary: expand each digit into 4/3 bits. Hex -> decimal: digits x 16^position (2F = 2x16 + 15 = 47).

ASCII anchors: 'A'=65, 'B'=66, ..., 'Z'=90; 'a'=97; '0'=48. Largest 8-bit binary value 11111111 = 255.

01

The four systems

SystemBaseDigits usedExample
Binary20, 11101
Octal80–765
Decimal100–991
Hexadecimal160–9, A–F (A=10 … F=15)2F

A digit's value = digit × (base ^ position), counting positions from 0 at the right.

02

Any base → decimal (multiply and add)

(1101)₂ = 1×2³ + 1×2² + 0×2¹ + 1×2⁰ = 8 + 4 + 0 + 1 = 13. (2F)₁₆ = 2×16 + 15 = 47 (F = 15). (67)₈ = 6×8 + 7 = 55.

03

Decimal → any base (divide and read upward)

Divide repeatedly by the base and read the remainders bottom to top: 45 ÷ 2 = 22 r 1 → 22 ÷ 2 = 11 r 0 → 11 ÷ 2 = 5 r 1 → 5 ÷ 2 = 2 r 1 → 2 ÷ 2 = 1 r 0 → 1 ÷ 2 = 0 r 1; reading up: (101101)₂ = 45. ✔ (32+8+4+1 = 45)

04

The grouping shortcuts (seconds-saving)

  • 1 octal digit = 3 bits, 1 hex digit = 4 bits; make groups from the right, padding the left with zeros.
  • (1101011)₂ → 001 101 011 → 153₈; (11011011)₂ → 1101 1011 → DB₁₆.
  • Hex letters: A=10, B=11, C=12, D=13, E=14, F=15; FF = 255 = the largest 8-bit value.
05

Ranges and validity

  • n bits hold 2ⁿ different values, from 0 to 2ⁿ − 1: 8 bits → 256 values (0–255).
  • Octal digits stop at 7 — any number containing 8 or 9 cannot be octal.
  • Hex digits stop at F: 'G' or '2H' cannot be hexadecimal.
06

Exam workflow

  1. Read the stem: which base to which base?
  2. Conversions through binary are fastest for octal/hex (grouping), direct division/multiplication for decimal.
  3. Always check: does each digit exist in the source base? Is the remainder order bottom-to-top?
07

More worked pairs you can reuse

  • (1010)₂ = 8 + 2 = 10; (1111)₂ = 8+4+2+1 = 15; (10000)₂ = 16.
  • (255)₁₀ = FF₁₆ (15×16 + 15); (128)₁₀ = (10000000)₂.
  • (777)₈ = 7×64 + 7×8 + 7 = 511 — the largest 3-digit octal, exactly like FF caps hex.
  • (100)₈ = 64, (20)₁₆ = 32, (11)₂ = 3 — small anchors to sanity-check options.
08

Powers of 2 worth memorising

2⁰=1, 2¹=2, 2²=4, 2³=8, 2⁴=16, 2⁵=32, 2⁶=64, 2⁷=128, 2⁸=256, 2⁹=512, 2¹⁰=1024. Ten lines that answer half the number-system paper: binary→decimal becomes addition, ranges become 2ⁿ, and KB/MB conversions reuse the same ladder.

09

Two elimination shortcuts

  1. Digit validity: an option with 8 or 9 is never octal; one with G or beyond is never hexadecimal — strike it out before computing.
  2. Parity check: a binary number ending in 0 is even, ending in 1 is odd — if the decimal in the stem is even, the correct binary must end in 0.
10

Question types you will see

Each type: how to recognise it, the method step by step, and one question to try.

Type 1very common4 practice Q

Any base → decimal conversion

How to spot it:

'The decimal value of (1101)₂ is', '(2F)₁₆ in decimal is', '(67)₈ equals' — a number with a base subscript and four plain decimals.

Method
  1. Multiply each digit by base^position, positions counted from 0 at the right.

  2. Hex: convert letters first (A=10 … F=15) — 2F = 2×16 + 15 = 47.

  3. Sanity-check with the binary powers 1, 2, 4, 8, 16, 32, 64, 128.

Try this

The decimal value of the binary number 110101 is —

Show solution

1×32 + 1×16 + 0×8 + 1×4 + 0×2 + 1×1 = 53. Pick the positions where 1s sit (32, 16, 4, 1) and add.

Type 2very common4 practice Q

Decimal → any base conversion

How to spot it:

'The binary equivalent of 45 is', '100 in hexadecimal is', '58 in octal is' — a plain decimal and four base-tagged options.

Method
  1. Divide repeatedly by the target base, writing each remainder.

  2. Read the remainders bottom to top — the top-to-bottom reading is the standard trap.

  3. Verify by converting back: expand your answer's digits by powers of the base; it must return the original number.

Try this

The binary equivalent of decimal 45 is —

Show solution

Repeated division by 2 gives remainders 1, 0, 1, 1, 0, 1 read upward → 101101. Check: 32+8+4+1 = 45. ✔

Type 3common2 practice Q

Binary ↔ octal / hex by grouping

How to spot it:

'1101011 in octal', '11011011 in hexadecimal', 'convert binary using grouping' — a long binary string and base-8 or base-16 options.

Method
  1. Octal: group the bits in 3s from the right; hex: group in 4s from the right; pad the left with zeros.

  2. Convert each group separately: 001 101 011 → 1 5 3 → 153₈.

  3. Cross-check the hex letters: 10–15 map to A–F.

Try this

The binary number 1101011 in octal is —

Show solution

Group in 3s from the right: 001 101 011 → 1, 5, 3 → 153₈. (Each octal digit is exactly 3 bits.)

Type 4common3 practice Q

n-bit range and digit validity

How to spot it:

'How many values can 8 bits represent?', 'largest number in n bits', 'which of these cannot be an octal/hexadecimal number'.

Method
  1. n bits → 2ⁿ values, spanning 0 to 2ⁿ − 1: 8 bits = 256 values, largest 255.

  2. Digit check: octal allows only 0–7; hexadecimal only 0–9 and A–F.

  3. An option containing 8 or 9 cannot be octal; one containing G or H cannot be hex.

Try this

How many different values can be represented by 8 bits?

Show solution

2⁸ = 256 different values (0 to 255). The largest value is one less: 2⁸ − 1 = 255.

11

Formula sheet

Positional value
N=∑di⋅biN = \sum d_i \cdot b^{i}

digit d_i at position i (from 0, rightmost), base b

Decimal to base b
N=(…r2r1r0)b from repeated division by bN = (\ldots r_2 r_1 r_0)_b\ \text{from repeated division by } b

read remainders bottom to top

Grouping shortcuts
1 octal digit↔3 bits,1 hex digit↔4 bits1\ \text{octal digit} \leftrightarrow 3\ \text{bits},\quad 1\ \text{hex digit} \leftrightarrow 4\ \text{bits}

group binary from the RIGHT; pad with leading zeros

12

Shortcuts that save time

⚡ 3-4 grouping

Octal = 3-bit groups, Hex = 4-bit groups, always made from the right (pad the left with zeros). Binary -> octal/hex needs no division at all.

Example

11010111 in octal?

Show solution

011 010 111 -> 3 2 7 = 327.

⚡ Hex letter wheel

A=10, B=11, C=12, D=13, E=14, F=15. So 2F = 2x16+15 = 47; FF = 15x16+15 = 255 = 11111111. 'F fills: F=15, FF=255'.

Example

Decimal value of C8?

Show solution

12x16 + 8 = 200.

⚡ Power-of-2 positions

Memorise 1,2,4,8,16,32,64,128 - then any binary->decimal is just picking positions: 11010111 = 128+64+16+8+4+2+1 = 215. No working needed beyond addition.

Example

111010 in decimal?

Show solution

32+16+8+2 = 58.

13

Mistakes to avoid

Where most students lose marks on this subtopic.

Mistake 01

Grouping binary digits from the LEFT for octal/hex - groups always start at the right end.

Mistake 02

Treating hex A-F as invalid digits or computing 2F as 2x10+15.

Mistake 03

Reading division remainders top-to-bottom - the answer reads bottom-to-top.

Mistake 04

Forgetting 0-7 are legal octal digits; an option containing 8 or 9 cannot be octal.

14

Quick revision

Read this the night before the exam.

  • Bases: 2 (0,1), 8 (0–7), 10 (0–9), 16 (0–9, A–F).

  • Base→decimal: digit × base^position, right to left. Decimal→base: divide, read remainders upward.

  • Octal = 3-bit groups, hex = 4-bit groups, grouped from the right.

  • F = 15; FF = 255; 8 bits = 256 values (0–255).

  • Octal has no 8 or 9; hex has nothing after F.

15

Practice: 18 questions

Sets of 10, mixed across the question types above. Every answer has a step-by-step explanation.

Topic test · 10 questions

Suggested time 6 min · wrong answers go to your mistake notebook automatically.