i
TCS
Filter interviews by
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
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...
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...
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
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.
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 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.
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 ...
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...
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...
I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.
String,lists,dict and coding knowledge
I appeared for an interview in Feb 2025.
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], ...
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...
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'].
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
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!')
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)
I appeared for an interview in Jul 2024.
Programming test in basic
Code implementation in live
Project questions asked
A=10
B=10
C=A+B
Print("c=",c)
I applied via Recruitment Consulltant and was interviewed in Dec 2023. There were 3 interview rounds.
Round 1- 20 Ques (Foundation)
Round 2- 15 Ques (Advanced-contains both Quants and Logical
3-4 questions are asked
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.
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)
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
I applied via LinkedIn and was interviewed in Jan 2024. There was 1 interview round.
Some of the top questions asked at the TCS Python Software Developer interview -
The duration of TCS Python Software Developer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 19 interview experiences
Difficulty level
Duration
based on 38 reviews
Rating in categories
System Engineer
1.1L
salaries
| ₹1 L/yr - ₹9 L/yr |
IT Analyst
65.7k
salaries
| ₹7.7 L/yr - ₹12.6 L/yr |
AST Consultant
53.5k
salaries
| ₹12.2 L/yr - ₹21 L/yr |
Assistant System Engineer
33.2k
salaries
| ₹2.6 L/yr - ₹6.4 L/yr |
Associate Consultant
32.7k
salaries
| ₹16.2 L/yr - ₹28 L/yr |
Amazon
Wipro
Infosys
Accenture