TCS technical interview questions for freshers

TCS technical interview questions for freshers cover four things: the programming language you list on your résumé, short coding problems you write or trace by hand, computer science fundamentals (OOP, DBMS and SQL, operating systems, networks), and a project you can explain end to end. The interview usually comes after the TCS National Qualifier Test (NQT), and candidates considered for higher tracks such as Digital or Prime report deeper data structures and problem-solving questions.

By Published 8 min read

How TCS fresher hiring usually reaches the technical round

Tata Consultancy Services hires most engineering and science graduates through campus drives and off-campus drives built around the TCS National Qualifier Test, the NQT, which is run on the TCS iON platform. Public notifications over the years have described a cognitive section (numerical ability, verbal ability and reasoning) and, in some formats, advanced quantitative, advanced reasoning and coding sections. Your performance is widely reported to decide which hiring track you are considered for, with Ninja, Digital and Prime being the names candidates most often mention. Sections, timings and track names have changed between years, so read the notification for your own drive rather than relying on an old forum post.

Candidates who clear the test are invited to an interview. Many describe technical, managerial and HR conversations, sometimes held as separate sittings and sometimes merged into one panel, online or at a TCS office. This page covers the technical part. The background, relocation and service agreement questions that the HR side asks are on the TCS HR interview page.

What the technical panel is checking

  • That your résumé is true. If you list Java, Python and C++, expect to be tested on all three. Listing one language you know deeply is safer than three you know a little.
  • That you can write working code without an IDE. Short problems on paper, a shared editor or a whiteboard, with the panel watching how you test your own logic.
  • That your degree stuck. The core subjects from your course (OOP, databases, operating systems, networks) come up because TCS projects need people who can learn a client's stack quickly on top of them.
  • That you built your project yourself. Panels dig into one or two projects until the detail runs out.
  • How you think when you are stuck. Saying "I am not sure, but I would reason it like this" scores better than guessing confidently.

40 TCS technical interview questions by topic

These are common question types for a TCS fresher technical round, written in our own words. They are not a list of real TCS questions, and panels differ by location, year and track. Use them to find the gaps in your preparation.

Your programming language

Language questions in a TCS technical round
QuestionWhat it testsWhat a strong answer shows
Why did you choose this language as your primary one?Honesty about your skillsA real reason, such as the language your projects use, plus where you are still learning.
What is the difference between a compiled and an interpreted language? Where does yours sit?How code runsThat Java compiles to bytecode for the JVM, C compiles to machine code, and Python is compiled to bytecode and interpreted.
Explain call by value and call by reference with an example.Memory model basicsWhat happens to the caller's variable in each case, and how your language actually passes objects.
What is a pointer, and what is a null or dangling pointer?C and C++ fundamentalsA clear picture of addresses, plus a common bug that dangling pointers cause.
How is a string stored, and why are strings immutable in Java and Python?Language internalsThe string pool or interning idea, and the safety and caching reasons for immutability.
What is the difference between an array and a linked list?Data structure basicsContiguous memory and index access against cheap insertion and pointer overhead.
What happens when an exception is not caught?Error handlingHow it travels up the call stack, and why a finally block or context manager matters.
What is the difference between a static and an instance variable?Scope and lifetimeOne copy per class against one per object, with a sensible example of each.
Language questions in a TCS technical round. Scroll sideways on a small screen.

Coding on the spot

Coding problems in a fresher round are usually short. The panel cares as much about how you approach them as about the final code: state your plan, write it cleanly, then walk through one normal input and one edge case out loud.

  • Reverse a string without a built-in reverse function. Use two indices that move toward each other, and mention what happens with an empty string.
  • Check whether a number is prime. Test divisors only up to the square root, and handle 0, 1 and 2 before the loop.
  • Print the Fibonacci series up to n terms. Write the loop version first; if asked about recursion, explain why the naive recursive version repeats work.
  • Find the second largest distinct value in an array. One pass with two variables, and say what you return when all values are equal.
  • Count the vowels, consonants and digits in a sentence. Normalize the case first and decide how to treat spaces and punctuation.
  • Swap two numbers without a third variable. Show the arithmetic trick, then mention that a temporary variable is clearer in real code.
  • Check whether two strings are anagrams. Compare character counts rather than sorting, and state the time complexity of each option.
  • Remove duplicates from an array while keeping the order. Use a set for what you have seen and a separate list for the output.
def second_largest(nums):
    first = second = None
    for n in nums:
        if first is None or n > first:
            first, second = n, first
        elif n != first and (second is None or n > second):
            second = n
    return second  # None when there is no second distinct value

print(second_largest([12, 35, 1, 10, 34, 1]))  # 34
print(second_largest([7, 7, 7]))               # None
Second largest distinct value in one pass, with the edge case handled

Object-oriented programming

OOP questions in a TCS technical round
QuestionWhat it testsWhat a strong answer shows
Name the four pillars of OOP and give a real example of each.Core conceptsExamples from your own code, not textbook animals and shapes.
What is the difference between overloading and overriding?PolymorphismCompile-time choice by signature against runtime choice by object type.
Abstract class or interface: when would you use each?Design judgmentShared state and code in one, a pure contract in the other, and what your language allows.
What is a constructor, and can it be private?Object creationYes, and that a private constructor is how a singleton or factory controls creation.
Why does Java not support multiple inheritance of classes?Language designThe diamond problem, and how interfaces with default methods handle it.
OOP questions in a TCS technical round. Scroll sideways on a small screen.

If OOP is a weak area, the OOPs interview questions guide goes deeper on each pillar with code.

DBMS and SQL

