TomoLink
TCS NQT GuideTCS NQT Reasoning AbilityInput-Output Arrangement Coding Problems

Input-Output Arrangement Coding Problems

Learn core concepts, essential formulas, and attempt practice questions designed on the latest TCS NQT testing patterns.

Key Concepts & Formulas

  • 1Trace the step-by-step sorting logic (e.g. Ascending alphabetical order, descending number values).
  • 2Identify if words/numbers are shifted from left, right, or alternating ends.

TCS NQT Style Practice Questions

Practice Question 1

Input: 'cat 40 apple 50'. Step 1: 'apple cat 40 50'. What is the logic?

A) Sort words alphabetically from left
B) Sort numbers ascending from left
C) Sort words by length
D) Alternating shifts

Correct Answer: A) Sort words alphabetically from left

Step-by-step Solution: 'apple' (starts with A) is shifted to the front. This shows the sorting logic is moving words alphabetically from left to right.

Practice Question 2

If step 1 is '90 cat 40 dog', and step 2 is '90 40 cat dog', what is the number logic?

A) Numbers sorted descending
B) Numbers sorted ascending
C) Words sorted descending
D) Alternating words

Correct Answer: A) Numbers sorted descending

Step-by-step Solution: The numbers 90 and 40 are moved to the front in descending order. Hence, the number logic is descending sort.

Study Pro-Tip

Compare Step 1 with the Input line to discover what element moved first.