Tech Mahindra Pvt. Ltd interview experience Real time questions & tips from candidates to crack your interview

Software Developer

Tech Mahindra Pvt. Ltd
upvote
share-icon
3 rounds | 18 Coding problems

Interview preparation journey

expand-icon
Journey
I started my interview preparation around September/2021, I was not very confident about appearing for interviews. At the start of October/2021, Tech Mahindra visited our college and I applied for the same. The rounds were well conducted and the process was 20 days long. I felt a boost in my confidence after clearing the rounds.
Application story
Tech Mahindra was an on-campus recruitment for me. Before appearing for interviews, I prepared for aptitude questions (profit-loss, work-time, etc.) and also started preparing for core subjects (OS, DBMS, SQL, OOPS). I used online websites to get some free mock assessments. After applying, my interview was shortlisted, and I received a test link for the online assessment. This was followed by a few technical rounds.
Why selected/rejected for the role?
I got selected because I had a clear understanding of core subjects. I was able to explain all the problems asked in my technical rounds, and during my online assessment, I made sure to manage my time properly.
Preparation
Duration: 2 months
Topics: Aptitude question, Quant-questions, core subjects (DBMS, SQL, OOPS, DSA, CN, OS).
Tip
Tip

Tip 1: Have a proper time management (for OA)
Tip 2: Do proper preparation before the Online assessment
Tip 3: Give some mock assessment (freely available)

Application process
Where: Campus
Eligibility: 7 CGPA
Resume Tip
Resume tip

Tip 1: Mention skills, CGPA, and Achievement (if any)
Tip 2: Mention projects (at least one)

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 minutes
Interview date11 Jul 2021
Coding problem9

After resume shortlisting, I received a link for online assessment and the online round was 90 minutes in duration, First I needed to enter some details and capture a photo which took 5 minutes. This round has questions from comprehension, aptitude, quant, puzzles, complete sequence problems, core subject MCQs and some pseudo-code. It has only 2 coding problems and the rest questions were MCQs.

1. DBMS Question

What is Atomicity in DBMS? (Learn)

Problem approach

Tip 1: Do proper revision on DBMS
Tip 2: Prepare notes while preparing, and refer before assessments.
Tip 3: Understand the questions and options properly, all options may look similar.

2. Aptitude Question

A few images were given along with a pattern. From the provided images, determine the next image.

Problem approach

Tip 1: Try to have keen observation, the pattern is always hidden
Tip 2: If needed draw patterns.

3. Aptitude Question

A few number sequences were given along with the next possible sequence.

Problem approach

Tip 1: Try to observe the pattern of numbers and predict the next.
Tip 2: Don't guess the pattern, find and then be sure
Tip 3: Don't spend much time, keep track of time

4. Puzzles

Many questions were based on time-work, profit-loss, speed-time, blood relation, and direction-based questions (like if you walk 30 degrees north then turn to the south and then to left and then 40 degrees right and now tell in which direction you are standing compared to the starting point).

Problem approach

Tip 1: Try to use pen and paper to solve the question.
Tip 2: Solve a few questions before the assessment.

5. SQL Questions

A few query problems were given along with SQL queries to solve the problem.

Q1: Create a new table with the same structure as an existing table (Employee). (Learn)

Q2: Find the 3rd maximum salary from the employee table along with the department from the department table. (Practice)

Problem approach

Tip 1: Practice SQL queries before the interview

6. DBMS Question

What is DDL? (Learn)

Problem approach

Tip 1: Prepare notes while preparing, and refer before assessments.
Tip 2: Understand the questions and options properly.

7. OOPs Question

Difference between private, public and protected. (Learn)

Problem approach

Tip 1 : Refer OOPS concepts
Tip 2 : Read options carefully

8. Largest Element in the Array

Easy
10m average time
90% success
0/40
Asked in companies
MakeMyTripOracleMorgan Stanley

Given an array ‘arr’ of size ‘n’ find the largest element in the array.


Example:

Input: 'n' = 5, 'arr' = [1, 2, 3, 4, 5]

Output: 5

Explanation: From the array {1, 2, 3, 4, 5}, the largest element is 5.
Problem approach

Take the inputs as per the description, and call a function, this function will find max in the array.
Read the constraints and then move to a naive approach, making sure the time complexity of the code should not give TLE. Cover all base cases (if any). Always have an eye on the timer and if possible use STL is save time.

Try solving now

9. English Vocabulary Questions

Questions covered were active-passive voice, synonym-antonyms, jumble sentences, and choosing the correct word.

Problem approach

Tip 1: Do some preparation few assessment
Tip 2: Don't take too much time for this section, try to solve this section at the end