Database questions in a TCS technical round
QuestionWhat it testsWhat a strong answer shows
What is normalization? Explain 1NF, 2NF and 3NF.Schema designA small table you fix step by step, and the update problems each step removes.
Primary key, unique key and foreign key: how do they differ?ConstraintsNulls, how many per table, and how a foreign key protects relationships.
Write a query for the second highest salary in an Employee table.SQL fluencyA correct query using DISTINCT with ORDER BY and OFFSET, or a subquery with MAX.
What is the difference between DELETE, TRUNCATE and DROP?Commands and their effectsRow-by-row with a WHERE clause, all rows at once, or the whole table gone.
Explain inner, left and full outer joins with two small tables.JoinsWhich rows appear in each result, drawn or listed for a concrete case.
What are the ACID properties of a transaction?TransactionsEach property tied to a bank transfer that fails halfway.
Database questions in a TCS technical round. Scroll sideways on a small screen.

Operating systems and networks

Systems questions in a TCS technical round
QuestionWhat it testsWhat a strong answer shows
What is the difference between a process and a thread?OS basicsSeparate memory against shared memory, and what that means for crashes and communication.
What is a deadlock, and what conditions cause it?ConcurrencyThe four conditions and one practical way to prevent one of them.
Explain paging and virtual memory in simple words.Memory managementWhy a program can use more memory than the RAM installed, and what a page fault is.
Walk through the OSI model, and where TCP and IP sit.NetworkingThe layers in order, with a protocol you know at each important one.
What happens when you type a website address into a browser?End-to-end thinkingDNS lookup, a TCP connection, TLS, the HTTP request and the response, in order.
Systems questions in a TCS technical round. Scroll sideways on a small screen.

Projects, internships and deeper questions

  • Explain your final-year project in two minutes. Problem, your role, the stack, one hard part and the result. Practice until it fits.
  • Why did you choose this database or framework for the project? Have a reason, even if the honest one is that the team already knew it.
  • What would you change if you rebuilt it today? Name a real limitation, such as no tests or a slow query, and the fix.
  • What did you do in your internship that you can show? One task, what you shipped, and what the reviewer said.
  • What is the time complexity of the code you just wrote? Expect this after any coding question, especially for Digital or Prime track interviews.
  • How would you find a loop in a linked list? Fast and slow pointers, and why they must meet if a cycle exists.
  • Which sorting algorithm would you use for nearly sorted data, and why? Insertion sort's behavior on such input is a good answer to explain.
  • What do you know about cloud computing? Basic service models and one service you have actually used, without pretending to more.

A fictional project answer

Fictional example

Fresher explaining a final-year project to a TCS technical panel
Interviewer
Tell us about the project on your résumé.
Candidate
Our team of four built a library management web app for our college. Students could search books, reserve them and get a reminder email two days before the due date. I owned the backend: a Spring Boot service with a MySQL database.
Candidate
The hard part was double reservations. Two students could reserve the last copy at the same moment. I fixed it by doing the availability check and the update in one transaction with a row lock, and I wrote a small test that fired parallel requests to prove it.
Interviewer
What would you do differently?
Candidate
I would add an index on the book title column earlier. Search got slow once we loaded the full catalog, and I only noticed during the demo week.

This works because it is specific, names the candidate's own part, and offers a weakness with a fix. Expect the panel to follow up on whatever you mention, so only bring up row locks if you can explain them.

Mistakes that cost freshers the technical round

  • Padding the skills section. Every language and tool listed is fair game. Remove what you cannot defend.
  • Writing code in silence. Talk through your plan. A panel cannot give credit for reasoning it never heard.
  • Skipping edge cases. Empty input, one element, negative numbers and duplicates are where a fresher answer looks careful or careless.
  • Memorized definitions with no example. "Encapsulation is data hiding" is not an answer. Show where you used it.
  • Not knowing your own project. A project copied from a tutorial falls apart at the second follow-up question.

A three-week plan for the TCS technical interview

  1. Week 1: language and codingRevise your main language. Solve two short problems a day on paper first, then type and run them. Cover strings, arrays, number problems and recursion.
  2. Week 2: fundamentalsOne subject every two days: OOP, DBMS and SQL, operating systems, networks. For each, write ten likely questions and answer them aloud.
  3. Week 3: projects and mocksScript your project explanation and prepare five follow-ups. Run two mock interviews with a friend acting as the panel, mixing coding with theory.
  4. The day beforeReread your résumé line by line, check your internet and camera if the interview is online, and keep your NQT and document details ready.

Mock rounds are where the gaps show. Natively is an AI interview assistant for Mac and Windows that can join your practice: it transcribes the questions and your answers on your computer, can read a coding problem from a screenshot and suggest an approach to compare with yours, and, with your résumé added (Pro or the free trial), can draft answers about your own projects. The saved transcript shows which fundamentals you explained clearly and which ones you rushed.

Questions people ask

What questions are asked in the TCS technical interview?

Expect questions on the programming language from your résumé, short coding problems, OOP, DBMS and SQL, operating systems, networks and your final-year project. Candidates on higher tracks such as Digital or Prime report more data structures and complexity questions.

Which programming language should I choose for the TCS interview?

The one you know best and used in your projects. Panels test whatever you list, so one language known deeply beats three listed lightly.

Is the TCS technical interview hard for freshers?

It is usually aimed at what a graduate should know from the degree, but depth varies by panel and track. Clear fundamentals, clean short code and a project you can defend cover most of it.

How is the TCS technical interview different from the HR interview?

The technical part tests coding, CS fundamentals and projects. The HR part covers your background, relocation, shift flexibility, any service agreement in the offer and your career goals.

Where to go next

Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.

Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.

Keep reading

Put it on your own machine.

A live-conversation assistant that runs locally. Your conversations stay on your machine.

macOS 12+ · Windows 10/11

© 2026 Natively AI Private Limited

Source-available under the Natively Personal Use Source License v1.0 · IP geolocation by DB-IP