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.
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.
Technical Interview round with questions on DSA and OOPS concepts.



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.
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.



If the given string is: STR = "abcde". You have to print the string "edcba".
Try to solve the problem in O(1) space complexity.
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)



‘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.
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
}What is Encapsulation?
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.
What is Polymorphism?
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.
What is multiple inheritance in C++?
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.
Typical Managerial round with behavioral problems.
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?
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
Which keyword is used for inheritance?