CSAT · Logical Reasoning & Analytical Ability

Logical Reasoning & Analytical Ability: Coding, relations and directions

Topic 3.2. Syllabus: CSAT · Comprehension;

One wrong turn, and every later step goes wrong. this note explains coding, relations and directions for UPSC CSAT, with letter shifts, family trees, sketches and worked PYQs.

Coding, relations and directions in CSAT: three methods

Quick answer

They test whether you can follow a rule step by step without losing track. Each type has a simple method: write the shifts, draw the family tree, sketch the path.

Coding-decoding items turn words into letters or numbers by a hidden rule.

Blood relation items describe a family and ask how two people are related.

Direction items describe a walk with turns and ask about the final direction or distance.

All three appear in recent CSAT papers, including 2024 and 2026.

They need no formulas beyond the alphabet positions and Pythagoras’s theorem.

The main risk is a careless slip, such as turning left instead of right.

Always write or draw; never solve these only in your head.

Think of a delivery rider in Gomti Nagar following directions: one wrong turn, and every later step is wrong too.

These items are scoring because their answers can be checked.

With practice, most take under a minute.

Quick answer

Know each letter’s position from A=1 to Z=26 and its reverse. Then find the shift for each letter and apply it.

Forward positions: A=1, E=5, J=10, O=15, T=20, Z=26; remember the trick EJOTY for 5, 10, 15, 20, 25.

Reverse positions: Z=1, A=26; the reverse of a letter is 27 minus its position.

Opposite pairs add to 27: A-Z, B-Y, M-N.

Shift coding: each letter moves forward or back by a fixed or changing number.

Alternating shifts: such as +1, −1, +1, −1.

Wrap-around: after Z comes A again; Z + 1 = A.

Position swap: letters change places without changing, such as STOP to POTS.

Number coding: each letter becomes its position or a sum.

Write the code under the word letter by letter, and note each shift.

Check your rule against every letter before applying it.

Example of number coding: if CAT is written as 24 (3 + 1 + 20), then DOG is 4 + 15 + 7 = 26.

Example of reverse coding: if A is written as Z and B as Y, then LUCKNOW becomes OFXPMLD, since each letter is replaced by its opposite.

Some codes reverse the word and then shift, so test simple rules one at a time: shift, reverse, opposite, swap.

Pause here and attempt the practice set for this topic.

Quick answer

When ZERO becomes ADSN, the shifts alternate +1 and −1, so STOP becomes TSPO. Writing each shift makes it clear.

Asked by UPSC · UPSC Prelims CSAT 2026 · Q67

If ZERO is encoded as ADSN, then how do you encode STOP?

  1. SPOT
  2. TSPO
  3. TSOP
  4. POST

Show answer

Answer: (b). Answer (b): the shifts alternate +1, −1, +1, −1 (Z to A wraps round), so STOP becomes TSPO.

Compare ZERO with ADSN letter by letter.

Z to A is +1, wrapping round after Z.

E to D is −1.

R to S is +1.

O to N is −1.

So the rule is +1, −1, +1, −1.

Apply it to STOP: S+1 = T, T−1 = S, O+1 = P, P−1 = O.

So STOP becomes TSPO, option (b).

The other options, SPOT, TSOP and POST, are real words or rearrangements; real words are a common trap.

Rule to learn: write the shift for each position; do not guess from the look of the word.

Case study: A Kanpur aspirant lost marks on coding items because she guessed from the shape of the words. She began writing each letter’s shift under the word. On a mock test the next month she got every coding item right, and she said the writing took only ten seconds more.

TypeFirst stepToolCommon trap
Letter codingWrite each shiftA=1 to Z=26, EJOTYForgetting wrap-around
Blood relationsFix gendersFamily tree with + and −Assuming gender from a name
DirectionsFix start directionSketch with N at topMixing left and right
DistanceJoin start and endPythagorasAdding all walks
Turns by angleBreak into 90° stepsClockwise N-E-S-WWrong turn sense

Asked by UPSC · Prelims CSAT 2026 · Q67

Quoted from a previous paper. Tap an option to check.

If ZERO is encoded as ADSN, then how do you encode STOP?

Answer: (b). Answer: (b). Answer (b): the shifts alternate +1, −1, +1, −1 (Z to A wraps round), so STOP becomes TSPO.

Quick answer

In family puzzles, fix genders first and then draw the tree. Here Q turns out to be the sister of S’s husband.

Asked by UPSC · UPSC Prelims CSAT 2026 · Q44

P has a son and a daughter. S is the mother of T. S is R’s spouse. Q and R are children of P. Then how is Q related to S?

  1. Q is a sister of S
  2. Q is a daughter of S
  3. Q is the mother of S
  4. Q is a sister of the husband of S

Show answer

Answer: (d). Answer (d): S is a woman married to R, R is P’s son, and Q is P’s daughter, so Q is the sister of S’s husband.

Clues: P has a son and a daughter; S is the mother of T; S is R’s spouse; Q and R are P’s children.

S is T’s mother, so S is a woman.

S is R’s spouse, so R is a man.

