i
TCS
Filter interviews by
All kind of basic aptitude to oops
Two java questions easy and medium
I applied via Campus Placement and was interviewed before Oct 2023. There was 1 interview round.
Traverse the linked list to find the starting point by using Floyd's Tortoise and Hare algorithm
Use two pointers, slow and fast, to traverse the linked list
Move slow pointer by one step and fast pointer by two steps
When they meet, reset one pointer to the head and move both pointers by one step until they meet again
Traverse the linked list and count the number of nodes
Initialize a counter variable to 0
Traverse the linked list while incrementing the counter for each node
Return the final count as the length of the linked list
Good aptitute is asked in the tcs
Basic to medium level question
What people are saying about TCS
I appeared for an interview before Mar 2023.
OOPs features include encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation: Bundling data and methods that operate on the data into a single unit (class).
Inheritance: Ability to create new classes based on existing classes, inheriting their attributes and methods.
Polymorphism: Ability to use a single interface to represent different data types or objects.
Abstraction: Hiding the implementation details...
String is immutable in order to ensure data integrity and security.
Immutable strings prevent accidental modification of data.
Immutable strings allow for safe sharing of data between different parts of a program.
Immutable strings help in thread safety by avoiding concurrent modification issues.
Example: String str = "hello"; str.concat(" world"); // This does not modify the original string, but creates a new one
String is immutable while StringBuilder is mutable in Java.
String is immutable, meaning once created, it cannot be changed. StringBuilder is mutable, allowing for modifications.
String concatenation creates a new string object each time, while StringBuilder allows for efficient string manipulation.
StringBuilder is more efficient for concatenating multiple strings in a loop.
Example: String str = "Hello"; StringBuilder sb...
TCS interview questions for designations
I applied via Company Website and was interviewed before Feb 2020. There was 1 interview round.
I applied via Naukri.com and was interviewed before Oct 2020. There were 3 interview rounds.
I applied via LinkedIn and was interviewed before Jan 2021. There was 1 interview round.
I applied via Campus Placement and was interviewed before Aug 2020. There were 4 interview rounds.
Factorial can be calculated using a loop by multiplying numbers from 1 to n.
Initialize a variable to 1
Use a loop to multiply the variable with numbers from 1 to n
Return the variable
I applied via Naukri.com and was interviewed before Jun 2021. There were 3 interview rounds.
It includes, maths, English, Computer, general knowledge
based on 5 interviews
Interview experience
based on 2 reviews
Rating in categories
System Engineer
1.1L
salaries
| ₹1 L/yr - ₹9 L/yr |
IT Analyst
66.2k
salaries
| ₹5 L/yr - ₹16 L/yr |
AST Consultant
51.9k
salaries
| ₹8 L/yr - ₹25.5 L/yr |
Associate Consultant
30.4k
salaries
| ₹9 L/yr - ₹32 L/yr |
Assistant System Engineer
29.8k
salaries
| ₹2.2 L/yr - ₹6 L/yr |
Amazon
Wipro
Infosys
Accenture