i
TCS
Filter interviews by
Print repeating elements in an array of strings
Iterate through the array and use a hashmap to store the frequency of each element
Print elements with frequency greater than 1
I applied via Campus Placement and was interviewed in May 2024. There were 2 interview rounds.
Basic very easy quantitative, verbal, logical apti. 1 easy coding and 1 medium coding. if you clear only apti-ninja, 1 coding- digital, both coding-prime
I am proficient in C++, Java, and Python, but my language of preference is Python.
Proficient in C++, Java, and Python
Prefer Python for its readability and versatility
Examples: C++ for performance-critical tasks, Java for Android development, Python for data analysis
Monkey patching is a technique in programming where existing code is changed or extended at runtime.
Monkey patching involves modifying or adding new methods to existing classes or modules.
It is often used in dynamic languages like Python or Ruby to alter behavior without modifying the original source code.
Example: Adding a new method to a built-in class in Python to customize its functionality.
Use the os module to delete a file in Python.
Import the os module
Use os.remove() function to delete the file
Provide the file path as argument to os.remove() function
GIL stands for Global Interpreter Lock in Python, which is a mutex that protects access to Python objects.
GIL is a mechanism used in CPython to ensure that only one thread executes Python bytecode at a time.
It can limit the performance of multi-threaded Python programs, as only one thread can execute Python code at a time.
GIL is specific to CPython and does not apply to other Python implementations like Jython or IronP
Function in Python is a block of reusable code that performs a specific task.
Functions are defined using the 'def' keyword followed by the function name and parentheses.
Functions can take parameters and return values.
Syntax: def function_name(parameters):
pip is a package management system used to install and manage software packages written in Python.
pip is included by default with Python installations since Python 3.4.
It allows you to easily install, uninstall, and manage Python packages.
You can use pip to install packages from the Python Package Index (PyPI) or from other sources.
Example: 'pip install numpy' installs the numpy package.
Merge sort is a popular sorting algorithm that divides the array into two halves, sorts them separately, and then merges them back together.
Divide the array into two halves recursively until each subarray has only one element
Merge the sorted subarrays back together in a sorted manner
Time complexity of merge sort is O(n log n)
Example: def merge_sort(arr): ...
C is a procedural programming language while C++ is an object-oriented programming language.
C is a procedural programming language while C++ is a combination of procedural and object-oriented programming.
C does not support classes and objects, while C++ does.
C does not have features like inheritance, polymorphism, and encapsulation which are present in C++.
C++ has additional features like templates and exception handli
Hashmaps are data structures that store key-value pairs and allow for efficient retrieval of values based on keys.
Hashmaps are also known as dictionaries or associative arrays.
Keys in a hashmap must be unique, but values can be duplicated.
Example: {"apple": 5, "banana": 3, "orange": 7}
Linear search algorithm in Python is a simple search algorithm that sequentially checks each element in a list until a match is found or the whole list has been searched.
Iterate through each element in the list
Compare the current element with the target value
Return the index if a match is found, otherwise return -1
What people are saying about TCS
I applied via Campus Placement
Tcs have some favourite topics of aptitude from which they asks generally
A palindrome number is the same when read forwards and backwards.
Convert the number to a string to easily check for palindrome
Reverse the string and compare it with the original string to check for palindrome
If the reversed string is equal to the original string, then the number is a palindrome
I applied via Campus Placement and was interviewed in Jun 2024. There were 2 interview rounds.
Git is a version control system that tracks changes in code, while GitHub is a platform for hosting and collaborating on Git repositories.
Git is a distributed version control system used to track changes in code.
GitHub is a web-based platform for hosting Git repositories and collaborating with others.
To use Git, you can initialize a repository, add files, commit changes, create branches, merge branches, and push change...
Runtime polymorphism is the ability of a function to behave differently based on the object it is called with at runtime.
Runtime polymorphism is achieved through method overriding in object-oriented programming.
It allows a subclass to provide a specific implementation of a method that is already provided by its superclass.
The actual method that gets called is determined by the type of object at runtime.
Example: Animal ...
Program using runtime polymorphism to find area of square, circle, and rectangle.
Create a base class 'Shape' with a virtual function 'calculateArea'.
Derive classes 'Square', 'Circle', and 'Rectangle' from 'Shape' class.
Override 'calculateArea' function in each derived class to calculate area of respective shape.
Get interview-ready with Top TCS Interview Questions
NQT Exam with 2 sections a Normal section and advanced section
2 question of one medium level and another hard
OOP is a programming paradigm based on the concept of objects, which can contain data in the form of fields and code in the form of procedures.
OOP focuses on creating objects that interact with each other to solve problems.
Objects have attributes (data) and methods (functions) that define their behavior.
Encapsulation, inheritance, and polymorphism are key principles of OOP.
Example: In a car simulation program, a 'Car' ...
To create a table in SQL, you can use the CREATE TABLE statement.
Use the CREATE TABLE statement followed by the table name and column definitions
Specify the data type for each column
Add any constraints such as primary key or foreign key
Example: CREATE TABLE employees (id INT PRIMARY KEY, name VARCHAR(50), department_id INT)
My weakness is that I tend to be overly critical of my own work, which can sometimes lead to self-doubt.
I have a tendency to overanalyze my work and focus on minor details
I often struggle with perfectionism and have a hard time accepting anything less than perfect
I am working on improving my self-confidence and learning to trust in my abilities
I applied via campus placement at Sathyabama University and was interviewed in Jun 2024. There were 2 interview rounds.
I am a highly skilled and experienced Ninja with expertise in stealth, combat, and agility.
Trained in various martial arts and weapons
Specialize in covert operations and infiltration
Known for quick reflexes and precision strikes
My favorite programming language is Python, and I am also comfortable using Java, C++, and JavaScript.
Favorite language: Python
Comfortable using: Java, C++, JavaScript
OOP is a programming paradigm based on the concept of objects, which can contain data in the form of fields and code in the form of procedures.
Encapsulation: Objects can encapsulate data and behavior within a single unit.
Inheritance: Objects can inherit attributes and methods from parent classes.
Polymorphism: Objects can take on multiple forms and behave differently based on their specific type.
Some fundamental questions to assess communication skills include asking about past experiences, conflict resolution, active listening, and clarity in conveying information.
Can you provide an example of a time when you effectively communicated with a team to achieve a common goal?
How do you handle conflicts or disagreements in a professional setting?
Describe a situation where you had to actively listen to someone's con...
Yes, I am comfortable with relocation as I am open to new opportunities and experiences.
I am open to new opportunities and experiences
I have relocated for previous jobs and have adapted well to new environments
I am flexible and willing to relocate for the right opportunity
Aptitude test consist of both reasoning and verbal
2coding quest easy,medium
Tcs take test from online/offline both that test is k/a tcs nqt
This coding round is also included in nqt test
Basic arithmetic, logical reasoning, and coding aptitude
A program to find prime numbers in a given range.
Iterate through numbers in the given range
Check if each number is divisible by any number other than 1 and itself
If not divisible, it is a prime number
I chose IT from Civil background due to my interest in technology and problem-solving skills.
Interest in technology and computers
Strong problem-solving skills
Opportunities for growth and advancement in IT field
Ability to apply engineering principles to IT projects
I learned coding through online courses, coding bootcamps, and self-study.
Took online courses on platforms like Coursera, Udemy, and Codecademy
Attended a coding bootcamp to gain hands-on experience and mentorship
Self-studied using resources like books, tutorials, and coding challenges
Yes, I have a certification in project management.
Certified in Project Management Professional (PMP)
Completed a certification program in Agile methodologies
Received a certification in Six Sigma
The duration of TCS Ninja interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 164 interviews
5 Interview rounds
based on 30 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