i
TCS
Filter interviews by
Given N gold wires with lengths, find minimum cost to assemble all wires into a single wire.
Only two adjacent small wires can be assembled at a time
Cost of forming is the sum of their length
Use dynamic programming to find minimum cost
Example: N=4, lengths=[2,3,4,5], minimum cost=29
Inheritance is a mechanism in object-oriented programming where a new class is created by inheriting properties of an existing class.
Inheritance allows for code reuse and promotes a hierarchical organization of classes.
The existing class is called the superclass or parent class, while the new class is called the subclass or child class.
The subclass inherits all the properties and methods of the superclass, and can...
finally keyword is used in try-catch block to execute a block of code regardless of the exception thrown or not.
finally block is optional and can be used after catch block
It is used to release resources like database connections, file handles, etc.
It is executed even if there is a return statement in try or catch block
Example: try { //code } catch(Exception e) { //code } finally { //code }
Exceptions are unexpected events that occur during program execution.
Exceptions are used to handle errors and prevent program crashes.
They can be caused by a variety of factors, such as invalid input or resource exhaustion.
Examples of exceptions include NullPointerException, ArrayIndexOutOfBoundsException, and IOException.
Exception handling involves catching and handling exceptions using try-catch blocks.
Unchecked...
What people are saying about TCS
Modular programming focuses on dividing code into modules, while OOP emphasizes objects and classes for data encapsulation.
Modular programming in C uses functions and files to organize code, e.g., using header files for declarations.
C++ supports both modular and OOP paradigms, allowing for function-based and class-based designs, e.g., using classes for encapsulation.
Java is purely object-oriented, where everything...
OOPs stands for Object Oriented Programming. It is a programming paradigm based on the concept of objects.
OOPs focuses on creating objects that contain data and methods to manipulate that data.
In OOPs, objects can interact with each other through methods.
OOPs promotes concepts like inheritance, encapsulation, and polymorphism.
Other programming paradigms like procedural programming focus on procedures or functions.
...
I appeared for an interview in Mar 2025, where I was asked the following questions.
Basic mathematics problems
Arrays, Strings and mathematical formulas
I applied via Company Website and was interviewed in Jan 2024. There were 4 interview rounds.
Aptitude related questions
Basic questions of aptitude
Coding question on Dsa
I applied via Campus Placement and was interviewed before Mar 2023. There were 3 interview rounds.
Very simple just not the basics
OOPs stands for Object Oriented Programming. It is a programming paradigm based on the concept of objects.
OOPs focuses on creating objects that contain data and methods to manipulate that data.
In OOPs, objects can interact with each other through methods.
OOPs promotes concepts like inheritance, encapsulation, and polymorphism.
Other programming paradigms like procedural programming focus on procedures or functions.
In pr...
I applied via Campus Placement and was interviewed in Sep 2021. There were 2 interview rounds.
I had opted for incenter options, where there were 4 sections: aptitude, logical reasoning, English, and coding round. Each question had time allocation . Aptitude mere of moderate level( follow prepinsta apti section for practice) ,English and logical were easy to moderate level, next comes the coding part
It comprises of 2 codes , first one was easy 2 and one was of moderate level
My interview was scheduled on the 26th of September on ms teams. I was asked to join at 10 am in the lobby , I had to wait for 2 hours in the lobby after that they allowed me to join and thus my interview began. In The end they asked for document verification
Inheritance is a mechanism in object-oriented programming where a new class is created by inheriting properties of an existing class.
Inheritance allows for code reuse and promotes a hierarchical organization of classes.
The existing class is called the superclass or parent class, while the new class is called the subclass or child class.
The subclass inherits all the properties and methods of the superclass, and can also...
Exceptions are unexpected events that occur during program execution.
Exceptions are used to handle errors and prevent program crashes.
They can be caused by a variety of factors, such as invalid input or resource exhaustion.
Examples of exceptions include NullPointerException, ArrayIndexOutOfBoundsException, and IOException.
Exception handling involves catching and handling exceptions using try-catch blocks.
Unchecked exce...
Modular programming focuses on dividing code into modules, while OOP emphasizes objects and classes for data encapsulation.
Modular programming in C uses functions and files to organize code, e.g., using header files for declarations.
C++ supports both modular and OOP paradigms, allowing for function-based and class-based designs, e.g., using classes for encapsulation.
Java is purely object-oriented, where everything is a...
I applied via LinkedIn and was interviewed before Mar 2022. There were 3 interview rounds.
Practice well okay - time and distance and speed, water problems
I applied via Company Website and was interviewed before Aug 2021. There were 3 interview rounds.
Some basic aptitude questions must study time & distance, profit loss , proportions
Coding it depends round to round it can be very from moderate to medium level questions
Some of the top questions asked at the TCS ASE interview -
based on 5 interview experiences
Difficulty level
Duration
System Engineer
1.1L
salaries
| ₹1 L/yr - ₹9 L/yr |
IT Analyst
65.7k
salaries
| ₹5.1 L/yr - ₹17 L/yr |
AST Consultant
53.4k
salaries
| ₹8 L/yr - ₹25.3 L/yr |
Assistant System Engineer
33.2k
salaries
| ₹2.6 L/yr - ₹6.4 L/yr |
Associate Consultant
32.6k
salaries
| ₹9 L/yr - ₹33.5 L/yr |
Amazon
Wipro
Infosys
Accenture