TCS interview prep · updated Oct 2026

TCS Fresher Interview Questions

Fresher 8 questions

TCS delivers IT services to client companies such as banks, insurers, airlines and retailers, and much of that work is keeping large existing systems running and changing them safely. As a campus hire, expect fundamentals placed inside that work: database transactions for money transfers, nightly jobs that process big files, queries on customer records, and how you behave when given a project you did not choose. What to show here: solid basics, careful work and willingness to learn any technology. Each question below has what the interviewer is checking, an answer frame and a sample spoken answer to adapt.

Behavioral

1. New joiners in IT services are often placed where a client needs people, not in the technology they hoped for. Tell me about a time you were given work you did not choose and still did it well.

What they are checking
Checks your attitude to assigned work and whether you can find something to learn in any task.
Answer frame
  1. Describe the task and why it was not your choice.
  2. Explain how you approached it anyway.
  3. Share what you learned from it.
  4. Give the result.
Sample spoken answer

“In our final year project I wanted to build the machine learning part, but the team needed someone to write test cases and documentation. I was given that. At first I was disappointed. Then I decided to do it properly. I wrote test cases for every screen and found several bugs the others had missed, including one that lost data when a form was submitted twice. I also learned how the whole system fitted together, which helped me in the viva. The project got your result. I learned that the less popular work often teaches you the most.”

Red flag to avoid

Weak answers show resentment, or say they would ask to be moved until they get the technology they want.

Behavioral

2. In a bank's or insurer's system, a small mistake can affect many customers. Tell me about a time you checked your own work carefully and caught an error before anyone else saw it.

What they are checking
Checks whether you have a habit of reviewing your own work, which matters on systems where errors are costly.
Answer frame
  1. Describe the work and what was at stake.
  2. Explain how you checked it.
  3. Share the error you found and how you fixed it.
  4. Say what habit you kept.
Sample spoken answer

“During my internship I wrote a script to update student fee records from a spreadsheet. Before running it on the real data, I ran it on a copy and compared ten records by hand. Two were wrong, because some names in the sheet had extra spaces and matched the wrong student. If I had run it directly, some students would have shown the wrong balance. I fixed the matching to use the roll number and ran the comparison again. Since then I always test on a copy first and check a few records by hand. The result was your result.”

Red flag to avoid

Weak answers say they rarely make mistakes, or rely fully on someone else to test their work.

Technical

3. A customer transfers money from one bank account to another. Explain what a database transaction is and why this transfer needs one.

What they are checking
Checks whether you understand atomicity and consistency through a simple, real example.
Answer frame
  1. Describe the two steps: take from one account, add to the other.
  2. Explain what goes wrong if only one step happens.
  3. Define a transaction as all or nothing.
  4. Mention commit, rollback and two transfers at the same time.
Sample spoken answer

“A transfer has two steps: reduce the balance of the first account and increase the balance of the second. If the system fails after the first step, money has left one account and reached nowhere. A transaction groups both steps so that either both happen or neither does. If anything fails in between, the database rolls back to the state before. When both succeed, it commits. Transactions also help when two transfers touch the same account together, because the database keeps them from reading a half-finished balance. I used this in my college banking project.”

Red flag to avoid

Weak answers recite the four property names without being able to explain what happens when the transfer fails halfway.

Technical

4. A nightly program reads a very large file of customer records and updates a database. One record in the middle has bad data. How should the program behave?

What they are checking
Checks whether you think about error handling, logging and not losing a whole night's work over one bad row.
Answer frame
  1. Validate each record before using it.
  2. Decide whether to skip and log, or stop.
  3. Write bad records to a separate file with the reason.
  4. Report totals at the end: read, updated, rejected.
Sample spoken answer

“I would not let one bad record stop the whole file, unless the rules say the file must be perfect. The program should check each record first, such as missing fields or a wrong date format. A bad record is written to a reject file with the line number and the reason, and the program continues. At the end it prints how many records were read, updated and rejected, so someone can confirm the totals match. If rejects pass a limit, it should stop, because the whole file is probably wrong. I would read the file line by line, not load it all into memory.”

Red flag to avoid

