TCS NQT preparation

TCS hires most freshers through the National Qualifier Test (NQT), run on TCS iON. Scores decide the Ninja, Digital and Prime roles. Tests run every few weeks and are open to pre-final and final-year students and recent graduates.

Previously asked TCS NQT questions (25)

Test pattern

SectionQuestionsTime
Numerical Ability2025 min
Verbal Ability2525 min
Reasoning Ability2025 min
Advanced Quantitative and Reasoning1525 min

The real test also has an Advanced Coding section (2–3 problems). Practise the coding problems below in C, C++, Java or Python.

Tips

  • There is usually no negative marking, so answer every question.
  • Each section has its own timer; you cannot go back to a finished section.
  • Foundation sections decide Ninja; the Advanced sections open Digital and Prime roles.

Mock tests

Coding practice

Second largest number

Read N integers and print the second largest distinct value. If it does not exist, print -1.

Input: 5
4 9 2 9 7
Output: 7

Count vowels

Read a line of text and print how many vowels (a, e, i, o, u, either case) it contains.

Input: Osmania University
Output: 8

Primes in a range

Read two integers L and R and print all prime numbers between them (inclusive), separated by spaces.

Input: 10 30
Output: 11 13 17 19 23 29