Two-Step Codes
In a two-step code the word goes through two changes, one after the other. Three pairs of steps are worth knowing well.
- Reverse, then shift. Write the word backwards, then move every letter by the same amount. 'HELD' reversed is DLEH, and +1 gives EMFI.
- Swap pairs, then shift. Swap the 1st and 2nd letters, the 3rd and 4th, and so on, then shift. 'FOLK' becomes OFKL, and −1 gives NEJK.
- Opposite letter, then shift. Replace each letter by its opposite, then shift. 'HUG' becomes SFT, and +1 gives TGU.
Opposite letters
A letter's opposite sits the same distance from the other end of the alphabet. The positions of a letter and its opposite always add up to 27, so D (4) pairs with W (23).
A ↔ Z, B ↔ Y, C ↔ X, D ↔ W, E ↔ V, F ↔ U, G ↔ T, H ↔ S, I ↔ R, J ↔ Q, K ↔ P, L ↔ O, M ↔ N
Finding the steps
Put the word above its code and look hard at the first code letter.
- If it is a small step from the first letter of the word, and the same step works for the next letters, it is a plain shift.
- If it is a small step from the last letter of the word, the word was reversed. Confirm with the 2nd code letter and the 2nd-last word letter. In HELD → EMFI, E is one step after D, the last letter, and M is one step after L, the 2nd-last.
- If the 1st code letter is close to the 2nd word letter, and the 2nd code letter is close to the 1st, the letters were swapped in pairs.
- If the steps are large and uneven, say −6 for one letter and −8 for the next, try opposite letters. A code letter one step from the opposite of the word letter points to "opposite, then shift".
Once the first step is clear, find the shift by putting each code letter beside the letter it came from.
When the order of the steps matters
For "reverse, then move every letter by the same amount", the order makes no difference. Shifting first and reversing afterwards gives the same code. For "opposite, then shift", it does. The opposite of G is T, and +1 gives U. But +1 first turns G into H, and the opposite of H is S. So keep the steps in the order the example shows.
Test on the second example
A rule read from one word is only a guess. Apply your two steps to the second example and make sure you get its code letter for letter. Only then use the rule on the target.
Solved Questions
Question 1
In a certain code language, 'DUSK' is written as 'LTVE' and 'FERN' is written as 'OSFG'. How will 'GOLF' be written in that language?
(a) HPMG (b) GMPH (c) EKNF (d) GNPH
Answer. Compare the first code letter with the last letter of the word. DUSK ends in K, and LTVE starts with L, one step after K. The next code letter, T, is one step after S, the 2nd-last letter. So the word is reversed and every letter moves +1: KSUD → LTVE. Check on FERN. Reversed it is NREF, and +1 gives OSFG. It fits. Now GOLF reversed is FLOG:
F → G, L → M, O → P, G → H
So the answer is (b) GMPH.
Question 2
In a certain code language, 'FABRIC' is coded as 'CHTDEK' and 'DONKEY' is coded as 'QFMPAG'. How will 'GOBLET' be coded in that language?
(a) OGLBTE (b) IQDNGV (c) QINDVG (d) QINDWG
Answer. F → C would be −3 but A → H would be +7, so the letters do not simply move in place. Try the neighbours. The 1st code letter, C, is two steps after A, the 2nd letter of FABRIC. The 2nd code letter, H, is two steps after F, the 1st letter. So the letters are swapped in pairs and then moved +2. FABRIC swapped is AFRBCI, and +2 gives CHTDEK. DONKEY gives ODKNYE and then QFMPAG, so the rule holds. GOBLET swapped in pairs is OGLBTE. Adding 2: O → Q, G → I, L → N, B → D, T → V, E → G. So the answer is (c) QINDVG.
Question 3
In a certain code language, 'DESK' is written as 'XWIQ' and 'FLAG' is written as 'VPAU'. How will 'HUNT' be written in that language?
(a) TGNH (b) SFMG (c) IVOU (d) TGNI
Answer. D to X is 6 steps back, but E to W is 8 steps back, so this is not a plain shift. Try opposites. The opposite of D is W, and W + 1 = X. The opposite of E is V, and V + 1 = W. The opposite of S is H, and H + 1 = I. So each letter is replaced by its opposite and then moved +1. FLAG checks out: the opposites are UOZT, and +1 gives VPAU. For HUNT the opposites are S, F, M and G. Adding 1 gives T, G, N and H. So the answer is (a) TGNH.
Question 4
In a certain code language, 'HORNET' is coded as 'RCLPMF' and 'FALCON' is coded as 'LMAJYD'. How will 'GUITAR' be coded in that language?
(a) TCVKWI (b) ESGRYP (c) PYRHSE (d) PYRGSE
Answer. The first code letter is R, and HORNET ends in T. R is two steps before T. The second code letter, C, is two steps before E, the 2nd-last letter. So HORNET is reversed to TENROH, and each letter moves −2:
T → R, E → C, N → L, R → P, O → M, H → F
FALCON gives NOCLAF and then LMAJYD, which matches. For GUITAR, reverse to get RATIUG and take 2 from each letter: P, Y, R, G, S, E. Note that A − 2 wraps round to Y. So the answer is (d) PYRGSE.
Codes with Letters and Numbers Mixed
Some codes turn a few letters into numbers and leave the rest as letters. Here are the main kinds.
- Vowels become positions, consonants shift. 'DIET' becomes 'E95U'. D → E and T → U are +1, while I = 9 and E = 5.
- Some letters kept, the rest written as positions. For example, the first and last letters stay and the middle letters become numbers. 'FLAT' becomes 'F121T'.
- Places decide. Letters in odd places shift and letters in even places become numbers, or the other way round.
- Two steps with numbers. The word is reversed first, and then the vowels become numbers.
How to read such a code
Write the word above its code and match them piece by piece, starting from the letters you can see. In 'E95U' the letters E and U stand for D and T. The digits between them, 95, must cover I and E, so they split as 9 and 5.
Let the word decide where one number ends and the next begins. The 121 in 'F121T' could be read as 1 and 21 or as 12 and 1. Only the letters L and A tell you it is 12, then 1.
Then look at what the letters that became numbers have in common.
- If they are all vowels, the rule is about vowels.
- If they all sit in even places, or all in odd places, the rule is about places.
- If they are the middle letters, the ends are being kept.
Let the second example choose
One example can fit two rules. In a four-letter word with vowels in the 2nd and 4th places, "vowels become numbers" and "even places become numbers" give the same code. A good second example has a vowel in an odd place, or a consonant in an even place, and that decides between the two. Test both ideas on it before you move to the target.
Know your positions
These codes need positions quickly. A few anchors help: E = 5, J = 10, O = 15, T = 20, Y = 25. Count one or two steps from the nearest anchor. M is two before O, so M = 13. R is two before T, so R = 18.
Solved Questions: Letters and Numbers Mixed
Question 5
In a certain code language, 'GATE' is written as 'H1U5' and 'DUET' is written as 'E215U'. How will 'HUMID' be written in that language?
(a) H21M9D (b) I21N9D (c) I21N9E (d) J21O9F
Answer. Split each code by the letters of its word. In GATE, G → H and T → U, both +1, while A became 1 and E became 5, their positions. In DUET, D → E and T → U, while U became 21 and E became 5. So vowels are written as their positions and consonants move one step forward. DUET also rules out a rule based on places, since its E is in the 3rd place. HUMID: H → I, U → 21, M → N, I → 9, D → E. So the answer is (c) I21N9E.
Question 6
In a certain code language, 'DRUM' is coded as 'D1821M' and 'FIRE' is coded as 'F918E'. How will 'HABIT' be coded in that language?
(a) H12920 (b) H139T (c) H262518T (d) H129T
Answer. The first and last letters stay as they are: D and M, F and E. The letters in between turn into numbers. In DRUM, R = 18 and U = 21. In FIRE, I = 9 and R = 18. These are plain positions, so R is a consonant that became a number, and the rule is about places, not vowels. For HABIT, keep H and T and write A = 1, B = 2, I = 9 in between. That gives H129T. So the answer is (d) H129T.
Question 7
In a certain code language, 'FOAM' is written as 'G15B13' and 'HIKED' is written as 'I9L5E'. How will 'GLIDE' be written in that language?
(a) 7M9E5 (b) H12J4F (c) H12J4E (d) H11J4F
Answer. In FOAM, F → G and A → B, while O → 15 and M → 13. Look at the places, not the kind of letter. A is a vowel, yet it was shifted, and M is a consonant, yet it became a number. The 1st and 3rd letters move +1, and the 2nd and 4th become their positions. HIKED agrees: H → I, I → 9, K → L, E → 5, D → E. For GLIDE: G → H, L → 12, I → J, D → 4, E → F. So the answer is (b) H12J4F.
Question 8
In a certain code language, 'GLOVE' is coded as '5V15LG' and 'FUSE' is coded as '5S21F'. How will 'DEPOT' be coded in that language?
(a) T15P5D (b) D5P15T (c) T14P5D (d) TOPED
Answer. The code of GLOVE starts with 5 and ends with G, which is the word turned round. So the first step is to reverse: EVOLG. Then the vowels E and O became 5 and 15, and the consonants stayed as they were. FUSE reversed is ESUF, and with E = 5 and U = 21 it becomes 5S21F. It fits. DEPOT reversed is TOPED. With O = 15 and E = 5, the code is T15P5D. So the answer is (a) T15P5D.
Condition Codes
A condition code gives a table of letters with their codes, followed by a few conditions that change the code in special cases. A small one looks like this:
Letter: D E G H K O
Code: 3 @ 8 % 6 1
Conditions:
(i) If the first letter is a consonant and the last letter is a vowel, their codes are to be interchanged.
(ii) If the first letter is a vowel, it is to be coded as ★.
You are then asked for the code of a letter group, such as GKHDEO.
The method
- Write the plain code first. Take each letter's code from the table, in order: G 8, K 6, H %, D 3, E @, O 1. The plain code is 86%3@1.
- Go through the conditions in order. For each one, look only at the letters it names. Condition (i) is about the first and last letters. G is a consonant and O is a vowel, so (i) is true.
- Use the first condition that is true, and stop. That is the default, and questions often state it in a note. Some say instead that every true condition is to be applied. If there is a note, follow it. If there is none, apply only the first true condition.
- Make the change on the plain code. Interchanging the end codes turns 86%3@1 into 16%3@8.
- If no condition is true, the plain code is the answer.
Reading a condition carefully
- Vowels are A, E, I, O and U. Every other letter is a consonant.
- "The first letter" and "the last letter" mean exactly those places. "The second letter" means the second place, not any letter near the start.
- "Their codes are to be interchanged" means the two codes swap places. Nothing else changes.
- "Both are to be coded as the code for the last letter" means the first letter takes the last letter's code, and the last letter keeps its own.
- "It is to be coded as ★" means that letter's code is replaced by ★, a symbol that is not in the table.
Using the options
The options usually share the middle of the code and differ where a condition acts, mostly at the ends. Once the plain code is written, look only at those places in each option. Often one glance at the first and last symbols settles it.
[SSC Tip] Write the plain code on your rough sheet before you read the conditions. Every option is built from it, so it lets you strike out wrong options while you are still checking the conditions.
Solved Questions: Condition Codes
Question 9
In the following question, the letters are coded as given below.
Letter: D E F G H K M P R A I U
Code: 4 % 7 # 1 & 9 @ 3 6 © 8
Conditions:
(i) If the first letter is a vowel and the last letter is a consonant, their codes are to be interchanged.
(ii) If both the first and the last letters are consonants, both are to be coded as the code for the last letter.
(iii) If the first letter is a consonant and the last letter is a vowel, both are to be coded as ★.
Find the code for the letter group DMAKIR.
(a) 396&©3 (b) 496&©3 (c) ★96&©★ (d) 496&©4
Answer. Write the plain code first: D 4, M 9, A 6, K &, I ©, R 3, which is 496&©3. Now go through the conditions in order. Condition (i) needs a vowel first, and D is a consonant, so it does not apply. Condition (ii) needs consonants at both ends. D and R are both consonants, so it applies. Both ends take the code for the last letter, R, which is 3. The code becomes 396&©3. So the answer is (a) 396&©3.
Question 10
In the following question, the letters are coded as given below.
Letter: D E F G H K M P R A I U
Code: 4 % 7 # 1 & 9 @ 3 6 © 8
Conditions:
(i) If the first letter is a vowel and the last letter is a consonant, their codes are to be interchanged.
(ii) If both the first and the last letters are consonants, both are to be coded as the code for the last letter.
(iii) If the first letter is a consonant and the last letter is a vowel, both are to be coded as ★.
Find the code for the letter group EPHUGK.
(a) %@18#& (b) &@18#& (c) &@18#% (d) ★@18#★
Answer. Plain code: E %, P @, H 1, U 8, G #, K &, which gives %@18#&. The first letter, E, is a vowel and the last letter, K, is a consonant, so condition (i) applies, and you stop there. Interchange the two end codes: & moves to the front and % to the end. The code is &@18#%. So the answer is (c) &@18#%.
Question 11
In the following question, the letters are coded as given below.
Letter: D E F G H K M P R A I U
Code: 4 % 7 # 1 & 9 @ 3 6 © 8
Conditions:
(i) If the first letter is a vowel and the last letter is a consonant, their codes are to be interchanged.
(ii) If both the first and the last letters are consonants, both are to be coded as the code for the last letter.
(iii) If the first letter is a consonant and the last letter is a vowel, both are to be coded as ★.
Find the code for the letter group EKMGDA.
(a) 6&9#4% (b) ★&9#4★ (c) 6&9#46 (d) %&9#46
Answer. Plain code: E %, K &, M 9, G #, D 4, A 6, so %&9#46. Test each condition. Condition (i) needs a consonant at the end, but A is a vowel. Condition (ii) needs consonants at both ends, but E and A are vowels. Condition (iii) needs a consonant first, but E is a vowel. No condition applies, so the plain code stands. So the answer is (d) %&9#46.
Solved Questions: When Two Conditions Are True
Question 12
In the following question, the letters are coded as given below.
Letter: E F G H D N S T O A L R
Code: 2 % 5 @ 8 # 1 & 6 0 9 ©
Conditions:
(i) If the second letter is a vowel, the codes for the second and the last letters are to be interchanged.
(ii) If the first and the third letters are both consonants, the first letter is to be coded as the code for the third letter.
(iii) If the last letter is a vowel, it is to be coded as ★.
(If more than one condition applies, only the first one that applies is to be used.)
Find the code for the letter group DSNATE.
(a) #1#0&★ (b) 81#0&★ (c) #1#0&2 (d) 81#0&2
Answer. Plain code: D 8, S 1, N #, A 0, T &, E 2, which is 81#0&2. Condition (i): the second letter, S, is a consonant, so no. Condition (ii): the first letter D and the third letter N are both consonants, so yes. Condition (iii) is also true, since E is a vowel, but the note says to use only the first condition that applies. So make only the change in (ii): D takes the code of N, which is #. The code is #1#0&2. So the answer is (c) #1#0&2.
Time check: the plain code takes about fifteen seconds. Checking three conditions in order adds only a few more.
Question 13
In the following question, the letters are coded as given below.
Letter: E F G H D N S T O A L R
Code: 2 % 5 @ 8 # 1 & 6 0 9 ©
Conditions:
(i) If the second letter is a vowel, the codes for the second and the last letters are to be interchanged.
(ii) If the first and the third letters are both consonants, the first letter is to be coded as the code for the third letter.
(iii) If the last letter is a vowel, it is to be coded as ★.
(If more than one condition applies, only the first one that applies is to be used.)
Find the code for the letter group HOTSLA.
(a) @6&19★ (b) @0&196 (c) &0&19★ (d) &6&190
Answer. Plain code: H @, O 6, T &, S 1, L 9, A 0, which is @6&190. Start with (i). The second letter is O, a vowel, so (i) applies. Conditions (ii) and (iii) are true as well, but only the first one that applies is used. Interchange the codes of the second and last letters, so 6 and 0 change places. The code is @0&196. So the answer is (b) @0&196.
Decoding: From the Code Back to the Word
A decoding question turns the usual question round. It shows you a word and its code, then gives a new code and asks which word it stands for. For example: "'HELD' is written as 'EMFI'. Which word is written as 'EBMH'?"
Find the rule on the example exactly as before. Here it is "reverse, then +1". Then there are two ways to finish.
Way 1: undo the steps
Run the steps backwards, and undo the last step first.
- A shift of +k is undone by −k, and a shift of −k by +k.
- Reversing is undone by reversing again.
- Swapping pairs is undone by swapping the same pairs again.
- The opposite letter is undone by taking the opposite again, since the opposite of the opposite is the letter itself.
For EBMH, first take 1 from each letter: E → D, B → A, M → L, H → G, giving DALG. Then reverse it: GLAD.
Way 2: code each option
With two steps it is easy to undo them in the wrong order. A safe check is to code an option forward with the rule and see whether it gives the code in the question. Coding all four options takes longer, so the best habit is to decode with Way 1 and then code your answer forward once as a check.
Watch the direction
The commonest slip in decoding is shifting the wrong way. If the code was made by moving letters forward 2, you must move back 2 to decode. Moving forward again gives a string that looks nothing like a word, and setters like to put that string among the options. Another common wrong option is the halfway result: the code with the shift undone but the reverse forgotten.
Solved Questions: Decoding
Question 14
In a certain code language, 'HEAP' is written as 'JGCR' and 'DRAW' is written as 'FTCY'. Which word is written as 'ICTNKE' in that language?
(a) GAELIC (b) KEVPMG (c) GERLIC (d) GARLIC
Answer. Each letter of HEAP moves +2: H → J, E → G, A → C, P → R. DRAW agrees. To decode, go the other way and move each letter of ICTNKE back by 2:
I → G, C → A, T → R, N → L, K → I, E → C
The word is GARLIC. Moving forward by 2 instead gives KEVPMG, which is not a word at all. So the answer is (d) GARLIC.
Question 15
In a certain code language, 'FROG' is coded as 'HPSG' and 'DIAL' is coded as 'MBJE'. Which word is coded as 'UFMNBI' in that language?
(a) HAMLET (b) TELMAH (c) IBNMFU (d) HAMLIT
Answer. FROG reversed is GORF, and moving each letter +1 gives HPSG. DIAL reversed is LAID, and +1 gives MBJE. So the rule is: reverse, then +1. To decode, undo the last step first. Take 1 from each letter of UFMNBI to get TELMAH. Then reverse it to get HAMLET. Stopping at TELMAH is the usual slip. So the answer is (a) HAMLET.
Question 16
In a certain code language, 'DOMAIN' is written as 'NCZLMH' and 'FOSSIL' is written as 'NERRKH'. Which word is written as 'ZCFMQD' in that language?
(a) ADGNRE (b) DANGER (c) GANDER (d) BYLECP
Answer. The 1st code letter, N, is one step before O, the 2nd letter of DOMAIN. The 2nd code letter, C, is one step before D, the 1st letter. So the letters are swapped in pairs and then moved back by 1: DOMAIN → ODAMNI → NCZLMH. FOSSIL follows the same steps. To decode, add 1 to each letter of ZCFMQD to get ADGNRE, then swap the pairs back: DA NG ER, that is DANGER. GANDER uses the same letters, but coding it gives ZFCMQD, not ZCFMQD. So the answer is (b) DANGER.
Traps in Two-Step and Condition Codes
Doing the two steps in the wrong order
Take a code made by "opposite, then +2". For the letter H, the opposite is S, and S + 2 = U. If you add 2 first, H becomes J, and the opposite of J is Q. One letter, two different answers. The same thing happens with "reverse, then +1, +2, +3 …", because the size of each shift depends on where the letter sits after reversing. So check your order on the example word, not just your steps.
Forgetting one step
Many wrong options show the target with only one step done: reversed but not shifted, or shifted but not reversed, or turned into opposites but not moved. If an option looks like the target written backwards, or the target moved by a fixed amount, ask whether both steps have been applied.
Applying a condition when the letter is not in the right place
A condition such as "If the second letter is a vowel" is about the second place only. In the group DKOHFR the second letter is K, a consonant. The vowel O is in the third place, so the condition is false, however close to the start the vowel is. The same care applies to "the first and the third letters" or "the fourth letter". Count the places if you need to.
Applying two conditions when the question wants one
When two conditions are true, the usual rule is to use only the first. Making both changes is a common slip, and that result is often one of the options.
Mistaking a vowel for a consonant
Only A, E, I, O and U are vowels in these questions. Y counts as a consonant.
A note on time
The Reasoning section has 25 questions on its own 15-minute clock, which is about 36 seconds a question. Two-step and condition codes take a little longer than that, so write the first step or the plain code on paper at once instead of holding it in your head. A wrong answer costs 0.5 marks, so a ten-second check on the example is worth it.
Solved Questions: Common Mistakes
Question 17
In a certain code language, 'DIME' is written as 'YTPX' and 'FORK' is written as 'WNKR'. How will 'GUEST' be written in that language?
(a) RDTFE (b) TFVHG (c) VHXJH (d) VHXJI
Answer. D and Y are far apart, so look at opposites. The opposite of D is W, and W + 2 = Y. The opposite of I is R, and R + 2 = T. So the steps are: opposite letter first, then +2. The opposites of GUEST are T, F, V, H, G, and +2 turns them into V, H, X, J, I.
Now see what goes wrong with the steps the other way round. G + 2 = I, and the opposite of I is R, so GUEST would come out as RDTFE. That order fails on DIME: D + 2 = F, and the opposite of F is U, not Y. So the answer is (d) VHXJI.
Question 18
In the following question, the letters are coded as given below.
Letter: E F G H D N S T O A L R
Code: 2 % 5 @ 8 # 1 & 6 0 9 ©
Conditions:
(i) If the second letter is a vowel, the codes for the second and the last letters are to be interchanged.
(ii) If the first and the third letters are both consonants, the first letter is to be coded as the code for the third letter.
(iii) If the last letter is a vowel, it is to be coded as ★.
(If more than one condition applies, only the first one that applies is to be used.)
Find the code for the letter group GRADNS.
(a) 5108#© (b) 0©08#1 (c) 5©08#1 (d) 5©18#0
Answer. Plain code: G 5, R ©, A 0, D 8, N #, S 1, which is 5©08#1. Condition (i) is about the second letter, and here the second letter is R, a consonant. The vowel A is in the third place, not the second, so (i) does not apply. Condition (ii) needs the third letter to be a consonant, and A is a vowel, so it fails too. Condition (iii) needs a vowel at the end, but S is a consonant. No condition applies, and the plain code is the answer. So the answer is (c) 5©08#1.