Weak answers let the program crash on the first error, or skip bad records silently with no record of them.

SQL

5. An insurer has a table of customers and a table of policies. Describe how you would list customers who do not have any active policy.

What they are checking
Checks whether you understand joins and how to find rows with no match.
Answer frame
  1. Identify the key that links the tables.
  2. Use a left join from customers to active policies.
  3. Keep rows where the policy side is empty.
  4. Mention another way and test with known cases.
Sample spoken answer

“The two tables are linked by customer id. I would start from the customers table and LEFT JOIN the policies table, with the condition that the policy status is active placed inside the join. Customers with no active policy will have empty policy columns, so I filter with WHERE the policy id IS NULL. The status condition must be in the join, not in the WHERE clause, or the left join behaves like an inner join. Another way is NOT EXISTS with a subquery. I would test with a customer who has only expired policies and one with none at all.”

Red flag to avoid

Weak answers use an inner join, which can only return customers who do have policies.

Technical

6. Client companies usually do not let developers change the live system directly. Why are there separate development, testing and production environments?

What they are checking
Checks whether you understand basic release discipline and the reason behind it, not only the names.
Answer frame
  1. Say what each environment is for.
  2. Explain the risk of changing production directly.
  3. Describe how a change moves from one to the next.
  4. Mention test data and access control.
Sample spoken answer

“Development is where I write and try code, and it is fine if things break there. The testing environment is where testers and business users check the change against requirements, using data that looks like real data but does not expose real customers. Production is the live system that customers and staff depend on. If developers changed it directly, an untested change could stop a bank branch from working, and nobody would know what changed. So each change moves step by step with approvals, and there is a record. Access to production is limited to a few people for the same reason.”

Red flag to avoid

Weak answers see the process as red tape, or think testing on their own laptop is enough.

Scenario

7. You are asked to test a change on a bank client's screen, and you notice the test data contains what look like real customer names and account numbers. What do you do?

What they are checking
Checks whether you understand that client data is confidential and know to raise a concern instead of ignoring it.
Answer frame
  1. Stop and do not copy, share or screenshot the data.
  2. Tell your lead or the client contact right away.
  3. Ask for masked or generated test data.
  4. Continue testing only once the data is safe, and note what happened.
Sample spoken answer

“I would stop before doing anything with the data. I would not take screenshots, export it, or paste it into a ticket, even to show the problem. Then I would tell my team lead the same hour, in person or by a private message, describing what I saw without copying the values. Real customer data should not be in a test environment, and the client will want to know. I would ask for masked or generated data so testing can continue. If I was unsure whether the data was real, I would still raise it and let someone senior decide.”

Red flag to avoid

Weak answers carry on testing because it is convenient, or share examples of the data in a group chat to ask about it.

Why this company

8. Why do you want to begin your career at TCS, working on technology for client companies?

What they are checking
Checks whether you understand what IT services work is and want to learn through it.
Answer frame
  1. Say what you want from your first job.
  2. Connect it to work for clients in many industries.
  3. Show you accept the realities: assigned projects, process, shifts.
  4. Say what you hope to become.
Sample spoken answer

“In my first job I want to learn how real systems are built and kept running, not only how to write code. TCS delivers IT services to client companies in banking, insurance, retail, travel and more, so I would see how technology supports an actual business. I understand that I may be placed on any technology, that there will be process to follow, and that some work is support and testing. I am fine with that, because each of those teaches discipline. Over a few years I want to become someone a client trusts with an important system.”

Red flag to avoid

Weak answers mention only job security or the brand, or insist on one technology from the first day.

Salary questions come last

No figures on this page: pay depends on the level, the city and the offer in front of you. When the offer comes, the free salary negotiation script helps with that part.

For the call itself

The questions above are the prep. On the real call, ClapAssist helps with the ones you did not practice.

ClapAssist is an AI interview assistant for Mac and Windows. It listens to the interview on your computer and shows you what to say, in short lines you can read while you talk. Your live interview audio and screen are never stored. Your resume and notes are saved to your account so the app fills them in on any computer. It is hidden from screen share on every plan, including Free; only you can see it.

Download with 10 free minutes
Mac and Windows · Stays out of screen share · No card