TCS interview questions

2,783 questions from 501 candidate reports · 2014 to 2025

Online test → Technical → HR·99% entry level

CS fundamentals

Showing 38 of 2,717 reported in this area

What are the differences between C and Java?
asked 13×easyPractice this →
Explain different types of SQL joins.
asked 11×easyPractice this →
What is the difference between C++ and Java?
asked 10×easyPractice this →
What are ACID properties in DBMS?
asked 8×easyPractice this →
What is the difference between C and C++?
asked 8×easyPractice this →
What is the difference between an abstract class and an interface in Java?
asked 7×easyPractice this →
What is the difference between DBMS and RDBMS?
asked 6×easyPractice this →
Explain the software development life cycle (SDLC).
asked 6×easyPractice this →
What are the four pillars of Object-Oriented Programming?
asked 6×easyPractice this →
What is the difference between a list and a tuple in Python?
asked 6×easyPractice this →
What is Object-Oriented Programming (OOP)?
asked 5×easyPractice this →
What is the difference between HTTP and HTTPS?
asked 5×easyPractice this →
What is the difference between a stack and a queue?
asked 5×easyPractice this →
What is the difference between DELETE and TRUNCATE in SQL?
asked 5×easyPractice this →
What is the difference between range and xrange in Python?
asked 5×easyPractice this →
Explain the difference between method overloading and method overriding in Java
asked 5×easyPractice this →
What is a friend function in C++?
asked 4×easyPractice this →
What is the final keyword in Java?
asked 4×easyPractice this →
What is a lambda function in Python?
asked 4×easyPractice this →
Write an SQL query to create a table.
asked 4×easyPractice this →
Explain Stack and Queue data structures.
asked 4×easyPractice this →
What are the differences between C and C++?
asked 4×easyPractice this →
What is call by value and call by reference?
asked 4×easyPractice this →
What is method overloading and method overriding?
asked 4×easyPractice this →
Explain encapsulation in object-oriented programming.
asked 4×easyPractice this →
Explain the OSI model and the function of each layer.
asked 4×easyPractice this →
What is the difference between an abstract class and an interface?
asked 4×easyPractice this →
What is the difference between method overloading and method overriding?
asked 4×easyPractice this →
How does memory allocation work in Python?
asked 3×mediumPractice this →
Write an SQL query to find the second highest salary from a table.
asked 3×mediumPractice this →
What are storage classes in C?
asked 3×easyPractice this →
Explain Internet of Things (IoT)
asked 3×easyPractice this →
How do you retrieve data in SQL?
asked 3×easyPractice this →
Why is String immutable in Java?
asked 3×easyPractice this →
What is the static keyword in Java?
asked 3×easyPractice this →
Explain the layers of the OSI model.
asked 3×easyPractice this →
Explain ACID properties in databases.
asked 3×easyPractice this →
Explain the Java Collection Framework.
asked 3×easyPractice this →

DSA

Showing 10 of 731 reported in this area

Write a program to generate the Fibonacci series.
asked 10×easyPractice this →
Write a program to check whether a number is prime.
asked 9×easyPractice this →
Check whether a given string or number is a palindrome
asked 7×easyPractice this →
Swap two numbers without using a third variable.
asked 6×easyPractice this →
Check whether a given number is an Armstrong number.
asked 5×easyPractice this →
Solve the 0/1 Knapsack problem using dynamic programming.
asked 4×mediumPractice this →
Swap two numbers without using a temporary variable
asked 4×easyPractice this →
Write a program to check whether a number is a palindrome.
asked 4×easyPractice this →
Implement Quick Sort algorithm.
asked 3×mediumPractice this →
Explain the Bubble Sort algorithm.
asked 3×easyPractice this →

Behavioural

Showing 3 of 236 reported in this area

How would you handle a teammate who is not performing up to expectations?
asked 2×mediumPractice this →
How would you impress your coach to become the captain of a basketball team?
asked 2×mediumPractice this →
How does a team's performance differ if the captain is calm versus short-tempered?
asked 2×mediumPractice this →

Aptitude

Showing 3 of 181 reported in this area

Verbal ability questions testing English comprehension and grammar
asked 3×mediumPractice this →
Probability-based quantitative aptitude problems
asked 2×mediumPractice this →
Numerical ability questions covering arithmetic and basic quantitative aptitude
asked 2×mediumPractice this →

Puzzles

Showing 3 of 41 reported in this area

Given a square, divide it into 7 equal parts.
asked oncemediumPractice this →
Multiply two 3-digit numbers mentally without using pen or paper.
asked oncemediumPractice this →
Using a 3L and a 5L mug, how can you measure exactly 4L of water?
asked oncemediumPractice this →

System design

Showing 3 of 34 reported in this area

How to integrate a payment gateway into an application?
asked 2×mediumPractice this →
How do you optimize a REST API?
asked oncemediumPractice this →
Design an E-Commerce application
asked oncemediumPractice this →

Showing 60 of 2,783 questions. Ranked by how often the same question came back across reports.

Practise a TCS-style interview

A spoken interview built from these questions, scored when you finish; the report is yours.

Start practising

Common questions

What questions does TCS ask?

Candidate interview reports most often cover CS fundamentals (69%) and DSA (19%).

How many rounds does TCS interview have?

Candidate interview reports show an average of 2.8 rounds per experience, with a typical sequence of Online test → Technical → HR. Individual interview paths can vary.

Is the TCS interview hard?

Among questions with a reported difficulty, the mix is easy 67%, medium 32%, hard 1%.

Keep reading