02
Round
Easy
Video Call
Duration40 minutes
Interview date18 Jul 2021
Coding problem6

After clearing the online assessment, I received a link for the technical round which was held online. Topics covered were from DBMS, SQL OOPS, and DSA mainly.

1. DBMS Question

Difference between DDL, and DML. (Learn)

Problem approach

Tip 1: Understand the question properly
Tip 2: Give examples along with differences i.e what all comes in DDL, DML

2. DBMS Question

Difference between 1NF, and 2NF. (Learn)

Problem approach

Tip 1: Understand the question properly
Tip 2: Give examples along with the difference

3. OS question

What is deadlock and how to avoid it? (Learn)

Problem approach

Tip 1: Explain the problem first followed by methods to avoid.

4. Software Engineering Question

What is the waterfall model? (Learn)

Problem approach

Tip 1: Give an explanation followed by enhancement (if any)
Tip 2: Mention the best situations to use the waterfall model.

5. Segregate Odd-Even

Moderate
25m average time
75% success
0/80
Asked in companies
AdobeLivekeeping (An IndiaMART Company)Thought Works

There is a wedding ceremony at NinjaLand. The bride and groom want everybody to play a game and thus, they have blindfolded the attendees. The people from the bride’s side are holding odd numbers and people from the groom’s side are holding the even numbers. For the game to start quickly, all the bride’s side people should come first, followed by the groom’s side people in the same order.

The attendees of the wedding with their numbers are given in the form of a Singly Linked List, arranged randomly.

A singly linked list is a type of linked list that is unidirectional; that is, it can be traversed in only one direction from head to the last node (tail).

Example:
The attendees holding numbers from 1, 4, 3 are shown: 

As the organizers are busy, you have to arrange all the people by arranging the bride’s side people first followed by the groom’s side people sequentially.

Note:
For the above example 1 -> 4 -> 3, 1 -> 3 -> 4 is the only correct answer, i.e nodes should be grouped sequentially. Hence, 3 -> 1 -> 4 is the wrong answer as we have to preserve the same order.
Problem approach

Understand the problems, ask for constraints, and discuss approaches. After discussion ask the interviewer to code the problem and later make a dry run before code execution.

Try solving now

6. OOPs Question

Difference between a class and an object. (Learn)

Problem approach

Tip 1: After difference take an example of a class and then make an object of that class.

03
Round
Easy
HR Round
Duration20 minutes
Interview date22 Jul 2021
Coding problem3

After the completion of the technical assessment, I received the link for the HR round which went 20 minutes long. The round was about my experience, preferred location, college subjects, and my school achievements.
I started with my introduction and later was asked a few questions. The round was smooth and well conducted.

1. Basic HR Question

I was asked to provide an introduction of myself.

Problem approach

Tip 1: Start with a warm intro, mention about college, hobbies, any extra achievements
Tip 2: Mention about internships (if any) else mention projects (if any)
Tip 3: Discuss a little about hobbies and interests but not much and say things aligned with the role

2. Basic HR Question

The HR asked about the technologies I am familiar with and mentioned the technologies that new joiners will work on.

Problem approach

Tip 1: Always mention your learning, without telling HR will never know. I mentioned App Dev, Web Dev and a few others.
Tip 2: I mentioned my final year project along with my contribution.
Tip 3: If any other area (internship, project, contributions) where your learning is used, try to mention

3. Basic HR Question

What are your preferred locations?

Problem approach

Tip 1: I mentioned that I would love to go to new locations.
Tip 2: If any location is on your list, do mention a reason (if any).
Tip 3: Be calm and smile.

Here's your problem of the day

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

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
Software Engineer
1 rounds | 4 problems
Interviewed by Tech Mahindra Pvt. Ltd
1910 views
1 comments
0 upvotes
SDE - Intern
2 rounds | 4 problems
Interviewed by Tech Mahindra Pvt. Ltd
1319 views
0 comments
0 upvotes
Software Engineer
2 rounds | 4 problems
Interviewed by Tech Mahindra Pvt. Ltd
0 views
0 comments
0 upvotes
Product Development Engineer
2 rounds | 5 problems
Interviewed by Tech Mahindra Pvt. Ltd
772 views
1 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Developer
5 rounds | 14 problems
Interviewed by Microsoft
4029 views
1 comments
0 upvotes
company logo
Software Developer
6 rounds | 12 problems
Interviewed by SAP Labs
2912 views
0 comments
0 upvotes
company logo
Software Developer
3 rounds | 3 problems
Interviewed by Amazon
1270 views
0 comments
0 upvotes