← All articlesCoding

TCS, Infosys and Wipro coding round questions and pattern

16 November 2026


TCS, Infosys and Wipro hire thousands of freshers every year, and most of them go through an online test with a coding section. The exact pattern changes from year to year, so always check the official hiring page before your test. But the type of questions stays fairly similar, and that is what you can prepare for.

How these hiring tests usually work

Most mass hiring drives follow a similar flow:

  • An online test with aptitude, logical reasoning and verbal ability.
  • A coding section with 1 to 3 problems of rising difficulty.
  • A technical interview about your projects, basics and the code you wrote.
  • An HR interview.

Higher scores in the coding section often open the door to better paying roles that some of these companies offer for stronger coders.

Common question types in the coding section

  • Number problems: prime numbers, factorials, palindromes, Armstrong numbers, digit sums.
  • String problems: reversing words, counting vowels, checking anagrams, removing duplicates.
  • Array problems: second largest element, rotating an array, finding missing numbers, sorting.
  • Pattern printing with nested loops.
  • For harder problems: simple dynamic programming, greedy logic, or matrix problems.

Things that trip people up

  • Input and output format. Many tests use fixed input formats, and a small formatting error can fail all test cases.
  • Hidden test cases with edge values, like 0, negative numbers or very large inputs.
  • Running out of time on the first problem. Read all problems first and start with the easiest.
  • Not knowing the online editor. Practise on a similar platform before the test.

A 2 week prep plan

  • Days 1 to 5: solve 5 basic number and string problems a day.
  • Days 6 to 10: arrays, sorting and searching, plus 1 harder problem a day.
  • Days 11 to 14: full timed practice tests, then review every wrong answer.

For the technical interview after the test

Be ready to explain the code you wrote in the test and your final year project. Revise basics of one language, OOP concepts, DBMS and simple SQL queries. Interviewers here usually check fundamentals and clarity, not advanced tricks.

Practise company style coding rounds with problems matched to your target role.

Try Tech Arena