Autocoder

TCS Interview Questions for Freshers

Last updated 2026-11-19

This page collects technical and HR questions in the style TCS interviews are commonly reported to use, with answers you can adapt in your own words. It sits beside the process guide: for the stages themselves read how to crack the TCS interview, and for coding practice use TCS coding round questions.

TCS mostly tests whether your basics are solid and whether you can communicate. The questions below are mixed easy, medium and hard, because an interviewer will often start gently and push on whatever you mention.

TestTCS iON NQT (in-centre, per TCS iON)
InterviewsTechnical, then managerial/HR, as commonly reported
Core topicsOOP, DBMS/SQL, C/Java/Python, projects
Careers sitetcs.com/careers/india

The TCS selection rounds as commonly reported

TCS's own iON page describes the National Qualifier Test as an in-centre test with variants: a Cognitive test (verbal, reasoning, numerical) and an IT test that adds advanced IT programming plus basic and advanced aptitude and a psychometric component. After the NQT shortlist, candidates are commonly reported to face a technical interview and a managerial or HR interview. TCS does not publish interview content, so everything below is practice in the style of these topics, not a predicted set.

What TCS interviews tend to emphasise

Hiring status

For current news, read TCS hiring, which lists sourced updates. Only the facts below are quoted here, each with its source, and they were checked on 19 November 2026.

