Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
Competitions › NMMS › unit 8 of 15

Coding and decoding (MAT)

NMMS · Mental Ability · about 5 minutes

A word or number is coded by a rule: shifting letters, reversing, replacing letters with numbers.

Work out the rule from the given example, check it on every letter, then apply.

In this lesson

  1. Letter codes
  2. Substitution codes
  3. Worked examples
  4. Where marks are lost
  5. Check yourself

1Letter codes

Line up the word and its code and write the position change for each letter: +1, +1, +1 is a Caesar shift; +1, +2, +3 is a growing shift.

2Substitution codes

When each letter maps to one digit, build a table from all the examples, then read off the new word.

Worked examples

  1. Example 1If MANGO = NBOHP, what is APPLE?

    1. Each letter +1.

    Answer: BQQMF

Where marks are lost

  • Assuming the same shift without checking every letter.
  • Mixing up positions of repeated letters.

Exam tips

  • Write A = 1 … Z = 26 at the top of your rough work.
  • Reverse pairs add to 27 (A–Z, B–Y).
  • Look for the same shift for every letter, or a growing shift.

Practice questions

  1. If BAT is coded CBU, then CAT is…

  2. If each letter is replaced by its position (A = 1, B = 2…), CAB is written as…

  3. In a code, ROSE is written as 6821 and CHAIR as 73456. How is SEARCH written?

Sit a timed NMMS mock test

Classification: odd one out (MAT)Next: Blood relations (MAT)