Skip to content
Worked Examples · Example 2.1

Q.When the key ‘A’ is pressed (Figure 2.1), it is internally mapped to a decimal value 65 (code value), which is then converted to its equivalent binary value for the computer to understand.

Yanam BieapTextbookSubjective· 2mImportance★★★★★est
2% · 1/45 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →
Figure — A simple left-to-right flow diagram: a keyboard key labelled "A" -> an arrow to a box "Decimal code value 65 (ASCII)" -> an arrow to a box — Computer Science question
FigureA simple left-to-right flow diagram: a keyboard key labelled "A" -> an arrow to a box "Decimal code value 65 (ASCII)" -> an arrow to a box — Computer Science question

A pressed key never reaches the computer as a letter — 'A' is first mapped to its ASCII code value 65, and that decimal code is stored and processed as its binary equivalent (1000001)2.

The idea (what Figure 2.1 illustrates). A computer's circuits understand only two states (0/1), so every character must become a number, and every number must become bits:

  1. Key press — you press 'A' on the keyboard.
  2. Code mapping — the keyboard/system maps the key to its ASCII code value: 'A' -> 65.
  3. Binary conversion — 65 is represented in binary for storage and processing.

Converting 65 to binary by repeated division by 2:

DivisionQuotientRemainder
65 / 2321
32 / 2160
16 / 280
8 / 240
4 / 220
2 / 210
1 / 201

Reading remainders bottom-up: (65)10 = (1000001)2 — a 7-bit ASCII pattern.

Check in Python:

print(ord("A"), format(ord("A"), "07b"))

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.