Number-System Conversions at Awareness Level

Number-System Conversions at Awareness Level. Foundational Computer Awareness explanations, examples and explained practice questions for banking and recruitment exam preparation.

By Akhilesh Saini

What you will learn

  • Convert small binary, octal and hexadecimal integers to decimal.
  • Convert small decimal integers to binary by repeated division.
  • Use three-bit groups for binary–octal and four-bit groups for binary–hexadecimal conversion.
  • Check an answer by reversing the conversion.

Why this topic matters

A common objective question gives 1010₂ and asks for its decimal equivalent, or asks for the hexadecimal form of an eight-bit pattern. These are not difficult arithmetic problems if you identify the base and place values before calculating. This lesson intentionally stays with short, non-negative whole numbers; signed representations and floating-point formats belong to more technical courses.

Method 1: from another base to decimal

For any whole number written in base b, multiply each digit by the matching power of b and add. In hexadecimal, first replace letters with their numerical values (A=10 through F=15).

Worked example 1 — Binary 1101₂ to decimal

Digit1101
Power of two8421
Contribution8401

Total: 8 + 4 + 0 + 1 = 13₁₀.

Worked example 2 — Octal 35₈ to decimal: 3 × 8 + 5 = 24 + 5 = 29₁₀.

Worked example 3 — Hexadecimal 2B₁₆ to decimal: 2 × 16 + 11 = 43₁₀.

Worked example 4 — Hexadecimal 10₁₆ to decimal: 1 × 16 + 0 = 16₁₀. This is a frequent trap because the written digits resemble decimal ten.

Method 2: decimal integer to binary by repeated division

Divide the decimal integer by two, record each remainder (0 or 1) and repeat with the integer quotient. When the quotient becomes zero, read the remainders from bottom to top.

Worked example 5 — Decimal 13 to binary:

CalculationQuotientRemainder
13 ÷ 261
6 ÷ 230
3 ÷ 211
1 ÷ 201

Bottom-to-top remainders: 1101₂. Verify: 8 + 4 + 0 + 1 = 13.

Worked example 6 — Decimal 20 to binary: 20 = 16 + 4, so its pattern has 1 in the 16 and 4 positions: 10100₂. Using powers is often faster for small questions.

Worked example 7 — Decimal 0: Its representation is simply 0 in binary, octal, decimal and hexadecimal. Do not require several zero digits to represent the value, though a fixed-width format may pad with leading zeros.

Method 3: decimal to octal or hexadecimal

Use the same repeated-division idea but divide by 8 or 16, respectively. Convert hexadecimal remainders 10–15 into letters A–F.

Worked example 8 — Decimal 47 to hexadecimal:

  • 47 ÷ 16 gives quotient 2 and remainder 15 (F).
  • 2 ÷ 16 gives quotient 0 and remainder 2.
  • Read remainders backwards: 2F₁₆.

Worked example 9 — Decimal 50 to octal:

  • 50 ÷ 8 gives quotient 6, remainder 2.
  • 6 ÷ 8 gives quotient 0, remainder 6.
  • Result: 62₈; verify 6×8+2=50.

Method 4: binary to octal by grouping into threes

Because one octal digit corresponds to exactly three binary bits, group the bits from right to left. Add leading zeros only where needed to fill the leftmost group.

Example: 110101₂ becomes 110 101, which gives octal digits 6 and 5: 65₈. Check: decimal 53 either way (32+16+4+1 = 53; 6×8+5 = 53).

For 10111₂, group as 010 111 → 2 7 → 27₈. The first zero is padding and does not change the value.

Method 5: binary to hexadecimal by grouping into fours

Group from right to left, using four binary bits per hexadecimal digit.

Worked example 10 — 00111010₂ to hexadecimal:

0011 | 1010 → 3 | A → 3A₁₆.

For 11111111₂, group 1111 | 1111 → F | F: FF₁₆. In decimal this is 255 (15×16+15).

The reverse direction is easy: replace each hexadecimal digit with its four-bit group and each octal digit with its three-bit group, then remove unnecessary leading zeros when the representation is not fixed-width.

Decimal 26 is binary 11010, octal 32 and hexadecimal 1A using groups of three or four binary digits.
From decimal to binary, then to octal and hex

Quick conversion table

DecimalBinaryOctalHexadecimal
0000
1111
21022
711177
81000108
10101012A
13110115D
15111117F
16100002010
3111111371F

