Upload Button Icon Add office photos
Engaged Employer

i

This company page is being actively managed by Tech Mahindra Team. If you also belong to the team, you can get access from here

Tech Mahindra Verified Tick

Compare button icon Compare button icon Compare

Filter interviews by

Clear (1)

Tech Mahindra SDE-2 Interview Questions and Answers

Updated 31 May 2022

Tech Mahindra SDE-2 Interview Experiences

1 interview found

SDE-2 Interview Questions & Answers

user image Anonymous

posted on 31 May 2022

I was interviewed before May 2021.

Round 1 - Telephonic Call 

(1 Question)

Round duration - 30 minutes
Round difficulty - Medium

  • Q1. 

    Remove Consecutive Duplicates Problem Statement

    Given a string S, your task is to recursively remove all consecutive duplicate characters from the string.

    Input:

    String S

    Output:

    Output string

    Constr...

  • Ans. 

    Recursively remove consecutive duplicate characters from a string.

    • Use recursion to check if the current character is the same as the next character, if so, skip the next character

    • Base case: if the string is empty or has only one character, return the string

    • Recursive case: if the current character is the same as the next character, call the function recursively with the string excluding the next character

  • Answered by AI
Round 2 - Face to Face 

(1 Question)

Round duration - 90 minutes
Round difficulty - Easy

  • Q1. 

    Reverse String Operations Problem Statement

    You are provided with a string S and an array of integers A of size M. Your task is to perform M operations on the string as specified by the indices in array A...

  • Ans. 

    Perform a series of reverse string operations on a given string based on specified indices.

    • Iterate through the array of indices and reverse the substring of the string based on the given indices.

    • Ensure to reverse the substring from the starting index to len(S) - starting index - 1.

    • Continue the operations in the sequence specified by the array of indices to get the final string.

  • Answered by AI
Round 3 - HR 

Round duration - 50 minutes
Round difficulty - Medium

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - 2 in BangaloreEligibility criteria60%Tech Mahindra interview preparation:Topics to prepare for the interview - Java, Data Structures, Oops Concept, Angular, Basic fundamental of Computer ScienceTime required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : Prepare well for resume & confidence for basic part of CS.
Tip 2 : Good knowledge of skills set which mentioned in CV.
Tip 3 : Explain about projects which you have worked earlier & your roles and responsibilities.

Application resume tips for other job seekers

Tip 1 : Mentioned all the skills & certificate till date update your resume every 3 month's. 
Tip 2 : Proper skills set with project explanation and duration of project which you have worked on

Final outcome of the interviewSelected

Skills evaluated in this interview

Interview questions from similar companies

SDE-2 Interview Questions & Answers

Genpact user image Anonymous

posted on 17 May 2022

I was interviewed before May 2021.

Round 1 - Coding Test 

(1 Question)

Round duration - 60 minutes
Round difficulty - Easy

It is online round and it was conducted around 11 AM on campus. Difficulty was medium. 2 coding questions were asked. One question is based on arrays(easy) and the other question is based on usage of oops concepts like Inheritance, polymorphism. Everything went smooth.

  • Q1. 

    Subarray With Given Sum Problem Statement

    Given an array ARR of N integers and an integer S, determine if there exists a contiguous subarray within the array with a sum equal to S. If such a subarray exis...

  • Ans. 

    Given an array of integers, find a subarray with a given sum S.

    • Use a sliding window approach to find the subarray with the given sum.

    • Keep track of the current sum and adjust the window based on the sum.

    • Return the start and end indices of the subarray if found, otherwise return [-1, -1].

  • Answered by AI
Round 2 - Video Call 

(4 Questions)

Round duration - 50 minutes
Round difficulty - Medium

