GamifiedGamified challengesPracticeRaceLeaderboardPricing

Learn data structures by watching them move, then doing it yourself. Press M anytime to toggle sound.

A product of Amypo Technologies, Coimbatore.

Learn

  • Fundamentals & OOPs
  • Data structures and algorithms
  • Aptitude
  • Learning path
  • How it works
  • About dotprep

Practice

  • Practice arena
  • Daily challenge
  • Gamified challenges
  • Race mode
  • Leaderboard

Interview prep

  • Java interview
  • Coding questions
  • Company questions
  • System design
  • Jobs & careers

You

  • Dashboard
  • Settings
  • Pricing
  • Create account

© 2026 dotprep

Content last updated 27 November 2026

GamifiedGamified challengesPracticeRaceLeaderboardPricing
AptitudeLogical reasoning · Deduction and Arrangement

Coded Inequalities

Decode symbol-coded relations into a chain of >, ≥, =, < and ≤, then decide which conclusions are certain, including either-or pairs and replace-the-symbol questions.

5 min read 45 questions
Practice questions
A ≥ B > C∴ A > C

On this page

1/9
  1. 011. What coded inequalities test
  2. 022. The five relations and the key
  3. 033. Decoding the statement
  4. 044. Combining relations: the direction rule
  5. 055. Deciding a single conclusion
  6. 066. Two conclusions and the standard options
  7. 077. Either-or conclusions
  8. 088. Traps and revision sheet
  9. 09Practice
Back to top

1. What coded inequalities test

A coded-inequality question hides the signs >, ≥, =, < and ≤ behind made-up symbols. You are given a key (for example "A @ B means A ≥ B"), a coded statement that chains several letters together, and one or more conclusions. Your job is to decode the statement and decide which conclusions are certain.

Tests like the topic because it strips reasoning down to one skill: combining relations without slipping. There is no arithmetic and nothing to memorise beyond the five signs, yet a single careless step — treating "≥" as ">", or chaining across a change of direction — gives the wrong answer.

The test of "follows" is strict. A conclusion follows only if it is true for every set of numbers the statement allows. If you can find even one allowed set of values that breaks it, it does not follow.

2. The five relations and the key

Every coded symbol stands for exactly one of these five relations. Two of them, ≥ and ≤, are the slippery ones: they allow equality as well as a strict inequality, and that is where either-or answers come from.

CodeMeansA is …A # BA > Bgreater thanA @ BA ≥ Bgreater or equalA % BA = Bequal toA $ BA < Bless thanA © BA ≤ Bless or equal
A typical symbol key. The symbols change from question to question; always read the key first.

Always copy the key out in plain signs before touching the statement. The same symbol (say @) may mean ≥ in one question and < in the next; never assume.

3. Decoding the statement

Replace each symbol by its sign, keeping the letters in order. The result is a chain such as P ≥ Q > R ≤ S. Read it left to right: each sign compares the letter on its left with the letter on its right.

Coded: read the key, then decodeP@Q#R©S
The coded statement before decoding.
Decoded: P ≥ Q > R ≤ SP≥Q>R≤S
After decoding: P ≥ Q and Q > R give P > R; but R ≤ S points the other way, so P and S cannot be ordered.

Worked example. With the key above, "P @ Q # R © S" decodes to P ≥ Q > R ≤ S. Now every question about these four letters is answered from this one chain.

4. Combining relations: the direction rule

To compare two letters, walk the chain from one to the other and watch the direction of the signs. There is a single rule that decides everything:

  1. If every sign on the path points the same way (all of >, ≥, = or all of <, ≤, =), the two letters are ordered.
  2. The result is strict (> or <) if at least one strict sign (> or <) appears on the path; otherwise it is ≥, ≤ or =.
  3. If the path mixes a "greater" sign with a "smaller" sign, the order cannot be determined — the chain breaks.

The "=" sign is neutral: it passes the relation through unchanged. The table shows the common two-link patterns (B is the shared middle letter).

First linkSecond linkConclusion about A and C
A > BB > CA > C
A > BB ≥ CA > C
A ≥ BB ≥ CA ≥ C
A > BB = CA > C
A ≥ BB < Cno definite relation
A > BB < Cno definite relation
A = BB = CA = C

In the worked chain, P ≥ Q > R travels one way throughout, with a strict ">" in it, so P > R. But P … S runs P ≥ Q > R ≤ S: the last link ≤ turns back, so P and S cannot be compared.

5. Deciding a single conclusion

For a conclusion "X relation Y", find the forced relation between X and Y, then check whether the conclusion is guaranteed by it. A key trap: a strict claim needs a strict chain.

  • If the chain forces X > Y, then "X > Y", "X ≥ Y" and "Y < X" all follow; "X = Y" and "X < Y" do not.
  • If the chain forces only X ≥ Y, then "X ≥ Y" follows but "X > Y" does not — equality is still possible.
  • If X and Y cannot be ordered, no relation between them follows at all.

So "≥" proved does not give you ">", and "=" proved gives you both "≥" and "≤" but neither strict sign.

6. Two conclusions and the standard options

Most questions give two conclusions, I and II, and four fixed options. Decide each conclusion on its own, then pick the matching option:

  • Only conclusion I follows
  • Only conclusion II follows
  • Both conclusions I and II follow
  • Neither conclusion I nor II follows
  • Either conclusion I or II follows (a special case, below)

Treat the two conclusions independently first. Do not let a true I tempt you into marking II true as well; each stands or falls on its own chain.

7. Either-or conclusions

Sometimes neither conclusion is certain on its own, yet one of them must be true. This happens in exactly one situation: the two conclusions are a complementary pair about the same two letters — "X > Y" together with "X = Y" (or "X < Y" with "X = Y") — and the chain forces X ≥ Y (or X ≤ Y).

Worked example. Suppose the chain forces A ≥ B. Then "A > B" can fail (A might equal B) and "A = B" can fail (A might exceed B), so neither follows alone. But A is either greater than B or equal to it, with no third possibility, so either I or II follows.

  • Check each conclusion on its own first. If one of them already follows, the answer is that one, not either-or.
  • Use either-or only when both fail alone, they concern the same two letters, and they are a >/= or </= pair sitting on a forced ≥ or ≤.

8. Traps and revision sheet

Common traps

  • Reading ≥ as > (or ≤ as <). The equality half is what creates either-or answers.
  • Chaining across a direction change: A ≥ B ≤ C says nothing about A and C.
  • Marking "neither" when the two conclusions are a complementary pair — the answer is "either-or".
  • Marking "either-or" when one conclusion already follows on its own.
  • Forgetting that "=" passes a relation through: A > B = C still gives A > C.

Revision sheet

SituationVerdict
Path all one way, a strict sign presentstrict relation (> or <) follows
Path all one way, only ≥/≤/= signs≥, ≤ or = follows (no strict)
Path mixes a > side and a < siderelation cannot be determined
Chain forces ≥, conclusions are > and =either I or II follows
Proved ≥ but conclusion says >does not follow
A = B passed through a chainrelation carries across unchanged

Practice

45 questions in 3 sets. Every answer comes with its explanation, and each question you get right earns XP.

  • Easy · 15
  • Medium · 15
  • Hard · 15
Start practising
PreviousInput and OutputNextDecision Making
Log inStart free