Q and R are P’s children, and P has one son and one daughter.

R is the son, so Q is the daughter.

So Q is R’s sister, and R is S’s husband.

The answer is (d): Q is the sister of the husband of S, her sister-in-law.

Use symbols in the tree: + for male, − for female, a double line for marriage and a vertical line for children.

Rule to learn: never assume gender from a name; take it only from words like mother, son, husband or wife.

Pointing items are common too: a man points to a girl and says, ‘Her mother is my father’s only daughter.’ His father’s only daughter is his sister, so the girl is his niece; work from the end of the sentence backwards.

In coded relations, such as A + B meaning A is B’s father, translate each symbol into words before drawing.

Coding, relations and directions in CSAT: three methods

Asked by UPSC · Prelims CSAT 2026 · Q44

Quoted from a previous paper. Tap an option to check.

P has a son and a daughter. S is the mother of T. S is R’s spouse. Q and R are children of P. Then how is Q related to S?

Answer: (d). Answer: (d). Answer (d): S is a woman married to R, R is P’s son, and Q is P’s daughter, so Q is the sister of S’s husband.

Quick answer

Break big turns into 90-degree steps plus a remainder. A walk west, a left turn and a 225-degree clockwise turn ends facing north-east.

Asked by UPSC · UPSC Prelims CSAT 2024 · Q57

A person walks 100 m Westward, then turns left and walks 100 m. He then takes 225° turn clockwise. In which direction is he walking now?

  1. South-West
  2. South-East
  3. North-West
  4. North-East

Show answer

Answer: (d). Answer (d): west, then left to south, then 225 degrees clockwise (west, north, then 45 more) gives north-east.

He walks west, then turns left; facing west, left points south.

He then turns 225 degrees clockwise from south.

90 degrees clockwise from south is west.

180 degrees is north.

45 degrees more, making 225, is north-east.

So he walks north-east, option (d).

Clockwise order: N, E, S, W; anticlockwise: N, W, S, E.

A right turn is 90 degrees clockwise; a left turn is 90 degrees anticlockwise.

A 45-degree step lands on a corner direction: NE, SE, SW or NW.

For distance, join the start and end points and use Pythagoras: a walk of 3 km east and 4 km north ends 5 km from the start.

Asked by UPSC · Prelims CSAT 2024 · Q57

Quoted from a previous paper. Tap an option to check.

A person walks 100 m Westward, then turns left and walks 100 m. He then takes 225° turn clockwise. In which direction is he walking now?

Answer: (d). Answer: (d). Answer (d): west, then left to south, then 225 degrees clockwise (west, north, then 45 more) gives north-east.

If this is a Mains-heavy topic, evaluate a written answer next.

Quick answer

Most errors come from turning the wrong way, assuming genders and forgetting wrap-around. A sketch and a check catch nearly all of them.

Left-right trap: when facing south, your left is east, not west.

Shadow trap: in the morning the sun is in the east, so shadows fall to the west; in the evening they fall to the east.

Gender trap: ‘Q is the child of P’ does not tell you Q’s gender.

Generation trap: grandfather, father and son are three generations; draw levels.

‘Only son’ or ‘only daughter’ clues fix a person exactly.

Wrap-around trap: Y + 3 = B, not beyond Z.

Real-word trap: an option that is a real word is often wrong in coding items.

Distance trap: the shortest distance is a straight line, not the total path.

Re-read each clue after drawing to check nothing is missed.

If stuck, go back to the first clue and redraw.

Sunrise trap in direction items: at 6 a.m. facing the sun means facing east, so your right is south.

Final-position trap: some items ask where the person is from the start, others which way he is facing; read the last line twice.

Quick answer

Learn EJOTY, practise trees and sketches daily for two weeks, and solve PYQs from 2019 to 2026.

Memorise letter positions with EJOTY and the 27 rule for opposites.

Practise five coding items a day, writing each shift.

Draw a family tree for every relation item.

Sketch every direction item with north at the top.

Use your own walk, such as from Charbagh station to Hazratganj, to practise turns.

Check every answer by applying the rule back.

Spend about a minute per item.

Link with the CSAT notes on seating arrangements and ranking.

Remember that CSAT is qualifying at 33 per cent.

Before the exam, revise the trap list once.

Time yourself on a set of ten mixed items; aim to finish in ten minutes with no slips.

When an item mixes two types, such as a coded family, solve one layer at a time: decode first, then draw.

Keep your rough work neat; a messy sketch causes as many errors as a wrong method.

Quick answer

Shift coding moves letters; position coding swaps them. A son-in-law is a daughter’s husband; a brother-in-law can be a spouse’s brother or a sister’s husband. Total path is not shortest distance.

  • Shift vs swap: letters change vs places change.
  • Left vs right: depends on facing.
  • Path vs distance: total vs straight line.
  • Clockwise vs anticlockwise: N-E-S-W vs N-W-S-E.
  • Son-in-law vs brother-in-law: daughter’s husband vs spouse’s brother or sister’s husband.

Mains angle

  • Write shifts.
  • Draw trees.
  • Sketch paths.
  • Check back.