Round started with self introduction and discussion of project. Everything went fine.
Note: we didn't have hr round due to time constraint. You can expect hr round.

  • Q1. 

    Find the Duplicate Number Problem Statement

    Given an integer array 'ARR' of size 'N' containing numbers from 0 to (N - 2). Each number appears at least once, and there is one number that appears twice. Yo...

  • Ans. 

    Find the duplicate number in an array of integers from 0 to (N-2).

    • Iterate through the array and keep track of the frequency of each number using a hashmap.

    • Return the number with a frequency greater than 1 as the duplicate number.

  • Answered by AI
  • Q2. Can you explain the concept of normalization and its types?
  • Ans. 

    Normalization is the process of organizing data in a database to reduce redundancy and improve data integrity.

    • Normalization is used to eliminate data redundancy and ensure data integrity in a database.

    • There are different normal forms such as 1NF, 2NF, 3NF, BCNF, and 4NF.

    • Each normal form has specific rules that must be followed to ensure data is properly organized.

    • Normalization helps in reducing data anomalies and incon...

  • Answered by AI
  • Q3. Can you explain the ACID properties in the context of database management systems?
  • Ans. 

    ACID properties are essential characteristics of a transaction in a database management system.

    • Atomicity ensures that either all operations in a transaction are completed successfully or none of them are.

    • Consistency ensures that the database remains in a valid state before and after the transaction.

    • Isolation ensures that the execution of multiple transactions concurrently does not interfere with each other.

    • Durability e...

  • Answered by AI
  • Q4. Can you explain the concepts of Object-Oriented Programming (OOP) with real-life examples?
  • Ans. 

    OOP is a programming paradigm based on the concept of objects, which can contain data and code to manipulate that data.

    • OOP focuses on creating objects that interact with each other to solve complex problems.

    • Encapsulation: Objects can hide their internal state and require interactions through well-defined interfaces. Example: A car object with methods like start(), stop(), accelerate().

    • Inheritance: Objects can inherit a...

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - 2 in BangaloreEligibility criteriaAbove 7cgpaGenpact interview preparation:Topics to prepare for the interview - Data Structures and Algorithms, Operating systems, DBMS, Computer Networks, OOPSTime required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : Don't get frustrated if not selected, keep believing yourself.
Tip 2 : Prepare data structures and algorithms well. Practice coding daily. OOPS in any programming language will do. Prefer quality of codes to quantity.
Tip 3 : If possible do a project on full stack development.

Application resume tips for other job seekers

Tip 1 : Keep it simple and try to adjust everything in one page. As a fresher it is better if you can have 2 projects in your cv.
Tip 2 : Don't add unnecessary details such as parents details.

Final outcome of the interviewSelected

Skills evaluated in this interview

SDE-2 Interview Questions & Answers

TCS user image Anonymous

posted on 15 Sep 2021

I was interviewed before Sep 2020.

Round 1 - Coding Test 

(1 Question)

Round duration - 360 minutes
Round difficulty - Hard

Timing- Any 6 hours of my choice in the 24 hour window. (10:00 p.m. to 4:00 a.m. I selected)
Environment was very friendly and easy to use.
No significant activity.
This was the only coding round.

  • Q1. 

    Prime Time Again Problem Statement

    You are given two integers DAY_HOURS and PARTS. The integer 'DAY_HOURS' represents the number of hours in a day, and the day can be divided into 'PARTS' equal parts. You...

  • Ans. 

    Find total instances of equivalent prime groups in a day divided into equal parts.

    • Iterate through each part of the day and check for prime pairs in different parts

    • Use a helper function to check if a number is prime

    • Ensure the day is evenly divided by parts and each prime group has hours from different parts

  • Answered by AI
Round 2 - Telephonic Call 

Round duration - 10-15 minutes
Round difficulty - Easy

Timing- 12:15 p.m. 
Environment was very good .
Not any significant activity.
The interviewer was very friendly and talked like friends.

Round 3 - HR 

Round duration - 20 minutes
Round difficulty - Medium

Timing- 12:30 p.m. to 12:45 p.m
Environment was very comfortable.
No other significant activity.
Interviewer was very good and talking very politely & friendly.

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from D Y Patil School Of Engineering Academy,Ambi.. I applied for the job as SDE - 2 in PuneEligibility criteriaAbove 6.75 CGPA, No running backlogsTata Consultancy Services (TCS) interview preparation:Topics to prepare for the interview - DBMS, Sorting Algorithms, SDLC, Computer Networks, Basics of DSATime required to prepare for the interview - 2 monthsInterview preparation tips for other job seekers

Tip 1 : Make sure what you have learnt in DSA you can do it practically by writing codes.
Tip 2 : Must have a hands-on experience in writing SQL commands.
Tip 3 : Do atleast 3-4 projects so that you have an option to explain any one of them if the interviewer asks.

Application resume tips for other job seekers

Tip 1 : Write only true data in resume. Don't bluff as you may get caught which will be very embarrassing.
Tip 2 : Have some latest technology related projects in your resume.

