Interview questions · Company interviews
TCS Ninja Interview Questions 2026: Technical and HR Rounds with Answers
TCS Ninja interview questions for 2026 freshers: how Ninja differs from Digital and Prime, what the TR and HR rounds ask, and 30 questions with model answers.
This page is for candidates who have been shortlisted for the TCS Ninja role after the TCS NQT, or who plan to sit the Foundation section only and want to know what the Ninja interview looks like. It explains how Ninja differs from Digital and Prime, what the technical round (TR) and HR round actually ask, and gives 30 questions with answers you can adapt.
Ninja is where most TCS freshers start. The interview is not technically deep, which is exactly why people under-prepare and then get rejected on basics, projects and attitude.
How the TCS Ninja process works in 2026
As of September 2026, the official TCS All India NQT Hiring page sets the common eligibility for all tracks: B.E., B.Tech, M.E., M.Tech, MCA or M.Sc/M.S from the 2024, 2025 or 2026 batch, a minimum 60% aggregate or equivalent CGPA in Class 10, Class 12, Diploma (if applicable), graduation and post-graduation, and no pending backlog at the time of the selection process. Placement sites also mention a maximum one-year academic gap; the official page is the reference.
The test. The NQT is 190 minutes in a test centre. Part A, Foundation (75 minutes: Numerical, Verbal and Reasoning Ability, 25 minutes each), is what the Ninja track is decided on. Part B, Advanced (115 minutes: Advanced Quantitative and Reasoning, then 90 minutes of Advanced Coding), is mandatory only if you want Digital or Prime consideration. If you attempt Advanced and do not clear the bar, you are still considered for Ninja on your Foundation score. TCS publishes no cut-offs.
The three tracks.
| Track | Test sections | Typical interview | Compensation (as of Sept 2026) |
|---|---|---|---|
| Ninja | Foundation | TR (fundamentals + project) and HR; MR questions often folded into HR | Not published by TCS; candidates report ₹3.36 to 3.6 LPA |
| Digital | Foundation + Advanced | Deeper TR with coding, MR, HR | ₹7.09 to 7.72 LPA (UG, TCS page; varies by degree and location) |
| Prime | Foundation + Advanced | Extended technical (often two conversations), MR, HR; AI or data project expected | ₹9.09 to 9.66 LPA (UG, TCS page; varies by degree and location) |
The Ninja interview. Shortlisted Ninja candidates typically get a 20 to 30 minute technical conversation followed by a 10 to 15 minute HR conversation, often on the same video call or campus panel. Managerial-round questions (deadlines, relocation, shifts) are usually asked inside these two rather than in a separate MR, though some campuses run all three. Expect one language of your choice, OOP, SQL basics, a little on operating systems or networks, and a long stretch on your final-year project.
After the offer. Candidates commonly report a one-year service agreement with a recovery amount of around ₹50,000. Joining is staggered; a gap of several months between offer and joining is normal. Ninja joiners go through TCS's initial training before project allocation, and internal upgrade paths to Digital exist based on performance.
What the Ninja interviewer is testing
- Are the basics real? Not "define polymorphism" but "show me polymorphism in your project".
- Can you explain your project to someone who was not there? This decides more Ninja interviews than any other question.
- Will you stay and will you move? Relocation, shifts, service agreement, other offers.
- Are your documents clean? Percentages, backlogs, gaps, and whether your answers match them.
- Communication. Clear, short answers in English, or Hinglish if the panel switches. Fluency matters less than clarity.
30 TCS Ninja interview questions with model answers
Programming fundamentals
1. Which language are you most comfortable with, and why?
"Java. I used it for my final-year project and the Launchpad course, and I like that the type system catches mistakes early. I also know Python for scripting and C from first year. If TCS trains me in another language I am fine with that; the concepts carry over." Pick one and own it; the next ten questions will be in that language.
2. Explain OOP concepts with an example from your project.
"My complaint system had an abstract class Ticket with subclasses MaintenanceTicket and MessTicket: that is inheritance. Each overrides an estimateResolutionTime() method: polymorphism. Ticket fields are private with getters and a changeStatus() method that validates transitions: encapsulation. The service layer talks to a TicketRepository interface, not to MySQL directly: abstraction."
3. What is the difference between method overloading and overriding?
"Overloading: same method name, different parameter lists, in the same class, resolved at compile time; for example add(int, int) and add(double, double). Overriding: a subclass redefines a method with the same signature as its parent, resolved at run time; for example toString(). Overloading is about convenience; overriding is how polymorphism works."
4. What is a constructor? Can it be private?
"A constructor initialises an object when it is created and has the class's name with no return type. Yes, it can be private; that is how the Singleton pattern stops other classes from creating instances, exposing a static getInstance() method instead. I used a singleton for the database connection pool in my project."
5. Explain exception handling. Checked versus unchecked?
"An exception is an abnormal condition that interrupts normal flow. try holds the risky code, catch handles it, finally runs regardless, usually to close resources. In Java, checked exceptions like IOException must be declared or handled at compile time; unchecked ones like NullPointerException extend RuntimeException and need not be. I catch specific exceptions and log them rather than catching Exception blindly."
6. Write a program to reverse a string without built-in functions.
Explain, then write. "Two pointers, start and end, swap characters and move inward until they meet; O(n) time, O(1) extra space if I work on a char array. I would ask whether the input can be null or empty and handle both." Write the loop cleanly and dry-run it on 'abc'.
7. Write a program to find whether a number is prime.
"Handle n less than 2 as not prime. Loop from 2 to the square root of n; if any divides n, it is not prime. Checking up to the square root cuts the work from O(n) to O(root n). I can also skip even numbers after checking 2." Panels want the square-root optimisation mentioned.
8. What is the difference between an array and an ArrayList in Java?
"An array has a fixed size and can hold primitives; an ArrayList grows dynamically, holds objects only, and gives methods like add, remove and contains. Under the hood ArrayList is backed by an array that is copied to a bigger one when full. I use arrays when the size is known and performance matters, ArrayList otherwise."
9. What is recursion? Give an example and a risk.
"A function calling itself with a smaller input until a base case. Factorial: fact(n) = n times fact(n minus 1), base case fact(0) = 1. The risk is stack overflow if the base case is missing or the depth is large, so for something like Fibonacci I would use iteration or memoisation instead."
10. What are static variables and methods?
"Static members belong to the class, not to an instance. A static variable is shared by all objects, like a counter of tickets created. A static method can be called without an object and cannot use this. main() is static because the JVM calls it before any object exists."
Data structures and SQL
11. Difference between a stack and a queue, with a real use.
"Stack is last in, first out: undo in an editor, function calls. Queue is first in, first out: print jobs, request handling. In my project new complaints went into a queue processed in order, while the status-change history behaved like a stack for undo."
12. What is a linked list and when is it better than an array?
"Nodes with data and a pointer to the next node. Insertion and deletion at a known position are O(1) versus O(n) for arrays, but access by index is O(n). It is better when you insert and delete often and rarely index; worse when you need fast random access."
13. Explain primary key versus foreign key versus unique key.
"Primary key uniquely identifies a row, cannot be null, one per table. Unique key also enforces uniqueness but allows one null in most databases and a table can have several. Foreign key is a column that references the primary key of another table to enforce a relationship; in my project Complaint.student_id referenced Student.id so a complaint could not exist for a non-existent student."
14. What are joins? Explain INNER and LEFT JOIN with an example.
"A join combines rows from two tables on a condition. INNER JOIN returns only matching rows: students who have at least one complaint. LEFT JOIN returns all rows from the left table and nulls where there is no match: all students, with complaint count zero for those who never complained. I used LEFT JOIN for the warden's dashboard so silent students still appeared."
15. Write a query to find the second-highest salary.
"SELECT MAX(salary) FROM employee WHERE salary < (SELECT MAX(salary) FROM employee). Or with window functions: DENSE_RANK() OVER (ORDER BY salary DESC) and pick rank 2, which also handles ties. I would mention that if only one salary exists the first query returns null."
16. What is the difference between DELETE and TRUNCATE?
"DELETE removes rows, can be filtered with WHERE, is logged per row and can be rolled back. TRUNCATE removes all rows quickly, resets identity, and usually cannot be filtered. Clearing a staging table nightly: TRUNCATE. Removing one user's data: DELETE."
17. What is normalisation? Why does it matter?
"Organising tables to remove redundancy and update anomalies: atomic values in 1NF, full dependency on the key in 2NF, no transitive dependency in 3NF. It matters because duplicated data goes out of sync; if a student's hostel block is stored in every complaint row, moving one student means updating hundreds of rows."
Operating systems, networks and general CS
18. What is the difference between a process and a thread?
"A process has its own memory space; threads run inside a process and share its memory. Threads are lighter to create and switch and can share data directly, which is why servers use them per request; the cost is that shared data needs synchronisation to avoid race conditions."
19. What is a deadlock? How do you avoid it?
"Two or more threads each waiting for a resource the other holds, forever. Four conditions must hold: mutual exclusion, hold and wait, no pre-emption, circular wait. Break any one; the usual practical fix is to always acquire locks in the same order."
20. What happens when you type a URL in a browser?
"DNS resolves the name to an IP, the browser opens a TCP connection, negotiates TLS for HTTPS, sends an HTTP GET, the server responds with HTML, and the browser parses it and fetches CSS, JS and images. I would mention caching at the browser and CDN if asked to go deeper."
21. What is cloud computing? Name the service models.
"Renting computing resources over the internet instead of owning them. IaaS gives raw machines and storage, like AWS EC2; PaaS gives a managed platform, like a managed database or app service; SaaS gives a finished application, like Gmail. TCS moves clients to cloud on many projects, so I have started with basic AWS."
Project and resume questions
22. Explain your final-year project in two minutes.
Problem, your role, stack, one difficulty, one result. Then stop. The project explanation guide has a full script. Expect the next five questions to come from whatever you mention, so do not mention what you cannot defend.
23. What was the hardest bug in your project?
Use a real one. "Duplicate complaints were created when users double-clicked submit. I found it by checking the database timestamps, fixed it with a unique index and by disabling the button after the first click. It taught me to design for impatient users."
24. What would you change if you rebuilt the project?
"I would add automated tests from day one, use a proper migration tool instead of hand-written SQL, and split the monolith into two services only if load required it. I would not add microservices for their own sake." Panels like restraint.
25. Which certification on your resume helped you most?
Name one and say what changed in how you code. If a certification is on your resume purely for decoration, be ready to answer basic questions on it or remove it before the interview.
HR round
26. Tell me about yourself.
Sixty to ninety seconds: name, place, degree and college, one project, one skill, why TCS. Then stop. Full guide: tell me about yourself.
27. Why TCS, and are you okay starting in the Ninja role?
"Yes. Ninja is where most people start and TCS has internal paths to Digital based on performance; I would rather grow inside than wait for a higher offer elsewhere. I chose TCS for the training programme and the range of client domains." Do not sound disappointed about Ninja; the panel notices.
28. Are you willing to relocate and work in shifts?
"Yes to any TCS location in India, and yes to shifts; I have discussed both with my family." If you have a genuine constraint, say it briefly with the reason now, not after the offer.
29. Do you have any backlogs, gaps or other offers?
Facts only, matching your documents exactly. "No active backlogs; one backlog in third semester, cleared in the next attempt. No gap. One other offer from Wipro." A mismatch at verification ends the process even after selection.
30. Do you have any questions for us?
"What does the training period look like for Ninja joiners, and how are freshers allocated to projects?" and "What are the paths from Ninja to Digital?" Two questions, then thank the panel.
Mistakes that get Ninja candidates rejected
- A project you cannot walk through line by line. The Ninja TR is mostly your project; a borrowed or bought project shows in the first two follow-ups.
- Definitions without examples. "Polymorphism is many forms" ends with "show me one".
- Refusing relocation or shifts, or sounding unhappy about the Ninja role.
- Document mismatches: backlogs, gaps or percentages that do not match the mark sheets.
- Silence on a coding question. Talk through the approach even if you cannot finish the code; the panel grades thinking.
- Not knowing which track you applied for, or whether you sat the Advanced section.
How to practise the TCS Ninja rounds
The Ninja interview is short and predictable, which makes it ideal for timed practice. In MockMate Practice, attach your resume and the TCS NQT role text, choose a technical round, and run a ten-minute adaptive session in the browser; the interviewer persona will ask follow-ups on your project the way a TCS panel does, and the technical round includes a code editor for the reverse-a-string type questions. Then run a ten-minute HR round. Each session ends with a report showing every answer, your response timing, recurring weaknesses and a recommended next practice. Eligible accounts get three free Practice starts of up to ten minutes each. Use MockMate Live assistance only in interviews or meetings where the organisation or interviewer permits it; when permission is unclear, which is the case for TCS selection rounds, stay with Practice.
Plan: TR practice on day one, HR on day two, then repeat whichever report was weaker. If you sat the Advanced section and hope for Digital, add the managerial round too. The full process is on the TCS hub, and /mock-interview explains company-mapped sessions.
Frequently asked questions
What is the difference between TCS Ninja, Digital and Prime?
They are three pay and role tracks from the same NQT. Ninja is the entry track and needs only the Foundation section. Digital and Prime need the Advanced section as well, get a deeper technical interview, and are paid more. As of September 2026 TCS lists Digital undergraduate compensation of ₹7.09 to 7.72 LPA and Prime of ₹9.09 to 9.66 LPA; Ninja is not published and candidates report about ₹3.36 to 3.6 LPA.
Does TCS Ninja have a coding round in the interview?
Usually not a separate one. The Ninja technical round is a conversation about fundamentals and your project, sometimes with one short program on paper or screen. The coding test is the NQT itself.
Is the TCS Ninja interview hard?
It is the easiest of the three tracks technically, but the rejection rate is not low, because most rejections are for weak project explanations, document mismatches and refusing relocation or shifts, not for hard questions.
Can a Ninja joiner move to Digital later?
Yes. TCS runs internal assessments and upskilling paths, and candidates report Ninja to Digital upgrades based on performance and certifications. Timelines and rules vary and are not published on the NQT page, so ask HR about the current path.
Is there a bond for TCS Ninja?
Freshers commonly report a one-year service agreement with a recovery amount of around ₹50,000. It is not on the official NQT page. Confirm the exact terms in your offer letter before you sign.
Practice a TCS Ninja round with MockMate
Three free Practice starts and three free Live starts of up to ten minutes each, no card needed. Use Live only where assistance is permitted.
Sources
Keep reading
- 15 min · 9 Sept 2026TCS Interview Questions 2026: NQT, Technical, Managerial and HR RoundsHow TCS fresher hiring works in 2026 (NQT, Ninja/Digital/Prime, TR, MR, HR), eligibility, timeline, and 25 real-style questions with concise model answers.
- 13 min · 9 Sept 2026TCS Managerial Round (MR) Interview Questions 2026: 30 Questions with Sample AnswersWhat the TCS managerial round tests, who interviews you, how long it runs, and 30 MR questions with sample answers for freshers and experienced candidates.
- 12 min · 9 Sept 2026Infosys Interview Questions for Freshers 2026: System Engineer, Specialist and Power ProgrammerInfosys fresher hiring in 2026: InfyTQ, off-campus test, System Engineer vs Specialist vs Power Programmer, CTC ranges, rounds, and 25 questions with answers.
- 12 min · 9 Sept 2026Wipro Interview Questions for Freshers 2026: Elite NLTH, Turbo, Technical and HR RoundsWipro Elite NLTH and Turbo hiring in 2026: eligibility, the online test (aptitude, essay, coding), technical and HR interviews, and 30 questions with model answers.
- 12 min · 9 Sept 2026Cognizant GenC Next Interview Questions 2026: Coding, SQL, Web Task and HRCognizant GenC vs GenC Next vs GenC Elevate explained for 2026, the GenC Next assessment (coding, SQL, MCQs, web task), the interview, and 30 questions with answers.
- 9 min · 9 Sept 2026How to Answer "Tell Me About Yourself" for Freshers: Structure, 4 Sample Answers, MistakesA 60-second structure for 'tell me about yourself', four sample answers (fresher CS, non-tech, 3 years experienced, career switch) and TCS/Infosys HR variants.