AI InterviewSearch…Search problems, topics, or pages…Ctrl KGet started
Mediumletter shiftdecoding

~75s

Decoding a +2 shift

In a code where LIGHT is written as NKIJV, what does HQQF stand for?

Show the answer and the worked solution

Correct answer: A.

FOOD

Worked solution

  1. The shift is +2, so decoding subtracts 2.
  2. H→F, Q→O, Q→O, F→D.
  3. The word is FOOD.

Answer: FOOD.

The idea

Establish the shift from the example, then reverse it. Reading the decoded letters as a real word is the final confirmation.

Shortcut. Decode the two letters that separate the options: H − 2 = F and F − 2 = D. Only FOOD starts with F and ends with D.

Common trap. "GOOD" — taking only one step back from H, to G, a slip made easier because GOOD is such a common word; the shift is two, so H becomes F.

Decoding a +2 shift — Coding & Decoding Aptitude Question

Decoding a +2 shift: In a code where LIGHT is written as NKIJV, what does HQQF stand for? Answer and worked solution on CodeKairo.

Question

In a code where LIGHT is written as NKIJV, what does HQQF stand for?

Options

  1. FOOD
  2. FOOT
  3. GOOD
  4. HOOD
Show the answer and the worked solution

Correct answer: A. FOOD

Worked solution

  1. The shift is +2, so decoding subtracts 2.
  2. H→F, Q→O, Q→O, F→D.
  3. The word is FOOD.

Answer: FOOD.

The idea

Establish the shift from the example, then reverse it. Reading the decoded letters as a real word is the final confirmation.

Shortcut. Decode the two letters that separate the options: H − 2 = F and F − 2 = D. Only FOOD starts with F and ends with D.

Common trap. "GOOD" — taking only one step back from H, to G, a slip made easier because GOOD is such a common word; the shift is two, so H becomes F.

All Coding & Decoding questions · placement mock tests