Final outcome of the interviewSelected

Skills evaluated in this interview

SDE-2 Interview Questions & Answers

TCS user image Anonymous

posted on 16 Sep 2021

I was interviewed in Sep 2020.

Round 1 - Coding Test 

(1 Question)

Round duration - 180 minutes
Round difficulty - Hard

Timing: 8 a.m. to 11a.m.
Environment was optimum.
No significant activity.

  • Q1. 

    Edit Distance Problem Statement

    Given two strings S and T with lengths N and M respectively, your task is to find the "Edit Distance" between these strings.

    The Edit Distance is defined as the minimum nu...

  • Ans. 

    The task is to find the minimum number of operations required to convert one string into another using delete, replace, and insert operations.

    • Use dynamic programming to solve the problem efficiently.

    • Create a 2D array to store the minimum edit distance for substrings of the two input strings.

    • Iterate through the strings and update the array based on the operations needed for each character.

    • Return the value in the bottom ...

  • Answered by AI
Round 2 - Video Call 

Round duration - 30 minutes
Round difficulty - Medium

Timing: 12:00 p.m. to 12:30 p.m.
The environment was quite good.
No significant activity.
Interviewers were very friendly. They were behaving like friends.

Round 3 - HR 

Round duration - 15 minutes
Round difficulty - Easy

Timing: 3:00 p.m. to 3:20 p.m.
Environment was very good.
No significant activity was monitored.
HR was very good and friendly.

Interview Preparation Tips

Professional and academic backgroundI completed Civil Engineering from Heritage Institute of Technology. I applied for the job as SDE - 2 in KolkataEligibility criteriaAbove 6.5 CGPATata Consultancy Services (TCS) interview preparation:Topics to prepare for the interview - Data Structures, Dynamic Programming, OOPS, Computer Networks, System DesignTime required to prepare for the interview - 7 monthsInterview preparation tips for other job seekers

Tip 1 : Do minimum 3 projects
Tip 2 : Prepare every topic of DSA for interview
Tip 3 : Hands on experience in performing MySql commands

Application resume tips for other job seekers

Tip 1 : Be precise and don't bluff
Tip 2 : Learn atleast 2 programming languages
Tip 3 : Do projects on latest technologies like Artificial Intelligence and Machine Learning

Final outcome of the interviewSelected

Skills evaluated in this interview

SDE-2 Interview Questions & Answers

TCS user image Anonymous

posted on 16 Sep 2021

I was interviewed in Dec 2020.

Round 1 - Coding Test 

(1 Question)

Round duration - 30 minutes
Round difficulty - Medium

It was in the morning about 10:00AM-10:40AM. The platform used for this round was hackerrank. There are 15 MCQ's which cover portions of Aptitude, Data Structures, DBMS, SQL

  • Q1. 

    Minimum Operations Problem Statement

    You are given an array 'ARR' of size 'N' consisting of positive integers. Your task is to determine the minimum number of operations required to make all elements in t...

  • Ans. 

    Minimum number of operations to make all elements in the array equal by performing addition, subtraction, multiplication, or division.

    • Iterate through the array to find the maximum and minimum values.

    • Calculate the difference between the maximum and minimum values.

    • The minimum number of operations needed is the difference between the maximum and minimum values.

  • Answered by AI
Round 2 - HR 

Round duration - 15 minutes
Round difficulty - Easy

It was in the night around 7:00PM-7:20PM. Platform used for this round was skype. Interviewer was very serious while taking my interview.

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - 2 in DelhiEligibility criteriaAbove 7 CGPATata Consultancy Services (TCS) interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, OOPS, Data Science, Aptitude, DBMSTime required to prepare for the interview - 3.5 monthsInterview preparation tips for other job seekers

Tip 1 : Practice as much as you can
Tip 2 : Try to get a good hold in Data Structures
Tip 3 : Do atleast 2 projects

Application resume tips for other job seekers

Tip 1 : It should not be too long or too short.
Tip 2 : Each skill should be mentioned properly.

Final outcome of the interviewSelected

Interview Preparation Tips

Round: Resume Shortlist
Experience: A telephonic of technical round basics about C concepts and Embedded C Concepts in order to call for next round .

I was interviewed in Apr 2017.

Interview Questionnaire 

