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 Campus Placement and was interviewed in Aug 2020. There were 4 interview rounds.
A program to replace a character with another character in Java.
Create a string variable with the original text
Use the replace() method to replace the character with another character
Print the new string with the replaced character
I applied via Campus Placement and was interviewed in Jan 2021. There were 3 interview rounds.
Swap two numbers with and without temporary variable
Without temporary variable: Use addition and subtraction
With temporary variable: Use a third variable to store the value of one of the numbers
Example without temporary variable: a=5, b=7; a=a+b; b=a-b; a=a-b;
Example with temporary variable: a=5, b=7; temp=a; a=b; b=temp;
I applied via Naukri.com and was interviewed in Oct 2020. There was 1 interview round.
Second level cache is a caching mechanism used to improve performance by storing frequently accessed data in memory.
Second level cache is implemented at the application level and can be configured using frameworks like Hibernate.
To optimize SQL queries, one can use indexes, avoid using SELECT *, and use JOINs instead of subqueries.
SOLID principles are a set of design principles for writing maintainable and scalable cod...
To deploy an application in AWS, you need to create an EC2 instance, configure security groups, install necessary software, and upload your application code.
Create an EC2 instance in the desired region and select the appropriate instance type
Configure security groups to allow traffic to and from the instance
Install necessary software and dependencies on the instance
Upload your application code to the instance
Start the ...
I applied via Company Website and was interviewed before Aug 2020. There were 4 interview rounds.
I applied via Campus Placement and was interviewed in Dec 2020. There were 4 interview rounds.
I applied via Recruitment Consulltant and was interviewed before Jun 2021. There was 1 interview round.
BigInteger is used for mathematical operations involving very large integers in Java.
BigInteger is used when the range of values supported by primitive data types like int and long is not sufficient.
It is commonly used in cryptography and security applications.
It provides methods for arithmetic, bitwise, and logical operations on large integers.
Example: calculating factorial of a large number, generating large prime nu
Merge Sort Algo code in java
Divide the array into two halves
Recursively sort the two halves
Merge the sorted halves
Time complexity: O(n log n)
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.3k
salaries
| ₹5 L/yr - ₹16 L/yr |
AST Consultant
52k
salaries
| ₹8 L/yr - ₹25 L/yr |
Associate Consultant
30.5k
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