Upload Button Icon Add office photos
Engaged Employer

i

This company page is being actively managed by TCS Team. If you also belong to the team, you can get access from here

TCS Verified Tick

Compare button icon Compare button icon Compare

Filter interviews by

TCS Python Software Developer Interview Questions and Answers

Updated 3 Mar 2025

22 Interview questions

A Python Software Developer was asked
Q. How can you swap two numbers without using a swap function or a third variable?
Ans. 

To swap two numbers without using a swap function or a third variable, use arithmetic operations.

  • Add the two numbers together and store the result in one of the variables

  • Subtract the second number from the sum and store the result in the second variable

  • Subtract the original first number from the sum and store the result in the first variable

A Python Software Developer was asked
Q. What are __init__ and __init__.py?
Ans. 

The __init__ method is a special method in Python classes used for initializing new objects. __init__.py is a special file used to define a package in Python.

  • The __init__ method is called when a new object is created from a class and is used to initialize the object's attributes.

  • __init__.py is a special file used to define a package in Python. It can be empty or contain initialization code for the package.

  • The __in...

Python Software Developer Interview Questions Asked at Other Companies

Q1. What is the purpose of using the super keyword, Inheritance in Py ... read more
asked in Infosys
Q2. Can you write a Python program to determine whether two given wor ... read more
Q3. Have you implemented any context manager in your application?
Q4. Difference between static and instance methods in python? Explain ... read more
Q5. What is byte code. What is filter function in python used for.
A Python Software Developer was asked
Q. What are modules and packages?
Ans. 

Modules are files containing Python code, while packages are directories containing modules.

  • Modules are used to organize Python code into reusable files.

  • Packages are used to organize modules into directories for better organization.

  • Modules can be imported using the 'import' keyword, while packages are imported using dot notation.

  • Example: 'import math' imports the math module, while 'import mypackage.mymodule' impo...

A Python Software Developer was asked
Q. Largest count in a word
Ans. 

Find the word with the largest count of a specific character.

  • Iterate through each word in the array

  • Count the occurrences of the specific character in each word

  • Keep track of the word with the largest count

What people are saying about TCS

