An Initiative by SAARTHI IAS
Maarg Manthan · Topic 4.10

Coding Based on the ASCII or Positional Numeric Value of Letters

Reasoning › Coding-Decoding · Topic 4.10

In ASCII-based coding each letter is given a standard numeric code: capital A to Z are 65 to 90 and small a to z are 97 to 122, so the ASCII value of a capital letter is its alphabet position plus 64, and of a small letter its position plus 96. Positional coding uses the alphabet position, sometimes weighted by the place of the letter in the word. Convert letters to numbers, apply the stated operation, and convert back if needed.

Share:
Coding Based on the ASCII or Positional Numeric Value of Letters - Reasoning - MaargX UPSC Maarg Manthan

Quick Answer

In ASCII-based coding each letter is given a standard numeric code: capital A to Z are 65 to 90 and small a to z are 97 to 122, so the ASCII value of a capital letter is its alphabet position plus 64, and of a small letter its position plus 96. Positional coding uses the alphabet position, sometimes weighted by the place of the letter in the word. Convert letters to numbers, apply the stated operation, and convert back if needed.

At a Glance

  • Capital letters A = 65 to Z = 90
  • Small letters a = 97 to z = 122
  • Capital ASCII Position + 64
  • Small ASCII Position + 96
  • Digit zero 48
  • Case gap Small minus capital = 32

Where Does It Fit?

This is the last topic of the Coding-Decoding macro. It uses the position idea from Letter Coding (Direct, Shifted and Reverse Alphabet Coding) and the sum rules of Number Coding (Assigning Numeric Values to Letters/Words), but with the standard computer code values. Questions that turn symbols into arithmetic operations appear in Symbol-for-Operator Substitution and Simplification.

What Are ASCII Values of Letters?

In short: ASCII is a standard that gives each character a number, and for the alphabet it is simply the alphabet position with a fixed addition.

Group Range Rule Example
Capital letters 65 to 90 Position + 64 C = 3 + 64 = 67
Small letters 97 to 122 Position + 96 c = 3 + 96 = 99
Digits 48 to 57 48 + the digit 0 = 48

Memorise three anchors: A is 65, a is 97, and the digit 0 is 48. Every other value is found by counting from an anchor. The small letter value is always 32 more than the capital letter value, so D is 68 and d is 100.

Handy facts

  • Difference of ASCII values of two letters equals the difference of their alphabet positions.
  • ASCII value of any capital letter = position + 64.
  • Small letter value = capital letter value + 32.

How Do You Solve ASCII-Based Coding Questions?

In short: turn letters into numbers, do the arithmetic the question states, and turn the answer back into letters.

  • Value of a letter: C is 67 and CAT adds up to 67 + 65 + 84 = 216.
  • Difference: the gap between M and F is 7 in ASCII and also in alphabet position, so you can subtract positions instead.
  • Decoding numbers: to read 82 65 78, subtract 64 from each: 18, 1, 14, which are R, A, N.
  • Mixed case: if a word contains both cases, subtract 64 from the capitals and 96 from the small letters to get positions.

When a question gives a letter-to-number table instead of ASCII, treat the table as the rule. The standard ASCII values are used only when the question names ASCII.

What Is Weighted Positional Coding?

In short: in a weighted code each alphabet position is multiplied by the place number of the letter in the word, and the products are added.

For BAD the positions are B = 2, A = 1 and D = 4, and the places are 1, 2 and 3. The weighted sum is 2 × 1 + 1 × 2 + 4 × 3 = 2 + 2 + 12 = 16.

  • Write in a table: list letter, position, place and product, and add the products.
  • Plain sum for comparison: the plain sum for BAD is 7, which is not the weighted sum. Read the question to see which one is asked.
  • Reverse weights: some questions count the places from the right. Follow the statement exactly.

The numeric-code habit of testing the rule on each sample is shared with Coding by Analogy (Deriving the Coding Pattern from a Given Example). A purely numeric hunt for pattern in sequences is a different skill, covered in Number Series – Finding the Missing or Wrong Term.

Solved Examples

Example 1

Question: What is the ASCII value of the capital letter C?

  1. C is the 3rd letter of the alphabet.
  2. Capital ASCII value = position + 64 = 3 + 64.

Answer: 67.

Example 2

Question: Find the sum of the ASCII values of the letters of CAT (capitals).

  1. C = 67, A = 65, T = 84 (20 + 64).
  2. Add: 67 + 65 + 84.

Answer: 216.

Example 3

Question: The ASCII codes 82 65 78 are given for capital letters. Decode them.

  1. Subtract 64 from each: 82 – 64 = 18, 65 – 64 = 1, 78 – 64 = 14.
  2. Positions 18, 1, 14 are R, A, N.

Answer: The word is RAN.

Example 4

Question: What is the difference between the ASCII values of M and F?

  1. M is the 13th letter and F is the 6th letter.
  2. Difference of positions: 13 – 6 = 7, and the same difference holds for ASCII (77 – 70).