###

What is the trick for letter positions?

EJOTY: E=5, J=10, O=15, T=20, Y=25; opposite letters add to 27.

How do you solve blood relation items?

Fix genders from words like mother or husband, then draw a family tree.

How do you handle a 225-degree turn?

Break it into 90-degree steps plus 45 degrees.

What is the shortest distance in a direction item?

The straight line from start to end, found with Pythagoras.

Prelims fact

  • EJOTY: 5, 10, 15, 20, 25.
  • Opposites: add to 27.
  • Z + 1: A.
  • Clockwise: N, E, S, W.
  • Trap: real-word options in coding.

Mains angle

Write shifts.

  1. Write shifts.
  2. Draw trees.
  3. Sketch paths.
  4. Check back.

Open Mains evaluation

The evaluator opens with a blank question. It does not prefill this prompt. Paste the question if you want an answer marked. A free account can submit two evaluations a day.

Practice

Practice MCQs (8)

Practice 1

Q1 · Practice

P is the sister of Q. Q is the son of R, who is a woman. How is R related to P?

Answer: (c). Step 1: Q is the son of R, and R is a woman, so R is Q's mother. Step 2: P is Q's sister, so P and Q share the same parents. Step 3: Hence R is P's mother.

Practice 2

Q2 · Practice

A is the father of B. C is the mother of A. How is C related to B?

Answer: (b). Step 1: A is B's father. Step 2: C is A's mother, so C is the mother of B's father. Step 3: The father's mother is the grandmother (paternal).

Practice 3

Q3 · Practice

If BAG is coded as 2-1-7, then FACE is coded as

Answer: (c). Step 1: B is the 2nd letter, A the 1st and G the 7th, so each letter is replaced by its alphabet position. Step 2: F = 6, A = 1, C = 3, E = 5. Step 3: FACE is coded as 6-1-3-5.

Practice 4

Q4 · Practice

In a certain code, 'A + B' means A is the mother of B; 'A − B' means A is the brother of B; 'A × B' means A is the husband of B; and 'A ÷ B' means A is the daughter of B. Which one of the following expressions shows that P is the grandmother of S?

Answer: (d). Step 1: Decode (d): P + R means P is R's mother; R + S means R is S's mother. Step 2: So P is the mother of S's mother, that is, S's (maternal) grandmother. Step 3: Check the rest: (a) makes P S's mother, (b) makes P a husband (male), (c) makes P and S siblings.

Practice 5

Q5 · Practice

L is the father of J. M is the sister of L, and N is the husband of M. How is N related to J?

Answer: (b). Step 1: M is the sister of J's father, so M is J's aunt (father's sister). Step 2: N is M's husband. Step 3: The husband of one's aunt is one's uncle.

Practice 6

Q6 · Practice

In a code language, DOG = 26 and CAT = 24. What number does BIRD stand for in that language?

Answer: (d). Step 1: Test the sum of alphabet positions: DOG = 4 + 15 + 7 = 26 and CAT = 3 + 1 + 20 = 24; both match. Step 2: BIRD = 2 + 9 + 18 + 4. Step 3: The total is 33.

Practice 7

Q7 · Practice

Town P is 6 km to the west of town Q. Town R is 8 km to the north of town P. How far is R from Q, and in which direction?

Answer: (a). Step 1: Place Q at (0, 0). P is 6 km west: (−6, 0). Step 2: R is 8 km north of P: (−6, 8). Step 3: From Q, R is 6 km west and 8 km north: distance √(36 + 64) = 10 km, towards the north-west.

Practice 8

Q8 · Practice

Village B is 5 km due south of village A, and village C is 12 km due east of village A. What is the straight-line distance between B and C, and in which direction is B from C?

Answer: (b). Step 1: Place A at (0, 0). B is 5 km south: (0, −5). C is 12 km east: (12, 0). Step 2: B − C = (−12, −5): B is 12 km west and 5 km south of C. Step 3: Distance = √(144 + 25) = √169 = 13 km, and the direction of B from C is south-west.

Turn this note into today’s plan, so it has a time of day.

Remember

  • 1 Write each shift.
  • 2 Fix genders, draw the tree.
  • 3 Sketch with north at top.
  • 4 Pythagoras for distance.
  • 5 Check by applying back.

Flashcards

After replacing symbols, what comes first?

× and ÷ before + and −.

ZERO → ADSN; STOP → ?

TSPO (+1, −1 alternating).

Direction tip for distance?

Add N-S and E-W moves separately, then use the right triangle.

Two common right triangles in CSAT?

3-4-5 and 5-12-13.

Facing West, turn left: facing?

South.

Questions students ask

What is the trick for letter positions?

EJOTY: E=5, J=10, O=15, T=20, Y=25; opposite letters add to 27.

How do you solve blood relation items?

Fix genders from words like mother or husband, then draw a family tree.

How do you handle a 225-degree turn?

Break it into 90-degree steps plus 45 degrees.

What is the shortest distance in a direction item?

The straight line from start to end, found with Pythagoras.

Where to go next

To study this note properly, place it in your daily schedule and keep the slot.