View All
a senior associate
1w
Tata's lost its touch? TCS ain't what it used to be :-(
Tata is not the same after Sir Ratan Tata! TCS used to really look after its employees, even when they were on the bench. Now, things have changed and it's disappointing.
FeedCard Image
Got a question about TCS?
Ask anonymously on communities.
🔥 Asked by recruiter 6 times
A Python Software Developer was asked
Q. What are the differences between a list and a tuple?
Ans. 

List is mutable, tuple is immutable in Python.

  • List uses square brackets [], tuple uses parentheses ().

  • Elements in list can be changed, tuple elements are fixed.

  • List is slower than tuple due to mutability.

  • List is used for dynamic data, tuple for static data.

A Python Software Developer was asked
Q. Write a custom Decorator.
Ans. 

Custom decorators in Python allow you to modify or extend the behavior of functions or methods.

  • Decorators are functions that wrap another function and modify its behavior.

  • Use the @ symbol followed by the decorator function name above the function definition.

  • Decorators can be used for logging, authentication, caching, etc.

  • Example: def my_decorator(func): def wrapper(): print('Something is happening before the ...

A Python Software Developer was asked
Q. What is a framework?
Ans. 

A framework is a pre-built structure that provides a foundation for developing software applications.

  • Frameworks provide a set of tools, libraries, and best practices to streamline development.

  • They help developers focus on writing application-specific code rather than reinventing the wheel.

  • Examples include Django, Flask, and React for web development.

Are these interview questions helpful?
A Python Software Developer was asked
Q. What are the OOP concepts in Python?
Ans. 

Object-oriented programming concepts in Python include classes, objects, inheritance, encapsulation, and polymorphism.

  • Classes: Blueprint for creating objects with attributes and methods.

  • Objects: Instances of classes that can store data and perform actions.

  • Inheritance: Ability to create a new class based on an existing class.

  • Encapsulation: Restricting access to certain components of an object.

  • Polymorphism: Ability ...

A Python Software Developer was asked
Q. What positive attributes do you bring to problem-solving situations?
Ans. 

Maintaining a positive attitude in problem-solving fosters creativity and resilience, leading to effective solutions and collaboration.

  • Stay calm and composed: For example, when facing a tight deadline, take a moment to breathe and prioritize tasks.

  • Focus on solutions, not problems: Instead of dwelling on what went wrong, brainstorm potential fixes.

  • Embrace collaboration: Engaging with team members can bring fresh pe...

A Python Software Developer was asked
Q. What is threading? and how to achieve this in python. What is generator function ? what is decorator ? so on...
Ans. 

Threading allows multiple tasks to run concurrently. Generator functions produce a sequence of values. Decorators modify functions or methods.

  • Threading in Python allows for concurrent execution of tasks.

  • Generator functions use the yield keyword to produce a sequence of values.

  • Decorators in Python are used to modify the behavior of functions or methods.

  • Example: Threading - threading.Thread(target=my_function).start...

TCS Python Software Developer Interview Experiences

17 interviews found

Interview experience
4
Good
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.

Round 1 - Coding Test 

String,lists,dict and coding knowledge

Interview Preparation Tips

Interview preparation tips for other job seekers - reverse a string without using in built functions
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
No response

I appeared for an interview in Feb 2025.

Round 1 - Technical 

(2 Questions)

  • Q1. Tell me difference between append and extend
  • Ans. 

    Append adds a single element to the end of a list, while extend adds multiple elements from an iterable.

    • Append adds one element at a time to the end of a list

    • Extend adds multiple elements from an iterable (e.g. list, tuple) to the end of a list

    • Append can be used to add a single element like a number or a string

    • Extend is used to add multiple elements like another list or tuple

    • Example: list1 = [1, 2, 3], list2 = [4, 5], ...

  • Answered by AI
  • Q2. List and tuple
Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
-
Round 1 - One-on-one 

(1 Question)

  • Q1. Explain about python frameworks
  • Ans. 

    Python frameworks are pre-built libraries that provide a structure for developing web applications.

    • Frameworks like Django, Flask, and Pyramid help streamline development by providing common functionalities like routing, templating, and database access.

    • Django is a high-level framework that follows the MVC pattern and includes an ORM for database interactions.

    • Flask is a lightweight framework that is easy to set up and al...

  • Answered by AI

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(4 Questions)

  • Q1. What is array ?
  • Ans. 

    An array is a data structure that stores a collection of elements, each identified by at least one array index or key.

    • Arrays can store elements of the same data type or mixed data types.

    • Elements in an array are accessed by their index, starting from 0.

    • Arrays in Python are created using square brackets, e.g. my_array = ['apple', 'banana', 'cherry'].

  • Answered by AI
  • Q2. Write reversing six digit number using python
  • Ans. 

    Reversing a six digit number using Python

    • Convert the number to a string to easily manipulate each digit

    • Use string slicing to reverse the order of the digits

    • Convert the reversed string back to an integer for the final result

  • Answered by AI
  • Q3. What is python ?
  • Ans. 

    Python is a high-level, interpreted programming language known for its simplicity and readability.

    • Python is dynamically typed and garbage-collected.

    • It supports multiple programming paradigms like procedural, object-oriented, and functional programming.

    • Python has a large standard library and a vibrant community of developers.

    • Example: print('Hello, World!')

  • Answered by AI
  • Q4. Different between list and tuples
  • Ans. 

    Lists are mutable, tuples are immutable in Python.

    • Lists are enclosed in square brackets [], tuples in parentheses ().

    • Lists can be modified (add, remove, change elements), tuples cannot be modified once created.

    • Lists are used for collections of similar items, tuples for fixed collections of dissimilar items.

    • Example: list_example = [1, 2, 3], tuple_example = (4, 5, 6)

  • Answered by AI

Skills evaluated in this interview

Interview experience
1
Bad
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I appeared for an interview in Jul 2024.

Round 1 - Coding Test 

Programming test in basic

Round 2 - Coding Test 

Code implementation in live

Round 3 - Assignment 

Project questions asked

Interview Preparation Tips

Interview preparation tips for other job seekers - Freshers in python programming language
Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
-
Result
Selected Selected
Round 1 - Coding Test 

A=10
B=10
C=A+B
Print("c=",c)

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(1 Question)

  • Q1. Self intro and questions about project
Interview experience
2
Poor
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
No response

I applied via Recruitment Consulltant and was interviewed in Dec 2023. There were 3 interview rounds.

Round 1 - Aptitude Test 

Round 1- 20 Ques (Foundation)
Round 2- 15 Ques (Advanced-contains both Quants and Logical

Round 2 - Coding Test 

3-4 questions are asked

Round 3 - HR 

(2 Questions)

  • Q1. What are interrupts?
  • Ans. 

    Interrupts are signals sent to the CPU to temporarily suspend the current program and handle a specific event or request.

    • Interrupts allow the CPU to respond to events in real-time without wasting processing power.

    • They can be generated by hardware devices, software programs, or the CPU itself.

    • Examples include keyboard input, timer expiration, and hardware errors.

  • Answered by AI
  • Q2. What do you mean by SQL Correlated Subqueries?
  • Ans. 

    SQL correlated subqueries are subqueries that reference columns from the outer query.

    • Correlated subqueries are executed for each row processed by the outer query.

    • They are used to filter results based on values from the outer query.

    • Example: SELECT * FROM table1 WHERE column1 = (SELECT MAX(column2) FROM table2 WHERE table2.id = table1.id)

  • Answered by AI

Interview Preparation Tips

Topics to prepare for TCS Python Software Developer interview:
  • C
  • Python
  • Java
  • C++
Interview preparation tips for other job seekers - It is the best company

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(1 Question)

  • Q1. Generator in Python
  • Ans. 

    Generators in Python are functions that allow you to iterate over a sequence of items without storing them all in memory.

    • Generators use the 'yield' keyword to return values one at a time

    • They are memory efficient as they generate values on the fly

    • Can be used in for loops, list comprehensions, and other iterable contexts

  • Answered by AI

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via LinkedIn and was interviewed in Jan 2024. There was 1 interview round.

Round 1 - HR 

(4 Questions)

  • Q1. PYTHON CODE DICIMAL CODE
  • Q2. NUMPY ARRAY CODE PYTHON
  • Q3. PYTHON LIST CODE APPEND LIST
  • Q4. PYTHON FUCTIONS

TCS Interview FAQs

How many rounds are there in TCS Python Software Developer interview?
TCS interview process usually has 2 rounds. The most common rounds in the TCS interview process are Technical, Coding Test and HR.
How to prepare for TCS Python Software Developer interview?
Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at TCS. The most common topics and skills that interviewers at TCS expect are Python, Django, AWS, Flask and SQL.
What are the top questions asked in TCS Python Software Developer interview?

Some of the top questions asked at the TCS Python Software Developer interview -

  1. Swap two numbers without swap function and without using 3rd varia...read more
  2. What do you mean by SQL Correlated Subqueri...read more
  3. What is threading? and how to achieve this in python. What is generator functio...read more
What are the most common questions asked in TCS Python Software Developer HR round?

The most common HR questions asked in TCS Python Software Developer interview are -

  1. What are your strengths and weakness...read more
  2. Tell me about yourse...read more
How long is the TCS Python Software Developer interview process?

The duration of TCS Python Software Developer interview process can vary, but typically it takes about less than 2 weeks to complete.

Tell us how to improve this page.

Overall Interview Experience Rating

4/5

based on 19 interview experiences

Difficulty level

Easy 44%
Moderate 56%

Duration

Less than 2 weeks 63%
2-4 weeks 13%
4-6 weeks 13%
More than 8 weeks 13%
View more
TCS Python Software Developer Salary
based on 402 salaries
₹2.5 L/yr - ₹10.7 L/yr
8% less than the average Python Software Developer Salary in India
View more details

TCS Python Software Developer Reviews and Ratings

based on 38 reviews

3.6/5

Rating in categories

3.2

Skill development

3.9

Work-life balance

2.5

Salary

4.5

Job security

3.8

Company culture

2.6

Promotions

3.2

Work satisfaction

Explore 38 Reviews and Ratings
System Engineer
1.1L salaries
unlock blur

₹1 L/yr - ₹9 L/yr

IT Analyst
65.7k salaries
unlock blur

₹7.7 L/yr - ₹12.6 L/yr

AST Consultant
53.5k salaries
unlock blur

₹12.2 L/yr - ₹21 L/yr

Assistant System Engineer
33.2k salaries
unlock blur

₹2.6 L/yr - ₹6.4 L/yr

Associate Consultant
32.7k salaries
unlock blur

₹16.2 L/yr - ₹28 L/yr

Explore more salaries
Compare TCS with

Amazon

4.0
Compare

Wipro

3.7
Compare

Infosys

3.6
Compare

Accenture

3.8
Compare
write
Share an Interview