2 Questions

  • Q1. Java questions...
  • Q2. Tell me about urself and about us family and all
  • Ans. 

    I am a software developer with a passion for coding and problem-solving. My family is supportive and has always encouraged my career in tech.

    • Experienced software developer

    • Passionate about coding and problem-solving

    • Supportive family that encourages my career in tech

  • Answered by AI

Interview Preparation Tips

Round: Test
Experience: Easy questions are there
Duration: 1 hour
Total Questions: 90

Round: Group Discussion
Experience: 12 members are there only 9 got selected
Tips: Be confident in urself and specially work in Communication skills
Duration: 15 minutes

Round: Technical Interview
Experience: Asking all the concepts of Java like oops collections threads
Tips: Prepare well on Java

Round: HR Interview
Experience: Everything was Gud but due to my certificate problem I got rejected.. Otherwise everything is good.
Tips: Be confident

College Name: C. V. Raman College of Engineering

Interview Preparation Tips

College Name: Vidyalankar Institute Of Technology

Interview Questionnaire 

11 Questions

  • Q1. Hobbies: Drawing. Asked about drawing and pencil shading. Draw in next 5 mins something great to impress me else rejected
  • Q2. Sketch my face
  • Q3. If you are told to do a job of a peon for the company will you?
  • Q4. Remove all the pcs from the lab and keep in other lab RIGHT NOW?
  • Ans. 

    Yes, I can remove all the pcs from the lab and keep them in another lab right now.

    • Ensure all the necessary equipment and tools are available for the move

    • Coordinate with the lab staff to ensure a smooth transition

    • Label and document each PC for easy identification and setup in the new lab

    • Ensure proper packaging and handling to prevent any damage during the move

  • Answered by AI
  • Q5. Impress me with your talents
  • Q6. If a person asks you on a construction site to pick up bricks will you?
  • Q7. How crazy are you?
  • Q8. Show me how crazy are you in next 5 mins?
  • Q9. Write down Fibonacci series and also explain pseudo code for it?
  • Ans. 

    Fibonacci series is a sequence of numbers where each number is the sum of the two preceding ones.

    • The first two numbers of the series are always 0 and 1

    • The next number is the sum of the previous two numbers

    • The series goes on infinitely: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, ...

    • Pseudo code: 1. Initialize variables a=0, b=1, c=0 2. Print a and b 3. Repeat steps 4-6 until desired number of terms 4. c=a+b 5. Pr

  • Answered by AI
  • Q10. Write algorithm for matrix multiplication?
  • Ans. 

    Algorithm for matrix multiplication

    • Create a result matrix with dimensions of the two input matrices

    • Iterate through each row and column of the result matrix

    • For each element in the result matrix, multiply corresponding row in first matrix with corresponding column in second matrix

    • Add the products obtained in the previous step to get the final value for the element

  • Answered by AI
  • Q11. Explain your project and which algorithm you used in it. Why that algorithm?
  • Ans. 

    I worked on a project that involved sentiment analysis of customer reviews using Naive Bayes algorithm.

    • The project involved collecting customer reviews from various sources.

    • Preprocessing the data by removing stop words, stemming, and tokenizing.

    • Used Naive Bayes algorithm for sentiment analysis.

    • The algorithm was chosen because of its simplicity and effectiveness in text classification tasks.

    • The accuracy of the model was

  • Answered by AI

Interview Preparation Tips

Round: HR Interview
Experience: Confused

If they say do you have any questions?
NEVER ASK about your performance in that round.

Round: Technical Interview
Experience: Good
Tips: Interview depends on your basic knowledge

Skills: Presence Of Mind, Technical Skills, Analytical Skills
College Name: Vidyalankar Institute Of Technology
Motivation: Got rejected for TCS aptitude.
Funny Moments: Whole HR interview

Skills evaluated in this interview

Interview Questionnaire 

