i
TCS
Filter interviews by
I applied via Naukri.com and was interviewed in Mar 2023. There were 4 interview rounds.
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.
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
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 funct...
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' imports a
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 __init__....
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
A list in Python can be created by enclosing elements in square brackets []
Use square brackets [] to enclose elements
Separate elements with commas
Elements can be of any data type
Example: my_list = [1, 'apple', True, 3.14]
What people are saying about TCS
I applied via Naukri.com and was interviewed in Jan 2023. There were 5 interview rounds.
First of to check the ability of the person on coding
The GD is main to clear the person's fear
TCS interview questions for designations
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 for o...
Get interview-ready with Top TCS Interview Questions
I applied via Naukri.com and was interviewed before Mar 2023. There were 3 interview rounds.
In first round which will be coding round they will ask you to write some code on some basic problems.
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()
Exa...
loc and iloc are methods in Pandas used for selecting rows and columns by label or integer position.
loc is used for selecting rows and columns by label
iloc is used for selecting rows and columns by integer position
Example: df.loc[2, 'column_name'] selects the value at row 2 and column 'column_name'
Pandas is a powerful open-source data manipulation and analysis library for Python.
Pandas provides data structures like DataFrame and Series for efficient data manipulation.
It offers tools for reading and writing data in various formats such as CSV, Excel, SQL databases.
Pandas allows for data cleaning, reshaping, merging, and grouping operations.
It integrates well with other libraries like NumPy and Matplotlib for data...
Python coding
General topics
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 interviews
3 Interview rounds
based on 32 reviews
Rating in categories
System Engineer
1.1L
salaries
| ₹1 L/yr - ₹9 L/yr |
IT Analyst
66.2k
salaries
| ₹5 L/yr - ₹15.9 L/yr |
AST Consultant
51.8k
salaries
| ₹8 L/yr - ₹25 L/yr |
Associate Consultant
30.3k
salaries
| ₹9 L/yr - ₹32 L/yr |
Assistant System Engineer
29.8k
salaries
| ₹2.2 L/yr - ₹5.8 L/yr |
Amazon
Wipro
Infosys
Accenture