Answer: 7.

Example 5

Question: The value of a word is the sum of (alphabet position of each letter multiplied by its place number in the word). Find the value of BAD.

  1. B = 2 at place 1: 2 × 1 = 2.
  2. A = 1 at place 2: 1 × 2 = 2.
  3. D = 4 at place 3: 4 × 3 = 12.
  4. Add: 2 + 2 + 12.

Answer: 16.

Shortcuts and Tricks

  • Remember the anchors: A = 65, a = 97, 0 = 48.
  • For capitals, add 64 to the position. For small letters, add 96.
  • Use differences of positions when the question asks for a difference of ASCII values.
  • For weighted sums, draw a three-column table of position, place and product.
  • Always check whether the question is about capital or small letters before starting.

Common Mistakes

  • Using 65 as the position of A. It is the ASCII value, not the position.
  • Mixing capital and small letter values.
  • Using a plain sum when the question asks for a weighted sum.
  • Counting places in a weighted code from the wrong end.
  • Using ASCII values when the question gives its own table.

Practice Questions

  1. What is the ASCII value of the capital letter Z?
  2. What is the ASCII value of the small letter a?
  3. The ASCII values 82 65 78 stand for which word?
  4. What is the sum of the ASCII values of the capital letters A and B?
  5. What is the ASCII value of the small letter m?
  6. Find the weighted positional value of CAB, with each position multiplied by its place number.

Answers: 1) 90; 2) 97; 3) RAN; 4) 131; 5) 109; 6) 11.

Why Is This Topic Important?

  • Standard ASCII values are the same everywhere, so these questions have a fixed answer.
  • Exam use They appear in banking and IT-oriented aptitude papers.
  • Speed Three anchors give every value in seconds.
  • Link The habit of working with numbers for letters supports Symbol-for-Operator Substitution and Simplification.

What Comes Next?

The next macro is Blood Relations. Its first topic is Direct Blood Relation Problems (Family Tree Based on Direct Statements), which teaches how to read direct family statements.

Key Terms and Formulas

  • ASCII A standard numeric code for characters
  • Position Place of a letter in the alphabet
  • Capital offset 64
  • Small offset 96
  • Weighted sum Sum of position times place
  • Case gap 32 between capital and small letters

Exam Corner

Points to Remember

  • Capital letters run from 65 to 90.
  • Small letters run from 97 to 122.
  • Small value minus capital value is 32.
  • Position + 64 gives the capital ASCII value.
  • A weighted sum multiplies by the place number.

Do Not Confuse With

  • Position vs ASCII value A has position 1 and ASCII value 65.
  • Capital vs small Capitals start at 65 and small letters at 97.
  • Plain sum vs weighted sum A weighted sum multiplies each position by its place.
  • Letter digit vs digit value The digit 0 has ASCII value 48, not 0.

Memory Hook

A is 65, a is 97, zero is 48; subtract 64 to get the position.

GS Relevance

Appears in banking, IT-aptitude, SSC and CDS reasoning papers as coding based on ASCII values or weighted positional values of letters.

Frequently Asked Questions

What is the ASCII value of A in reasoning questions?

The ASCII value of the capital letter A is 65, and the values run to 90 for Z. Small letters start at 97 for a and go to 122 for z. For a capital letter, the ASCII value is its alphabet position plus 64, so C is 67.

How do you find the ASCII value of a letter quickly?

Use anchors. A is 65, a is 97 and the digit 0 is 48. Count forward from the anchor to the letter you need, or add 64 to the alphabet position for a capital letter and 96 for a small letter. For example, T is 20 plus 64, which is 84.

What is the difference between a capital and a small letter in ASCII?

The ASCII value of a small letter is exactly 32 more than the value of the same capital letter. For example, A is 65 and a is 97, and D is 68 and d is 100. This helps when a word has mixed cases.

What is weighted positional coding?

Weighted positional coding multiplies the alphabet position of each letter by the place number of that letter in the word and adds the products. For BAD it is 2 times 1 plus 1 times 2 plus 4 times 3, which equals 16.

How do you decode ASCII numbers into letters?

For capital letters, subtract 64 from each ASCII number to get the alphabet position, and then write the letter. For small letters, subtract 96. For example, the numbers 82, 65 and 78 give positions 18, 1 and 14, which spell RAN.

PYQ Practice — Statement Analysis

1 The ASCII value of the capital letter A is 65.
True

Capital letters start at 65.

2 The ASCII value of a small letter is 32 less than that of the same capital letter.
False

It is 32 more, as a is 97 and A is 65.

3 The difference between the ASCII values of two capital letters equals the difference of their alphabet positions.
True

Both values rise by one for each letter, so the gaps are equal.

4 The weighted positional value of BAD, with positions multiplied by place numbers, is 16.
True

The products are 2, 2 and 12, and they add up to 16.

Share: