i
TCS
Filter interviews by
OOP concepts include encapsulation, inheritance, polymorphism, and abstraction, forming the foundation of object-oriented programming.
Encapsulation: Bundling data and methods that operate on the data within a single unit (class). Example: A class 'Car' with attributes like 'color' and methods like 'drive()'.
Inheritance: Mechanism where one class inherits properties and behaviors from another. Example: 'ElectricCar...
Exception handling is a programming construct that manages errors and exceptional conditions during code execution.
It allows developers to define a response to runtime errors, preventing program crashes.
Common keywords include 'try', 'catch', 'finally', and 'throw'.
Example: In Java, 'try' block contains code that may throw an exception, while 'catch' handles the exception.
It enhances code readability and maintaina...
OOPs (Object-Oriented Programming) is a programming paradigm based on objects and classes, promoting code reusability and modularity.
Encapsulation: Bundling data and methods that operate on the data within one unit (e.g., a class).
Inheritance: Mechanism to create a new class using properties and methods of an existing class (e.g., a 'Dog' class inheriting from an 'Animal' class).
Polymorphism: Ability to present th...
To count words in a string, split the string by spaces and count the resulting elements.
Use the split() method in programming languages like Python: 'string.split()'.
Example: 'Hello world'.split() returns ['Hello', 'world'], which has 2 words.
Trim the string first to avoid counting empty words: ' Hello world '.strip().split()
Consider punctuation: 'Hello, world!' should still count as 2 words.
What people are saying about TCS
Compile-time polymorphism is resolved during compilation, while run-time polymorphism is resolved during execution.
Compile-time polymorphism is achieved through method overloading and operator overloading.
Example of compile-time polymorphism: Method overloading in Java.
Run-time polymorphism is achieved through method overriding.
Example of run-time polymorphism: Using virtual functions in C++.
The four pillars of OOP are Encapsulation, Abstraction, Inheritance, and Polymorphism, which enhance code organization and reusability.
Encapsulation: Bundling data and methods that operate on the data within a single unit (class). Example: A class 'Car' with properties like 'speed' and methods like 'accelerate()'.
Abstraction: Hiding complex implementation details and showing only the essential features. Example: A...
ArrayList and LinkedList are two types of List implementations in Java, differing in performance and structure.
ArrayList uses a dynamic array to store elements, while LinkedList uses a doubly linked list.
ArrayList provides faster random access (O(1)) due to its array structure, whereas LinkedList has slower access time (O(n)).
Insertion and deletion are faster in LinkedList (O(1) for adding/removing at ends) compar...
Exceptions in Java are events that disrupt the normal flow of program execution, allowing for error handling.
Exceptions are objects that represent an error or an unexpected behavior in a program.
Java has a built-in exception handling mechanism using try, catch, and finally blocks.
Checked exceptions must be declared in a method's throws clause, e.g., IOException.
Unchecked exceptions, like NullPointerException, do n...
Inserting an element in an array involves shifting elements and placing the new element at the desired index.
Identify the index where you want to insert the new element.
Shift elements from that index to the right to make space.
Insert the new element at the identified index.
Example: Inserting 'apple' at index 1 in ['banana', 'cherry'] results in ['banana', 'apple', 'cherry'].
String is immutable; StringBuilder and StringBuffer are mutable, with StringBuffer being thread-safe.
String: Immutable, cannot be changed after creation. Example: String str = 'Hello'; str = str + ' World';
StringBuilder: Mutable, not synchronized, faster for single-threaded operations. Example: StringBuilder sb = new StringBuilder('Hello'); sb.append(' World');
StringBuffer: Mutable, synchronized, thread-safe but s...
I applied via Campus Placement and was interviewed in Jun 2022. There were 5 interview rounds.
The first part of your examination that might be of any company starts with aptitude test and one who has ability to solve those questions will be benifited because screening depends on the score that you get in your aptutude test.So my advise is to please spent some free time to solve aptitude questions and try to understand it.
Case 1:
If you are giving your examination for IT companies the 2nd round will be coding in which most of the questions related to strings,arrays and operations.Try to practice as many as questions and logics related to those topics.If you are from non IT/CSE then atleast try to learn c, if you feel it difficult then go for python because python does not take much time to learn but if you learn python first,then you were unable to learn other languages like java and c++ because you will be feeling more difficult to understand them.So my suggestion is thought it takes time, first learn c language and practice as many logic as you can(strings,arrays, expressions) then if we find time learn the concepts of java,python and c++.But at least try to learn either c or python such that you should be able to write a code using any one of these languages.
And in other case:
if you are giving your examination for any marketing company's then you will be going to group discussion round and if you clear that round you will be eligible for giving interview.
Data types in C include int, float, double, char, and their sizes vary. Functions are blocks of code that perform a specific task.
Data types in C include int, float, double, char, and their sizes vary
Functions are blocks of code that perform a specific task
Strings are arrays of characters
Arrays are collections of similar data types
Fibonacci series program generates a series of numbers where each number is the sum of th...
A program to count the number of deleted characters in a given name.
Create a variable to store the count of deleted characters.
Loop through each character in the name.
If the character is not present in the name, increment the count variable.
Return the count variable.
I applied via Campus Placement 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
posted on 19 Jan 2025
It is a high-level aptitude test.
Overall, there are two coding programs.
I applied via Campus Placement
Need to solve aptitude questions
posted on 16 Nov 2024
I applied via Campus Placement
Code to reverse a string using array of characters
Create an array of characters to store the input string
Use a loop to iterate through the input string and store each character in the array
Reverse the array of characters to get the reversed string
Developed a smart irrigation system using IoT technology
Researched different sensors to measure soil moisture and temperature
Implemented a microcontroller to collect data from sensors and control water flow
Designed a mobile app to remotely monitor and adjust irrigation settings
General arithmetics and algebra
MCQ and coding question
Pointers in C are variables that store memory addresses of other variables. They are used to access and manipulate data indirectly.
Pointers are declared using the * symbol.
They can be used to pass variables by reference to functions.
Pointers can be used to dynamically allocate memory using functions like malloc().
Examples of data types in C include int, float, char, and double.
int: used for storing integer values (e.g. age = 25)
float: used for storing floating-point numbers (e.g. height = 5.8)
char: used for storing single characters (e.g. grade = 'A')
double: used for storing double-precision floating-point numbers (e.g. salary = 50000.50)
Always be prepared by mastering the fundamental basics.
A pointer is a variable that stores the memory address of another variable.
Pointers are used to indirectly access and manipulate data in memory.
They are often used in programming languages like C and C++.
Example: int *ptr; // declaring a pointer to an integer variable
I am a recent graduate with a degree in Computer Science, passionate about technology and eager to learn and grow in the field of system engineering.
Recent graduate with a degree in Computer Science
Passionate about technology and eager to learn and grow
Interested in pursuing a career in system engineering
I appeared for an interview in Mar 2025, where I was asked the following questions.
SQL commands are categorized into DML for data manipulation and DDL for database structure definition.
DML (Data Manipulation Language): Used for managing data within schema objects. Examples include SELECT, INSERT, UPDATE, DELETE.
SELECT: Retrieves data from one or more tables. Example: SELECT * FROM employees;
INSERT: Adds new records to a table. Example: INSERT INTO employees (name, age) VALUES ('John Doe', 30);
UPDATE:...
Accidentally deleting a production database table requires immediate action to restore data and prevent further issues.
Assess the situation: Determine the extent of the deletion and its impact on the application.
Check backups: Look for the most recent backup of the database to restore the deleted table.
Use transaction logs: If available, utilize transaction logs to recover the deleted data.
Notify stakeholders: Inform r...
When encountering a problem, I analyze the issue, seek solutions, and learn from the experience to improve future responses.
Identify the Problem: I first clarify the issue by gathering all relevant information. For example, if a system is down, I check logs and error messages.
Research Solutions: I look for documentation, online resources, or consult with colleagues to find potential solutions. For instance, I might ref...
Easy questions aptitude
Medium Difficulty process
SDLC (Software Development Life Cycle) is a process used by software development teams to design, develop, and test high-quality software.
SDLC consists of several phases including planning, analysis, design, implementation, testing, and maintenance.
Each phase has its own set of activities and deliverables to ensure the successful completion of the project.
Examples of SDLC models include Waterfall, Agile, and DevOps.
SDL...
Handling negative feedback involves active listening, reflection, and constructive response to improve performance and relationships.
Listen actively to understand the feedback without interrupting.
Reflect on the feedback to identify areas for improvement.
Respond constructively, thanking the person for their input.
Implement changes based on the feedback to show growth.
Follow up with the person to discuss improvements an...
I applied via Campus Placement
Basic Analytics questions (Similar to CAT) followed by few Algorithmic questions
I want to join TCS for its innovative projects, growth opportunities, and commitment to employee development and community impact.
TCS is a leader in technology and innovation, providing exposure to cutting-edge projects.
The company's strong emphasis on employee training and development aligns with my career goals.
TCS has a diverse work culture that promotes collaboration and learning from experienced professionals.
The ...
Some of the top questions asked at the TCS Assistant System Engineer Trainee interview -
The duration of TCS Assistant System Engineer Trainee interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 248 interview experiences
Difficulty level
Duration
based on 729 reviews
Rating in categories
System Engineer
1.1L
salaries
| ₹3.9 L/yr - ₹8.3 L/yr |
IT Analyst
65.4k
salaries
| ₹7.8 L/yr - ₹14.5 L/yr |
AST Consultant
53.7k
salaries
| ₹12 L/yr - ₹20.6 L/yr |
Assistant System Engineer
33.2k
salaries
| ₹2.4 L/yr - ₹6.3 L/yr |
Associate Consultant
33.1k
salaries
| ₹16.2 L/yr - ₹28.1 L/yr |
Amazon
Wipro
Infosys
Accenture