i
TCS
Filter interviews by
I was interviewed in Jan 2025.
Rate your
company
🤫 100% anonymous
How was your last interview experience?
I was interviewed in Jan 2025.
ArrayList is preferred for frequent retrieval operations due to fast random access, while LinkedList is suitable for frequent insertions/deletions.
Use ArrayList when frequent retrieval operations are required, such as searching for elements in a large collection.
Choose LinkedList when frequent insertions/deletions are needed, like maintaining a queue or stack.
Consider memory overhead and performance trade-offs when dec...
ReentrantLock should be used instead of synchronized when more flexibility and control over locking mechanisms is needed.
Use ReentrantLock when you need to implement custom locking strategies or require advanced features like tryLock() and lockInterruptibly().
ReentrantLock supports fair locking mechanisms, ensuring that threads acquire the lock in the order they requested it.
Explicit unlocking in ReentrantLock reduces ...
In Java, == checks for reference equality while equals() checks for value equality. Misuse of == can lead to logical errors.
Override equals() when you want to compare the values of objects instead of their references
Override hashCode() alongside equals() to ensure proper functioning in collections like HashMap
Consider implementing Comparable interface for natural ordering in collections
Garbage collection in Java automatically reclaims memory occupied by unused objects using different algorithms and memory regions.
Java garbage collector automatically reclaims memory from unused objects
Different types of GC algorithms in JVM: Serial, Parallel, CMS, G1 GC
Objects managed in Young Generation, Old Generation, and PermGen/Metaspace
Minor GC cleans up short-lived objects in Young Generation
Major GC (Full GC) ...
Lambda expressions in Java 8 improve readability and maintainability by enabling concise and functional-style programming.
Lambda expressions allow writing more compact code by reducing boilerplate code.
They enable passing behavior as arguments to methods, making code more modular and flexible.
Example: (a, b) -> a + b is a lambda expression that adds two numbers.
Checked exceptions must be handled explicitly, while unchecked exceptions do not require explicit handling.
Use custom exceptions when you want to create your own exception types to handle specific scenarios.
Custom exceptions can be either checked or unchecked, depending on whether you want to enforce handling or not.
For example, a custom InvalidInputException could be a checked exception if you want to ensure it is cau...
The Java Memory Model defines how threads interact with shared memory, ensuring visibility and ordering of variable updates in a concurrent environment.
Volatile keyword ensures changes to a variable are always visible to all threads.
Synchronized keyword provides mutual exclusion and visibility guarantees.
Reordering optimizations by the compiler or CPU can lead to unexpected behavior.
Happens-before relationship determin...
Method overloading allows multiple methods with the same name but different parameters, while method overriding allows a subclass to provide a different implementation of a parent method.
Use method overloading when you want to provide multiple ways to call a method with different parameters.
Use method overriding when you want to provide a specific implementation of a method in a subclass.
Example of method overloading: ...
Functional interfaces in Java have exactly one abstract method and work with lambda expressions for concise implementation.
Functional interfaces have exactly one abstract method, such as Runnable, Callable, Predicate, and Function.
Lambda expressions provide a concise way to implement functional interfaces.
Default methods in interfaces help in evolving APIs without breaking backward compatibility.
Method references (::) ...
Java Streams enable functional-style operations on collections with lazy evaluation, unlike Iterators.
Parallel streams can improve performance by utilizing multiple threads, but may introduce overhead due to thread management.
Care must be taken to ensure thread safety when using parallel streams in a multi-threaded environment.
Parallel streams are suitable for operations that can be easily parallelized, such as map and...
Immutability in Java prevents objects from being changed after creation, promoting thread safety and preventing unintended side effects.
Immutable objects cannot be modified after creation, promoting thread safety
String class in Java is immutable, modifications create new objects
Use final fields and avoid setters to create immutable classes
Collections can be made immutable using Collections.unmodifiableList()
Immutabilit...
final, finally, and finalize have different meanings in Java. final is for constants, finally for cleanup, and finalize for garbage collection.
final is used for constants, preventing method overriding, and inheritance
finally is used for cleanup actions after a try-catch block
finalize() is called by the garbage collector before object deletion
Alternatives to finalize() for resource management include using try-with-reso...
Singleton design pattern ensures only one instance of a class exists in the JVM, useful for managing shared resources like database connections.
Avoid using Singleton when multiple instances of a class are required.
Avoid Singleton for classes that are not thread-safe.
Avoid Singleton for classes that need to be easily mockable for testing purposes.
Java annotations provide metadata to classes, methods, and fields, improving code readability and maintainability.
Annotations like @Component, @Service, and @Autowired in Spring help with dependency injection
Annotations reduce boilerplate code compared to XML configurations
Custom annotations can be created using @interface
Reflection APIs allow reading annotation metadata dynamically
Annotations like @Transactional simpl
Java Streams handle parallel processing by dividing data into multiple threads using the ForkJoin framework. Pitfalls include race conditions, performance issues with small datasets, and debugging challenges.
Parallel streams divide data into multiple threads for faster processing
ForkJoin framework handles parallel execution internally
Useful for CPU-intensive tasks but may not improve performance for small datasets
Share...
I was interviewed in Jan 2025.
It sounds like you might be asking for an aptitude test that has 20 questions or characters, possibly for a job application. Aptitude tests for jobs usually focus on assessing your ability to think logically, solve problems, and apply basic skills in areas like math, reasoning, and verbal abilities.
Here’s an example of 20 sample aptitude test questions, covering different types of skills:
1. Numerical Aptitude
What is 15% of 200?
If a car travels 60 miles in 1 hour, how far will it travel in 5 hours at the same speed?
Solve for x: 2x + 5 = 15.
2. Logical Reasoning
What comes next in the sequence: 2, 4, 8, 16, ___?
If all roses are flowers and some flowers are red, are all roses red?
Which number is the odd one out: 3, 5, 9, 7?
3. Verbal Ability
Find the synonym of "quick": a) slow, b) fast, c) steady, d) loud
Choose the correct sentence: "She don't like apples" or "She doesn't like apples?"
Find the antonym of "bright": a) shiny, b) dull, c) happy, d) light
4. Data Interpretation
If a graph shows sales increasing by 20% each month, how much is the increase in the 3rd month if sales were $100 initially?
The pie chart below shows the distribution of monthly expenses. If the rent is 25%, how much is the rent if the total is $1200?
5. Spatial
What people are saying about TCS
I was interviewed in Dec 2024.
I want to jobs for interview
A company for portal the technical support know
A saw the very store pages of line mean
TCS interview questions for popular designations
I applied via campus placement at Lovely Professional University (LPU) and was interviewed in Dec 2024. There were 4 interview rounds.
Basic aptitude tests
There were two coding questions: one was classified as easy, while the other was of medium difficulty. The code must pass all test cases to be deemed complete.
Approach manager openly and honestly, provide specific examples of workload struggles, and suggest potential solutions.
Schedule a meeting with your manager to discuss your workload challenges
Be honest and transparent about the specific tasks or projects that are overwhelming you
Provide examples of how the workload is impacting your productivity and quality of work
Suggest potential solutions such as prioritizing tasks, ...
I currently have one other job offer, but I am particularly interested in this company due to its innovative projects and strong company culture.
Have one other job offer but interested in this company due to innovative projects
Impressed by strong company culture
Believe this company aligns with my career goals and values
I have gaps in my experience due to focusing on specialized projects and roles.
I have chosen to focus on specific areas of expertise rather than gaining a broad range of experience
I have taken on challenging projects that have required a significant time commitment
I have prioritized deepening my knowledge in certain technologies or industries over gaining general experience
I successfully completed a project with a tight deadline by prioritizing tasks and staying focused.
Received a project with a short deadline due to unexpected circumstances
Created a detailed timeline and prioritized tasks based on urgency
Worked extra hours and stayed focused to meet the deadline
Successfully completed the project on time and received positive feedback
I approach problem-solving by analyzing the issue, brainstorming solutions, and collaborating with team members. My leadership skills were evident when I successfully led a project to implement a new software system.
Analyze the problem thoroughly before jumping into solutions
Brainstorm potential solutions and evaluate their feasibility
Collaborate with team members to gather different perspectives and insights
Communicat...
Get interview-ready with Top TCS Interview Questions
I applied via TCS and was interviewed in Dec 2024. There was 1 interview round.
Hash technology is a method used to convert data into a fixed-size string of characters, typically used for data security and integrity.
Hash technology uses algorithms to generate a unique fixed-size string of characters from input data.
It is commonly used for data security, password storage, digital signatures, and data integrity verification.
Examples of hash algorithms include MD5, SHA-1, and SHA-256.
Blockchain is a decentralized, distributed ledger technology used to securely record transactions across multiple computers.
Decentralized database
Consensus mechanism
Immutable record of transactions
Cryptographic security
Smart contracts
Examples: Bitcoin, Ethereum
DML stands for Data Manipulation Language, used to manage data in a database.
DML is a subset of SQL (Structured Query Language) used to insert, update, delete, and retrieve data in a database.
Examples of DML commands include INSERT, UPDATE, DELETE, and SELECT.
DML is essential for managing and manipulating data within a database system.
Binary to decimal conversion involves multiplying each digit by 2 raised to the power of its position.
To convert binary to decimal, start from the rightmost digit and multiply each digit by 2 raised to the power of its position.
Add all the results together to get the decimal equivalent.
For example, to convert binary 1011 to decimal: 1*2^3 + 0*2^2 + 1*2^1 + 1*2^0 = 11.
Iterate through array and compare each element to find the maximum number.
Iterate through the array using a loop.
Compare each element to a variable storing the current maximum number.
Update the variable if a larger number is found.
Return the maximum number at the end.
Basic HTML code for inserting image and creating a table
Use <img> tag to insert an image with src attribute
Use <table>, <tr>, <td> tags to create a table structure
Specify image source and table content within respective tags
I applied via campus placement at Vellore Institute of Technology (VIT) and was interviewed in Dec 2024. There were 2 interview rounds.
The 4 pillars of C++ are encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation: Bundling data and methods that operate on the data into a single unit (class).
Inheritance: Creating new classes from existing classes, inheriting their attributes and methods.
Polymorphism: Ability to present the same interface for different data types.
Abstraction: Hiding complex implementation details and showing only the
Normalization in SQL is the process of organizing data in a database to reduce redundancy and improve data integrity.
Normalization involves breaking down a database into smaller, more manageable tables and defining relationships between them.
It helps in reducing data redundancy by storing data in a structured and organized manner.
Normalization ensures data integrity by preventing anomalies such as insertion, update, an...
Abstract class is a class that cannot be instantiated and may contain abstract methods.
Cannot be instantiated directly
May contain abstract methods that must be implemented by subclasses
Used to define a common interface for a group of related classes
Pseudo code for prime number is a simple algorithm to determine if a given number is prime or not.
Start by checking if the number is less than 2, if so it is not prime
Then iterate from 2 to the square root of the number and check if it is divisible by any number in that range
If it is not divisible by any number, then it is a prime number
Create a login page using HTML, CSS, and JS
Use HTML for structure and form elements
Style the page using CSS for layout and design
Implement client-side validation using JavaScript
Handle form submission and authentication using JS
I applied via campus placement at Vellore Institute of Technology (VIT) and was interviewed in Dec 2024. There were 3 interview rounds.
TCS (Tata Consultancy Services) is an Indian multinational IT services and consulting company.
TCS is one of the largest IT services companies in the world.
It is a part of the Tata Group, a conglomerate in India.
TCS offers services in areas such as IT consulting, software development, and business process outsourcing.
The company has a global presence with offices in multiple countries.
TCS is known for its innovation and
I have experience in organizing and leading team-building activities.
Organized a company retreat focused on team bonding and communication
Led a team-building workshop on problem-solving and collaboration
Planned a volunteer day for the team to give back to the community
The duration of TCS interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 8.5k interviews
Interview experience
Anonymously discuss salaries, work culture, and many more
Get Ambitionbox App
based on 89.7k reviews
Rating in categories
System Engineer
1.1L
salaries
| ₹1 L/yr - ₹9 L/yr |
IT Analyst
66.7k
salaries
| ₹5.1 L/yr - ₹16 L/yr |
AST Consultant
51.5k
salaries
| ₹8 L/yr - ₹25 L/yr |
Assistant System Engineer
29.8k
salaries
| ₹2.2 L/yr - ₹5.8 L/yr |
Associate Consultant
29.4k
salaries
| ₹9 L/yr - ₹32 L/yr |
Amazon
Wipro
Infosys
Accenture