i
TCS
Filter interviews by
I applied via Campus Placement and was interviewed in Jan 2024. There was 1 interview round.
An object in C++ is a self-contained entity that consists of data and functions to manipulate that data.
Objects are instances of classes in C++
Objects can have attributes (data members) and methods (member functions)
Objects can be created dynamically using the 'new' keyword
Example: class Car { int speed; void accelerate(); }; Car myCar;
A function is a block of code that performs a specific task. A function call is when the function is executed.
Functions are reusable blocks of code that can be called multiple times in a program.
Function calls involve providing the function name followed by parentheses, which may contain arguments.
Functions can return values or perform actions without returning a value.
Inheritance in C++ allows a class to inherit properties and behaviors from another class.
Allows a class to inherit properties and behaviors from another class
Derived class can access all public and protected members of the base class
Supports single and multiple inheritance
Example: class Car inherits from class Vehicle
C language has 5 basic data types: int, float, double, char, and void.
int - used for integer values (e.g. 5, -10)
float - used for floating-point values (e.g. 3.14, -0.5)
double - used for double-precision floating-point values (e.g. 3.14159, -0.12345)
char - used for single characters (e.g. 'a', 'B')
void - used to indicate that a function does not return a value
OPP stands for Object-oriented Programming. It is a programming paradigm based on the concept of objects.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Inheritance: Ability of a class to inherit properties and behavior from another class.
Polymorphism: Ability to present the same interface for different data types.
Abstraction: Hiding the complex implementation details and showing on
I applied via Naukri.com and was interviewed in Oct 2023. There were 3 interview rounds.
I applied via Naukri.com and was interviewed in Apr 2022. There were 3 interview rounds.
What people are saying about TCS
I applied via Referral and was interviewed in Sep 2020. There were 4 interview rounds.
C# concepts including abstraction, interface, abstract method, abstract class, polymorphism, encapsulation, inheritance, and serialization.
Abstraction: hiding implementation details
Interface: defining a contract for behavior
Abstract method: method without implementation
Abstract class: class with one or more abstract methods
Polymorphism: ability of objects to take on multiple forms
Encapsulation: bundling data and behavi...
Switch case is used for multiple conditions while if else is for binary conditions. Sorting can be done using various algorithms.
Switch case is faster than if else for multiple conditions
If else is more readable for binary conditions
Sorting can be done using bubble sort, insertion sort, quick sort, etc.
Example code for bubble sort: for(i=0;i
Difference between compiler and interpreter with a coding challenge
Compiler translates the entire code into machine language before execution while interpreter translates line by line during execution
Compiler generates an executable file while interpreter does not
Compiler is faster but debugging is harder while interpreter is slower but debugging is easier
Coding challenge: Write a program to find the sum of two numbers
I applied via Naukri.com and was interviewed in Mar 2021. There was 1 interview round.
I applied via Company Website and was interviewed in Feb 2021. There was 1 interview round.
based on 2 interviews
Interview experience
based on 124 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