ASCII Coding

ASCII Coding replaces each letter with its ASCII (American Standard Code for Information Interchange) value. Uppercase letters A-Z correspond to ASCII values 65-90, while lowercase letters a-z correspond to 97-122. This coding scheme tests knowledge of ASCII values and character encoding.

10Worksheets
200+Practice Questions
IntermediateDifficulty
2-3 hoursHours to Master

Introduction to ASCII Coding

ASCII Coding replaces each letter with its ASCII (American Standard Code for Information Interchange) value. Uppercase letters A-Z correspond to ASCII values 65-90, while lowercase letters a-z correspond to 97-122. This coding scheme tests knowledge of ASCII values and character encoding.

Prerequisites

ASCII values for uppercase A-Z (65-90) ASCII values for lowercase a-z (97-122) Difference between uppercase and lowercase ASCII values (32) Basic arithmetic
Why This Matters: ASCII Coding appears in 1-2 questions in computer aptitude sections of SSC CGL and Banking PO exams. It tests knowledge of ASCII values and character encoding.

How to Solve ASCII Coding Problems

1

Step 1: Identify the case of the letters (uppercase or lowercase)

2

Step 2: Recall ASCII values: A=65, B=66, ..., Z=90; a=97, b=98, ..., z=122

3

Step 3: Convert each letter to its ASCII value

4

Step 4: Write the ASCII values in the same order as the letters

5

Step 5: For decoding, convert each ASCII value back to its corresponding letter

6

Step 6: Verify the case matches the original

7

Step 7: Present the coded ASCII sequence or decoded word

Pro Strategy: Memorize key ASCII values: A=65, a=97, and the difference of 32 between cases. For quick recall, remember that ASCII values increase alphabetically, so B=66, C=67, etc.

Example Problem

Example 1: Code 'CAT' using ASCII values (uppercase). Solution: Step 1: C=67, A=65, T=84 Step 2: Code = 67,65,84 or 676584 Answer: 676584 Example 2: Decode ASCII sequence '72,69,76,76,79'. Solution: 72=H, 69=E, 76=L, 76=L, 79=O → HELLO Answer: HELLO

Pro Tips & Tricks

  • Uppercase A-Z: 65 to 90 (A=65, B=66, C=67, ..., Z=90)
  • Lowercase a-z: 97 to 122 (a=97, b=98, c=99, ..., z=122)
  • Difference between uppercase and lowercase = 32 (e.g., 'A' + 32 = 'a')
  • Space character = 32, Digit '0' = 48, '9' = 57
  • Common words: 'HELLO' = 72,69,76,76,79; 'WORLD' = 87,79,82,76,68
  • To convert uppercase to lowercase ASCII: add 32

Shortcut Methods to Solve Faster

ASCII of letter = ord(letter) in programming terms
Uppercase ASCII = 64 + position (A=1 → 65, B=2 → 66)
Lowercase ASCII = 96 + position (a=1 → 97, b=2 → 98)
For 'A' to 'Z', ASCII = 65 to 90; for 'a' to 'z', ASCII = 97 to 122

Common Mistakes to Avoid

Confusing uppercase and lowercase ASCII ranges
Using A=1 instead of A=65 (off by 64)
Forgetting that ASCII values are typically written as numbers, not characters
Not maintaining case consistency in decoding

Ready to Master ASCII Coding?

Start with Worksheet 1 and work your way up to expert level! Each worksheet includes:

20 practice questions
Detailed solutions
Step-by-step explanations
Start Practicing Now