i
TCS
Filter interviews by
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...
I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.
String,lists,dict and coding knowledge
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...
What people are saying about TCS
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)
TCS interview questions for designations
I was interviewed in Jul 2024.
Programming test in basic
Code implementation in live
Project questions asked
Get interview-ready with Top TCS Interview Questions
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.
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
1 Interview rounds
based on 24 reviews
Rating in categories
System Engineer
1.1L
salaries
| ₹1 L/yr - ₹9 L/yr |
IT Analyst
67.7k
salaries
| ₹5.1 L/yr - ₹16 L/yr |
AST Consultant
51.1k
salaries
| ₹8 L/yr - ₹25 L/yr |
Assistant System Engineer
29.9k
salaries
| ₹2.2 L/yr - ₹5.6 L/yr |
Associate Consultant
28.7k
salaries
| ₹9 L/yr - ₹32 L/yr |
Amazon
Wipro
Infosys
Accenture