TCS Interview Questions for Freshers: questions with worked answers

  1. 1

    Tell me about yourself.

    easy

    Keep it to about a minute and shape it as present, past, future. Start with your degree and branch, name one or two technical strengths with proof (a project, a language you use daily), then say why a services role at TCS fits. Example opening: I am a final-year computer science student; I am strongest in Java and SQL, and I built a college placement-tracking portal with a MySQL back end. Avoid reciting your CV line by line, and avoid anything you cannot answer follow-ups on, because the interviewer will pick one phrase and dig in. For more, see tell me about yourself for freshers.

  2. 2

    Why do you want to join TCS?

    easy

    Give two concrete reasons beyond 'big company'. Good reasons: exposure to many industries through a services model, structured training before project allocation, and long-running client engagements where you learn production practices. Tie one to your goals, for example wanting to grow as a backend developer. Weak answers mention only brand or job security. Do your homework on one TCS business area (such as BFSI or retail technology) and mention it in a sentence without claiming inside knowledge.

  3. 3

    Are you willing to relocate and work in shifts or at a client site?

    easy

    Service companies post freshers across cities, so a flat refusal usually costs you the offer. A good answer is honest and flexible: say you are open to relocating anywhere in India, understand that client time zones can mean shifts, and mention any real constraint calmly (for example a family health reason) instead of hiding it. Never promise something you will not honour, since this is recorded on your profile.

  4. 4

    What are the four pillars of OOP? Give one Java example for each.

    easy

    Encapsulation: private fields with getters and setters, so a BankAccount hides balance and exposes deposit(). Abstraction: expose what an object does, not how, via an abstract class or interface such as Shape with area(). Inheritance: a class reuses a parent's behaviour, for example SavingsAccount extends Account. Polymorphism: one call, many behaviours; compile-time via method overloading, run-time via overriding, where Shape s = new Circle(); s.area() runs Circle's version. Interviewers often follow up with overloading versus overriding: overloading differs in parameter list within one class, overriding keeps the same signature in a subclass.

  5. 5

    Abstract class versus interface in Java?

    medium

    An interface defines a contract; a class can implement many. Since Java 8 interfaces may have default and static methods, and since Java 9 private methods, but no instance state (only constants). An abstract class can hold instance fields, constructors and any mix of abstract and concrete methods, but a class extends only one. Use an interface for a capability (Comparable, Runnable) and an abstract class when subclasses share state and partial implementation (a base Employee with salary logic). Neither can be instantiated directly.

  6. 6

    Explain 1NF, 2NF and 3NF with a small example.

    medium

    1NF: every column holds atomic values, no repeating groups (a phones column holding '999,888' breaks it). 2NF: in 1NF, and every non-key attribute depends on the whole composite key, not part of it; in OrderItem(order_id, product_id, product_name, qty), product_name depends only on product_id, so move it to a Product table. 3NF: in 2NF, and no non-key attribute depends on another non-key attribute; in Employee(emp_id, dept_id, dept_name) dept_name depends on dept_id, so split Department out. Normalisation removes update, insert and delete anomalies at the cost of more joins.

  7. 7

    Write a query for the second highest salary.

    medium

    Use a subquery on the maximum below the maximum, or DENSE_RANK. The first works on every database; the second extends easily to the Nth highest. If there is no second distinct salary the query returns NULL (or no row for the window version), which is worth mentioning. A common slip is using LIMIT 1 OFFSET 1 without DISTINCT, which returns a duplicate of the top salary when two people tie. For more SQL practice see SQL joins interview questions.

    sql
    SELECT MAX(salary) AS second_highest
    FROM employee
    WHERE salary < (SELECT MAX(salary) FROM employee);
    
    SELECT salary FROM (
      SELECT salary, DENSE_RANK() OVER (ORDER BY salary DESC) AS rnk
      FROM employee
    ) t WHERE rnk = 2 LIMIT 1;
  8. 8

    Process versus thread.

    medium

    A process is a running program with its own address space, file handles and resources; a thread is a unit of execution inside a process that shares the heap and code with sibling threads but has its own stack and registers. Creating and context-switching threads is cheaper, and threads communicate through shared memory, which is also why they need synchronisation to avoid race conditions. A crash in one process does not take down another, while an unhandled fault in one thread can kill the whole process.

  9. 9

    What is printed by int a = 5; printf("%d %d", a++, ++a); in C?

    hard

    Trick question: the behaviour is undefined, because the order in which function arguments are evaluated is unspecified and a is modified twice without a sequence point between them. Different compilers print different results (for example 6 6 or 5 7). The right answer is to say it is undefined, explain why, and add that you would write the two operations in separate statements. TCS-style written tests like these output questions, so know the sequence-point rule.

  10. 10

    How does HashMap work internally in Java?

    hard

    HashMap stores entries in an array of buckets. put() computes hashCode(), spreads the bits, and takes index = hash and (n - 1), where n is a power of two. Colliding keys chain in a linked list; since Java 8 a bucket converts to a balanced tree once it holds eight entries and the table has at least 64 slots, giving O(log n) worst case. get() finds the bucket, then compares with equals(). The table doubles when size exceeds load factor (0.75) times capacity, rehashing entries. Keys must have consistent equals() and hashCode(); mutable keys break lookups. It allows one null key and is not thread-safe.

  11. 11

    Walk me through your final-year project.

    medium

    Prepare a two-minute version: the problem, your own role, the tech stack, one hard bug or design decision, and the result. Be ready for 'why this database', 'what happens with 10,000 users' and 'show the schema' type follow-ups. If it was a team project, state precisely which modules you wrote. If you cannot explain a library you used, say what it does at a high level and admit what you did not study. Honesty reads better than a bluff that collapses on the second question.

  12. 12

    Where do you see yourself in five years?

    easy

    Aim for growth inside the role: becoming a dependable developer who owns modules, learning cloud or data skills, and perhaps leading a small team. Avoid naming another company or saying you plan to study abroad. Tie it to how a services career builds that path: varied projects, certifications and client exposure. Keep it to three sentences. See also how to crack the TCS interview for the process side.

Frequently asked questions

Is the TCS technical interview hard for freshers?

It is usually fundamentals-focused: OOP, DBMS, one language and your project. Difficulty depends on how deeply you can explain what you wrote on your resume.

Do they ask coding in the TCS interview?

Commonly reported yes, usually small problems such as reversing a string, checking primes or finding duplicates, often on paper or in an editor. The NQT itself has the larger coding component.

How should I answer the HR round?

Be specific and consistent with your resume. Prepare tell me about yourself, why TCS, relocation, strengths and weaknesses, and one example of teamwork.

Where do I check current TCS hiring news?

Read TCS hiring and the official page at tcs.com/careers/india.

Sources

Related guides

More in Company Interview Questions

See all in this section