TCS iON interview experience Real time questions & tips from candidates to crack your interview

Assistant System Engineer

TCS iON
upvote
share-icon
2 rounds | 7 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 4 months
Topics: Data Structures, Algorithms, System Design, Aptitude, OOPS
Tip
Tip

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Interviewer would not be expecting the answer of every question so don't worry if you could not be able to answer any question. You must be confident while answering the question. Read the technicalities wisely which you have mentioned in your resume.

Application process
Where: Company Website
Eligibility: Above 7 CGPA
Resume Tip
Resume tip

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Interview rounds

01
Round
Easy
Video Call
Duration60 minutes
Interview date23 Nov 2021
Coding problem6

Technical Interview round with questions on DSA and OOPS concepts.

1. Swap two numbers without using Third variable.

Easy
10m average time
0/40
Asked in companies
Tata Consultancy Services (TCS)CIS - Cyber InfrastructureGenpact

You are given two numbers 'a' and 'b' as input.


You must swap the values of 'a' and 'b'.


For Example:
Input: 
'a' = 8, 'b' = 5

Output:
5 8

Explanation:
Initially, the value of 'a' and 'b' is 8 and 5, respectively.

After swapping, the value of 'a' is 5, and the value of 'b' is 8.
Problem approach

In this variation of swapping two variables without using any temporary variable, concept of addition and subtraction can be used.
var1 = var1 + var2;
var2 = var1 - var2;
var1 = var1 - var2;
In the first variable we are storing the sum of both variable. 
Then, in next step we are we are extracting the value of 1st variable by subtracting the value of 2nd variable form the sum & storing it in 2nd variable.
At last, we are extracting the original value of the 2nd variable & storing it in the 1st variable.

Try solving now

2. Reverse a string

Easy
15m average time
85% success
0/40
Asked in companies
FacebookAckoTata Consultancy Services (TCS)

You are given a string 'STR'. The string contains [a-z] [A-Z] [0-9] [special characters]. You have to find the reverse of the string.

For example:

 If the given string is: STR = "abcde". You have to print the string "edcba".
follow up:
Try to solve the problem in O(1) space complexity. 
Problem approach

This can be done by iterative swapping using two pointers. The first pointer points to the beginning of the string, whereas the second pointer points to the end. Both pointers keep swapping their elements and go towards each other. Essentially, the algorithm simulates the rotation of a string with respect to its midpoint.
Time Complexity : O(n)

Try solving now

3. Check if a number is palindrome

Easy
0/40
Asked in companies
CognizantInfosysPayPal

You're given an alphabetical string ‘S’.


Determine whether it is palindrome or not. A palindrome is a string that is equal to itself upon reversing it.


For example:
‘S’ = racecar
The reverse of ‘S’ is: racecar
Since ‘S’ is equal to its reverse. So ‘S’ is a palindrome.
Hence output will be 1.
Problem approach

One approach could be to first reverse digits of n, then compare the reverse of n with n. If both are same, then return true, else false.


Pseudo code :


reverseDigits(num)
{
	//Initialise a variable rev_num to 0
	while (num is greater than 0) {
		rev_num = rev_num * 10 + num % 10
		num = num / 10
	}
	return rev_num
}

/* Function to check if n is Palindrome*/
isPalindrome(n)
{
	// get the reverse of n
	rev_n = reverseDigits(n)

	// Check if rev_n and n are same or not.
	if (rev_n == n)
		return 1
	else
		return 0
}
Try solving now

4. OOPS Question

What is Encapsulation?

Problem approach

The wrapping up of data and functions together in a single unit is known as encapsulation. It can be achieved by making the data members' scope private and the member function’s scope public to access these data members.

5. OOPS Question

What is Polymorphism?

Problem approach

Polymorphism is defined as the ability to take more than one form. It is a feature that provides a function or an operator with more than one definition. It can be implemented using function overloading, operator overload, function overriding, virtual function.


Polymorphism is of two types :


1. Compile Time Polymorphism : 
Invokes the overloaded functions by matching the number and type of arguments. The information is present during compile-time. This means the C++ compiler will select the right function at compile time. It is achieved through function overloading and operator overloading.


2. Run Time Polymorphism : 
This happens when an object’s method is called during runtime rather than during compile time. Runtime polymorphism is achieved through function overriding. The function to be called is established during runtime.

6. OOPS Question

What is multiple inheritance in C++?

Problem approach

Multiple Inheritance is the concept of the Inheritance in C++ that allows a child class to inherit properties or behaviour from multiple base classes. Therefore, we can say it is the process that enables a derived class to acquire member functions, properties, characteristics from more than one base class.

02
Round
Easy
HR Round
Duration30 minutes
Interview date23 Nov 2021
Coding problem1

Typical Managerial round with behavioral problems.

1. Basic HR Questions

1. What project have you done in your academics?
2. Why do you want to join TCS?
3. Who is the CEO of TCS?
4. Tell me about yourself?

Problem approach

Tip 1 : The cross questioning can go intense some time, think before you speak.

Tip 2 : Be open minded and answer whatever you are thinking, in these rounds I feel it is important to have opinion.

Tip 3 : Context of questions can be switched, pay attention to the details. It is okay to ask questions in these round, like what are the projects currently the company is investing, which team you are mentoring. How all is the work environment etc.

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

Which keyword is used for inheritance?

Choose another skill to practice
Similar interview experiences
SDE - 1
2 rounds | 6 problems
Interviewed by TCS iON
1272 views
0 comments
0 upvotes
Java Developer
1 rounds | 4 problems
Interviewed by TCS iON
1952 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3097 views
0 comments
0 upvotes
company logo
System Engineer
2 rounds | 2 problems
Interviewed by Tata Consultancy Services (TCS)
2658 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Assistant System Engineer
3 rounds | 5 problems
Interviewed by Tata Consultancy Services (TCS)
1799 views
0 comments
0 upvotes
company logo
Assistant System Engineer
2 rounds | 2 problems
Interviewed by Tata Consultancy Services (TCS)
1450 views
0 comments
0 upvotes
company logo
Assistant System Engineer
2 rounds | 2 problems
Interviewed by Tata Consultancy Services (TCS)
1226 views
0 comments
0 upvotes