A reliable answer-checking strategy

Suppose you converted 26₁₀ to 11010₂. To check, expand by place value:

11010₂ = 16 + 8 + 0 + 2 + 0 = 26₁₀.

If the check fails, first inspect these common errors: (a) reading division remainders top-to-bottom, (b) using decimal weights instead of base weights, and (c) grouping binary digits starting from the left rather than the right.

Common confusions and exam traps

  • Conversion changes notation, not value: 10₁₀ and 1010₂ represent the same quantity.
  • Do not confuse group lengths: Three bits → one octal digit; four bits → one hexadecimal digit.
  • Read remainders in reverse order after repeated division.
  • Padding: Leading zeros may be added when grouping, but they do not increase the value.
  • No fractional conversion required here: Expressions such as 0.101₂ need a different explanation and are outside this awareness lesson.
  • Binary grouping should start at the right for whole numbers; otherwise the resulting digits can be wrong.

Important terms

TermMeaning
Base conversionRewriting the same value in a different numeral system
QuotientWhole-number result of division
RemainderAmount left after division by the base
Bit groupingReading consecutive 3-bit or 4-bit groups as octal/hex digits
Leading zeroZero to the left of the first nonzero digit, usually not changing whole-number value

Objective-exam facts to remember

TaskFast method
Binary → decimalAdd place values of the 1 bits
Octal → decimalMultiply by powers of 8
Hexadecimal → decimalMultiply by powers of 16, remembering A–F
Decimal → binaryRepeated division by 2, read remainders backwards
Binary → octalGroups of 3 from the right
Binary → hexadecimalGroups of 4 from the right

Quick revision

  1. Every conversion preserves the value but changes its written form.
  2. When expanding a number, the rightmost digit has weight base⁰.
  3. Read repeated-division remainders from last to first.
  4. Use 3-bit groups for octal and 4-bit groups for hexadecimal.
  5. Verify a converted numeral by converting back to decimal.

Practice questions — CA-04-02

1. What is 1010₂ in decimal?
A. 8
B. 10
C. 12
D. 16

2. What is decimal 13 in binary?
A. 1011₂
B. 1100₂
C. 1101₂
D. 1110₂

3. What is 35₈ in decimal?
A. 29
B. 35
C. 40
D. 43

4. What is 2B₁₆ in decimal?
A. 27
B. 32
C. 42
D. 43

5. Which hexadecimal numeral represents decimal 47?
A. 1F₁₆
B. 2F₁₆
C. 3F₁₆
D. 4F₁₆

6. What is 1111₂ in hexadecimal?
A. A₁₆
B. B₁₆
C. E₁₆
D. F₁₆

7. When converting a whole binary number to octal, the bits should be grouped from the right in sets of:
A. 2
B. 3
C. 4
D. 8

8. What is decimal 16 in binary?
A. 1000₂
B. 1111₂
C. 10000₂
D. 11000₂

9. What is 110101₂ in octal?
A. 53₈
B. 65₈
C. 71₈
D. 75₈

10. What is 00111010₂ in hexadecimal?
A. 2A₁₆
B. 3A₁₆
C. A3₁₆
D. 3B₁₆

11. When converting an integer to another base by repeated division, the remainders are normally read:
A. From first to last
B. In the order of largest remainder
C. From last to first
D. After multiplying them all together

12. Which pair represents the same value?
A. 101₂ and 7₁₀
B. 10₈ and 10₁₀
C. F₁₆ and 15₁₀
D. 10₂ and 10₁₆

Answers and explanations — CA-04-02

QCorrect answerWhy it is correct
1B. 101010₂ = 8 + 2 = 10.
2C. 1101₂8+4+1=13, so the four bits are 1101.
3A. 293×8 + 5 = 29.
4D. 43Hex B equals 11: 2×16+11=43.
5B. 2F₁₆2×16+15=47; F is decimal fifteen.
6D. F₁₆Binary 1111 is 15, represented as F in hexadecimal.
7B. 3Octal has eight digits and 2³=8.
8C. 10000₂Sixteen is 2⁴, represented by one followed by four zeros.
9B. 65₈Group 110 101: binary 110=6 and 101=5.
10B. 3A₁₆Group 0011 1010 → 3 and A.
11C. From last to firstSuccessive remainders give digits from least significant to most significant.
12C. F₁₆ and 15₁₀F represents fifteen; each of the other pairs has unequal numeric values.