9 Questions

  • Q1. Talk about your BE project?
  • Ans. 

    Developed a web-based project management system for a construction company.

    • Used PHP and MySQL for backend development

    • Implemented user authentication and authorization

    • Designed a responsive UI using Bootstrap

    • Integrated Google Maps API for location tracking

    • Enabled file uploads and downloads for project documents

  • Answered by AI
  • Q2. If you belong to EXTC, then why IT?
  • Ans. 

    EXTC and IT are not mutually exclusive fields. My knowledge in EXTC complements my skills in IT.

    • My knowledge in EXTC gives me a strong foundation in electronics and communication, which are essential in the IT industry.

    • I have also gained programming skills through my coursework and projects in EXTC.

    • IT is a rapidly growing field with a lot of opportunities, and I believe my skills and knowledge make me a strong candidat...

  • Answered by AI
  • Q3. Are you ok with relocation?
  • Ans. 

    Yes, I am open to relocation for the right opportunity.

    • I am willing to relocate for a position that aligns with my career goals

    • I am excited about the prospect of exploring a new city and culture

    • I am flexible and adaptable to new environments

  • Answered by AI
  • Q4. Which languages are you familiar with?
  • Ans. 

    I am familiar with several programming languages.

    • Java

    • Python

    • C++

    • JavaScript

    • SQL

  • Answered by AI
  • Q5. BE project members and your guide
  • Q6. What/s the diffrencebetween leader and a manager
  • Ans. 

    A leader inspires and motivates while a manager plans and organizes.

    • Leaders focus on the big picture while managers focus on details

    • Leaders lead by example while managers delegate tasks

    • Leaders inspire and motivate while managers enforce rules and policies

    • Leaders are visionaries while managers are implementers

    • Examples of leaders: Steve Jobs, Martin Luther King Jr. Examples of managers: Tim Cook, COO of Apple

  • Answered by AI
  • Q7. Are you okay with relocation?
  • Ans. 

    Yes, I am open to relocation for the right opportunity.

    • I am willing to relocate for the right job opportunity

    • I am open to exploring new places and cultures

    • I understand that relocation may come with challenges, but I am prepared to face them

    • I am excited about the prospect of starting fresh in a new location

  • Answered by AI
  • Q8. What's the name of the person who took your technical interview?
  • Ans. 

    I'm sorry, I don't have that information.

    • N/A

  • Answered by AI
  • Q9. How was the TCS aptitude test?
  • Ans. 

    The TCS aptitude test was challenging but fair.

    • The test covered a wide range of topics including math, logic, and English.

    • The questions were designed to test problem-solving skills and critical thinking.

    • Time management was crucial as there were many questions to answer in a limited time.

    • Overall, the test was a good indicator of one's aptitude for software engineering.

  • Answered by AI

Interview Preparation Tips

Round: Technical Interview
Experience: pretty decent and interactive
Tips: be true, be yourself

General Tips: Do not fake a personality, be original. Avoid an answer if you have to, but , in an affirmative way.
Skills: Ability To Justify, Ability To Be Involved In Hands On Work, Ability To Deal Diplomatically, Ability To Convince
College Name: Vidyalankar Institute Of Technology
Funny Moments: The HR interviewer asked me the name of my tech interviewer.
Contribute & help others!
anonymous
You can choose to be anonymous

Recently Viewed

JOBS

Silverskills

No Jobs

INTERVIEWS

Silverskills

No Interviews

LIST OF COMPANIES

FOCUS EDUMATICS

Overview

LIST OF COMPANIES

Learning Vertos

Overview

SALARIES

Silverskills

INTERVIEWS

DCM Shriram

No Interviews

INTERVIEWS

DCM Shriram

No Interviews

JOBS

FOCUS EDUMATICS

No Jobs

SALARIES

Silverskills

SALARIES

FOCUS EDUMATICS

Tell us how to improve this page.

Interview Questions from Similar Companies

TCS Interview Questions
3.7
 • 10.4k Interviews
Accenture Interview Questions
3.8
 • 8.1k Interviews
Infosys Interview Questions
3.6
 • 7.5k Interviews
Wipro Interview Questions
3.7
 • 5.6k Interviews
Cognizant Interview Questions
3.7
 • 5.6k Interviews
Capgemini Interview Questions
3.7
 • 4.8k Interviews
HCLTech Interview Questions
3.5
 • 3.8k Interviews
Genpact Interview Questions
3.8
 • 3.1k Interviews
LTIMindtree Interview Questions
3.8
 • 2.9k Interviews
IBM Interview Questions
4.0
 • 2.3k Interviews
View all
Software Engineer
26.3k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Senior Software Engineer
21.4k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Technical Lead
11.7k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Associate Software Engineer
5.5k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Team Lead
5k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Explore more salaries
Compare Tech Mahindra with

Infosys

3.6
Compare

Cognizant

3.7
Compare

Accenture

3.8
Compare

Wipro

3.7
Compare
Did you find this page helpful?
Yes No
write
Share an Interview