🏢Company Interviews14 min

TCS Interview Questions

TCS is India's largest fresher recruiter, hiring 40,000+ graduates a year through the TCS National Qualifier Test (NQT). The process is predictable once you know the shape: an online NQT (aptitude + coding), a technical interview built around your resume and core CS, and an HR round that checks communication and relocation willingness. This guide lists the questions candidates actually report across all three rounds, with model answers you can adapt.

The TCS Hiring Process (NQT → Technical → HR)

TCS hires through the NQT and then interviews qualified candidates. Ninja and Digital are the two main offer bands; Digital (higher package) needs a stronger coding and advanced-tech performance.

  • TCS NQT: numerical ability, reasoning, verbal ability, plus a coding section (1–2 programs)
  • Technical round: resume projects, one core language in depth, DBMS/SQL, OOPs, basic DSA
  • HR round: self-introduction, strengths/weaknesses, relocation, service agreement, why TCS
  • Digital band asks harder coding + advanced topics (cloud, DSA, data structures)
  • Communication is scored throughout — TCS is a client-facing services company

What TCS Actually Evaluates

TCS is optimising for reliable, trainable, client-ready engineers — not competitive-programming stars. Consistency and clarity beat flashiness.

  • Fundamentals over tricks: can you explain a concept simply and correctly
  • Willingness to relocate and work in any technology/domain
  • Communication and attitude — you'll face clients within a year
  • Honesty on the resume: every line is fair game in the technical round

Common Interview Questions & Answers

Q1. Tell me about yourself.

Use Present → Past → Future in 60–90 seconds: your degree and current focus, one or two projects or skills relevant to a software role, and why you're excited to start your career at TCS. Keep it crisp and end on enthusiasm for the role.

This sets the tone for the whole interview — rehearse it until it sounds natural, not memorised.

Q2. What is the difference between C and C++?

C is procedural; C++ is multi-paradigm and supports object-oriented programming (classes, inheritance, polymorphism, encapsulation). C++ adds function overloading, references, the STL and exception handling, while remaining largely backward-compatible with C.

Follow up by naming the four OOP pillars — interviewers usually ask next.

Q3. Explain the four pillars of OOP.

Encapsulation (bundling data with the methods that operate on it and restricting access), Abstraction (exposing only essential features), Inheritance (a class deriving properties from another), and Polymorphism (one interface, many implementations — overloading and overriding).

Give a one-line real example for each, e.g. a Car class for encapsulation.

Q4. What is a primary key and how is it different from a unique key?

A primary key uniquely identifies each row and cannot be NULL; a table has only one. A unique key also enforces uniqueness but allows one NULL and you can have several per table.

Mention that a primary key implicitly creates a clustered index in most RDBMS.

Q5. Write a program to check whether a number is a palindrome.

Reverse the number by repeatedly taking n % 10 and building rev = rev*10 + digit, then compare rev to the original. Same logic works for strings using two pointers from both ends.

Talk through your approach before coding — TCS values clarity over speed.

Q6. What is the difference between DELETE, TRUNCATE and DROP?

DELETE removes rows with an optional WHERE and can be rolled back (DML). TRUNCATE removes all rows quickly, can't use WHERE, and resets identity (DDL, minimal logging). DROP removes the entire table structure.

Note TRUNCATE is faster because it deallocates pages instead of logging each row.

Q7. What are joins? Explain the types.

Joins combine rows from two tables on a related column. INNER returns matching rows; LEFT/RIGHT return all rows from one side plus matches; FULL returns all rows from both; CROSS returns the Cartesian product.

Be ready to write a simple INNER JOIN between employees and departments.

Q8. What is normalization? Explain 1NF, 2NF, 3NF.

Normalization organises data to reduce redundancy. 1NF: atomic values, no repeating groups. 2NF: 1NF + no partial dependency on part of a composite key. 3NF: 2NF + no transitive dependency on non-key attributes.

Give the classic example of splitting a student-course table.

Q9. What is the difference between an array and a linked list?

Arrays give O(1) index access but fixed size and costly insertions/deletions in the middle. Linked lists allow O(1) insert/delete given a node and dynamic size, but O(n) access and extra memory for pointers.

Mention cache locality — arrays are faster to traverse in practice.

Q10. What is a pointer in C?

A pointer is a variable that stores the memory address of another variable. It enables dynamic memory allocation, passing by reference, and building structures like linked lists and trees.

Be ready to explain a null pointer and a dangling pointer.

Q11. Why do you want to join TCS?

Talk about TCS's scale, structured training (like the ILP), exposure to global clients and diverse domains, and strong career growth — then connect it to your goal of building solid engineering foundations early.

Avoid generic praise; tie one specific TCS strength to your own goal.

Q12. Are you willing to relocate?

Yes — say it clearly and without hesitation. Relocation flexibility is effectively a requirement for TCS, and any doubt here can cost the offer.

A confident single-word 'Yes' followed by a short reason is best.

Q13. What is the difference between an abstract class and an interface?

An abstract class can have both implemented and abstract methods and state (fields), and a class extends one. An interface (classically) declares method signatures only and a class can implement many, enabling multiple inheritance of type.

In modern Java, mention default methods in interfaces if asked.

Q14. What are the ACID properties?

Atomicity (all-or-nothing), Consistency (valid state to valid state), Isolation (concurrent transactions don't interfere), Durability (committed data survives failures). They guarantee reliable database transactions.

One line each is enough; interviewers just want to see you know them.

Q15. What is a stack and where is it used?

A stack is a LIFO structure with push/pop/peek. It's used in function-call management, expression evaluation, undo operations, and backtracking algorithms like DFS.

Mention the call stack — it connects theory to something they use daily.

Q16. What are your strengths and weaknesses?

Give one genuine strength backed by an example (e.g. quick learner — cite a project), and one real but non-critical weakness with the concrete step you're taking to improve it.

Never pick a weakness that's core to the job, and always show the fix.

Q17. What is exception handling?

A mechanism to handle runtime errors gracefully using try/catch/finally, so the program can recover or fail cleanly instead of crashing. finally always runs for cleanup.

Mention checked vs unchecked exceptions in Java if that's your language.

Q18. Do you have any questions for us?

Always ask one — about the training program, the kind of projects a fresher starts on, or how performance is reviewed in the first year. It signals genuine interest.

Never say 'no questions' — prepare two in advance.

Common Mistakes to Avoid

Claiming skills on the resume you can't back up in the technical round

Hesitating on the relocation question

Weak or over-long self-introduction

Poor communication despite correct answers — TCS weights clarity heavily

Ignoring core CS (DBMS, OOPs) and only preparing coding

Expert Tips

Master your resume — every project and skill line will be questioned

Prepare one language deeply rather than three superficially

Practise explaining concepts out loud, simply — that's what's scored

Revise DBMS, SQL and OOPs the night before; they come up almost always

For the Digital band, add DSA and one cloud/advanced topic

Pre-Interview Checklist

6 items

Frequently Asked Questions

Is TCS NQT tough to clear?

It's moderate — steady preparation of aptitude and one coding language clears it. Consistency matters more than advanced skills for the Ninja band.

What is the difference between TCS Ninja and TCS Digital?

Digital is the higher-package band requiring a stronger coding and advanced-tech performance; Ninja is the standard entry band. You're often considered for both from the same NQT.

Does TCS ask coding in the interview?

Yes, usually one simple program (palindrome, prime, pattern, string reversal) plus questions on your language and core CS.

🎯

Ready to ace your next interview?

Practice with SpeakWell AI. Upload your resume → get resume-based questions → practice with AI interviewers → improve communication → track progress → get instant AI feedback.

Back to all guides