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

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. 

    use the LinkedHashSet (Set Interface) to retain the original insertion order of the elements into the set.

    The main factor that we must keep in mind when dealing with arrays is not the elements that have duplicates. The main problem here is removing the duplicates instead. Arrays are static data structures that are of fixed length, thus not possible to be altered. So, to delete elements from arrays, you need to create n...

  • Answered Anonymously
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. 

    Declare a string.
    Take out the length of that string.
    Loop through the characters of the string.
    Add the characters in reverse order in the new string.
    String str = "hello";

    String reverse = "";

    int length = str.length();

    for (int i = 0; i < length; i++) {

    reverse = str.charAt(i) + reverse;

    }

    System.out.println(reverse);

  • Answered Anonymously
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

Mphasis user image Anonymous

posted on 17 Dec 2021

I was interviewed in Aug 2021.

Round 1 - Video Call 

(3 Questions)

Round duration - 45 minutes
Round difficulty - Medium

Technical Interview round that lasted for about 45 minutes. Questions were based on Java, Java design Patterns and OOPS Concepts.

  • Q1. What are static methods in interfaces?
  • Ans. 

    Static methods are useful for designing utility methods since they contain method implementation that is owned by the interface and invoked using the interface name. They cannot be overridden.

  • Answered Anonymously
  • Q2. Why was a new version of Java (Java 8) needed in the first place?
  • Ans. 

    There are two primary reasons for this:
    1. Due to significant developments in hardware, Java now needs to make better use of multi-core CPUs.
    2. Make new Functional Programming (FP) features available to users.

  • Answered Anonymously
  • Q3. In how many ways can you create a singleton pattern in Java?
  • Ans. 

    There are two ways of creating a Singleton pattern.
    1. Early Instantiation : It is responsible for the creation of instance at load time.
    2. Lazy Instantiation : It is responsible for the creation of instance when required.

  • Answered Anonymously
Round 2 - Video Call 

(4 Questions)

Round duration - 60 minutes
Round difficulty - Medium

Technical Interview round that lasted for about 45 minutes. Questions were based on Spring boot and Microservices Concepts.

  • Q1. What is the difference between the Bridge Pattern and the Adapter Pattern in Java?
  • Ans. 

    The motive of the Adapter pattern is to make interfaces of one or more classes to look similar. The Bridge pattern is designed to isolate a class's interface from its implementation so we can vary or substitute the implementation without changing the client code.

  • Answered Anonymously
  • Q2. What is the difference between @RestController and @Controller in Spring Boot?
  • Ans. 

    @Controller Map of the model object to view or template and make it human readable but @RestController simply returns the object and object data is directly written in HTTP response as JSON or XML.

  • Answered Anonymously
  • Q3. What is the difference between Spring and Spring Boot?
  • Ans. 

    1. Spring framework is a java EE framework that is used to build applications. Spring Boot framework is mainly used to develop REST API’s
    2. The primary feature of the Spring framework is dependency injection. The main feature of the Spring Boot is Autoconfiguration. 
    3. The goal pf Spring is to make Java EE (Enterprise Edition) development easier, allowing developers to be more productive. Spring Boot provides the ...

  • Answered Anonymously
  • Q4. What is the difference between Monolithic and Microservices Architecture?
  • Ans. 

    Monolithic Architecture: It is "like a big container" where all the software components of an application are bundled together tightly. It is usually built as one large system and is one code-base. 
    Microservice Architecture: It involves structuring an application in the form of a cluster of small, autonomous services modeled around a business domain. The functional modules can be deployed independently, are scalab...

  • Answered Anonymously
Round 3 - HR 

(1 Question)

Round duration - 30 minutes
Round difficulty - Easy

This was a typical HR round with some standard Behavioral questions

  • Q1. Why should we hire you?
  • Ans. 

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

  • Answered Anonymously

Interview Preparation Tips

Eligibility criteriaAbove 7 CGPAMphasis interview preparation:Topics to prepare for the interview - Java, Spring Boot Framework, Data Structures, Algorithms, System Design, OOPSTime required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

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 : Do at-least 2 good projects and you must know every bit of them.

Application resume tips for other job seekers

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.

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

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

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. 

    I started with brute force method but test cases were failed due to time complexity. Use a similar approach to a sliding window. Start with an empty subarray, add elements to the subarray until the sum is less than x. If the sum is greater than x, remove elements from the start of the current subarray

  • Answered Anonymously
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. 

    Step 1: create an array of fixed size 256 as 256 ascii characters are available. Initialise all the elements of array with 0.
    Step 2: iterate over array and store the frequency of every character.
    Step 3: Iterate over the array and print the characters with frequency more than 1.
    Note: problem can be solved using maps too.

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

    Tip 1 : Explain everything clearly.
    Tip 2 : Don't use the words that you are not confident about. Interviewer might ask questions based on your answers.

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

    Tip 1 : Go through DBMS concepts thoroughly.

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

    Tip 1 : Go through oops concepts thoroughly

  • Answered Anonymously

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

Interview experience
4
Good
Difficulty level
Hard
Process Duration
Less than 2 weeks
Result
Not Selected

I was interviewed in Jan 2025.

Round 1 - Coding Test 

1. Explain about framework architecture and from that all questions derived. asked to write diagram and explain the structure.
2. Difference between class variable and instance variable.
3. what is ITestListener why used and when used in framework.
4. architecture of selenium 4 (geckodriver, chromium driver)
5. what is BDD and cucumber, how both are related to.
6. which kind of framework you go, either POM or Page factory for with testNg/junit?
7. asked to write query on sql joins and how you fetch the second lowest of salary from each department.
8. DDL, DML statements.
9. pathquery and query parameters differences(API)
10. How the responses you are validating in automation framework for Json response file.
11. status code of Https
12. serialization and deserialization difference
13. String Builder, String Buffer and String difference? which is better and which is safe to use.
14. Dropdown in selenium how you handle, how to check which is already selected?
15. multiple data provider in testng and how you pass parameter and how you retrive from excel sheet? Asked to write code!
16.what is flaky testing?
17.Asked to write first code of JDBC connecting establishment with framework.
18. Code execution: input ="aabbabcbb"; output = a:3 , b:5, c:1 like this if they give name also it should count. Tip : HashMap you can write the code.
19. Code execution: a[]={1,2,3,4,0,0,0} b={5,6,7} output need to print as remove all 0's from first array and replace 1,2,3,4 with 5,6,7 some crazy questions.
20. Git cmds and CI/CD tool.

Round 2 - Coding Test 

1. asked about architecture and where you used oops concepts?
2. abstract class and interfaces
3. select drop down all options
4. find scrape links from webpage write the code
5. asked for writing xpath for any element random website.
6. asked about following-sibling, descendent and preceding-sibling, normalise-space locators.
7. jdbc connection code.
8. API JSON file - how you done validation in automation testing.

Round 3 - Technical 

(1 Question)

  • Q1. Why team lead position you have not taken till now and is their any managerial skills you are lacking on What kind of projects you worked on water fall model agile team You are only individual contributor?...
Round 4 - HR 

(1 Question)

  • Q1. About experience and studies Compensation discussed. Need all the exp letters and years

Interview Preparation Tips

Interview preparation tips for other job seekers - It was one day process and shortlisted drive. But it was huge number people for one profile.
Interview experience
3
Average
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.

Round 1 - Technical 

(2 Questions)

  • Q1. Write a code to split a string to one by one letter in each line?
  • Q2. Write Xpath of an element from amazon.in page manually, without copying.

Interview Preparation Tips

Topics to prepare for Capgemini Senior Sdet Engineer interview:
  • Selenium
  • Java
Interview preparation tips for other job seekers - Get proper understanding of the current tool version of the tools you are using. Basic Java programming
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
No response

I was interviewed in Dec 2024.

Round 1 - Technical 

(2 Questions)

  • Q1. What are the different phases of the Software Testing Life Cycle (STLC)?
  • Ans. 

    STLC consists of phases like requirement analysis, test planning, test design, test execution, and test closure.

    • Requirement Analysis: Understanding the project requirements and defining the scope of testing.

    • Test Planning: Creating a test plan which includes test strategy, test objectives, and resource planning.

    • Test Design: Developing test cases and test scenarios based on requirements.

    • Test Execution: Running the test c...

  • Answered by AI
  • Q2. Can you write a program that outputs a sentence in reverse?
  • Ans. 

    Yes, I can write a program that outputs a sentence in reverse.

    • Create a function that takes a string as input

    • Split the string into an array of words

    • Reverse the array

    • Join the array back into a string and return

  • Answered by AI
Round 2 - HR 

(2 Questions)

  • Q1. Can you introduce yourself?
  • Ans. 

    I am a dedicated SDET Automation Test Engineer with 5 years of experience in creating and executing automated test scripts.

    • 5 years of experience in automation testing

    • Proficient in creating and executing automated test scripts

    • Strong knowledge of testing tools like Selenium and JUnit

    • Experience in Agile development environment

    • Excellent problem-solving skills

  • Answered by AI
  • Q2. What are your salary expectations?
  • Ans. 

    My salary expectations are based on my experience, skills, and the market rate for the position.

    • Research the average salary range for SDET Automation Test Engineers in the industry

    • Consider your level of experience and skills compared to the job requirements

    • Factor in any additional benefits or perks offered by the company

    • Be prepared to negotiate based on the overall compensation package

  • Answered by AI

Sdet Manager Interview Questions & Answers

LTIMindtree user image Sankeerthana Vanjari

posted on 21 Nov 2024

Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via LinkedIn and was interviewed in Oct 2024. There were 4 interview rounds.

Round 1 - Aptitude Test 

Cognitive,quatitative,logical

Round 2 - Technical 

(2 Questions)

  • Q1. Tell me about yor self
  • Q2. About your project
Round 3 - Technical 

(2 Questions)

  • Q1. Based on the python
  • Q2. Html which is used for web page
  • Ans. 

    HTML is a markup language used for creating web pages.

    • HTML stands for HyperText Markup Language

    • It is used to structure content on the web

    • HTML tags are used to define elements like headings, paragraphs, images, links, etc.

    • Example:

      This is a heading

  • Answered by AI
Round 4 - HR 

(2 Questions)

  • Q1. Behaviroul questions
  • Q2. Communication skills

Skills evaluated in this interview

Sdet Engineer Interview Questions & Answers

Accenture user image AKANKSHA JAISWAL

posted on 28 Nov 2024

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-

I applied via Campus Placement

Round 1 - Coding Test 

Apt and coding test was in first

Round 2 - Coding Test 

2 coding questions was ask

Round 3 - One-on-one 

(2 Questions)

  • Q1. It was on your resume question
  • Q2. Hr questions was asked in interview
Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
-
Round 1 - One-on-one 

(2 Questions)

  • Q1. Manual Testing Concepts
  • Q2. What are Oops Concepts
  • Ans. 

    Oops Concepts are fundamental principles of object-oriented programming such as Inheritance, Encapsulation, Polymorphism, and Abstraction.

    • Inheritance: Allows a class to inherit properties and behavior from another class.

    • Encapsulation: Bundling data and methods that operate on the data into a single unit.

    • Polymorphism: Ability of a function to behave differently based on the object it is acting upon.

    • Abstraction: Hiding t...

  • Answered by AI

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.2k Interviews
Infosys Interview Questions
3.6
 • 7.6k Interviews
Wipro Interview Questions
3.7
 • 5.6k Interviews
Cognizant Interview Questions
3.8
 • 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
 • 3k Interviews
IBM Interview Questions
4.0
 • 2.4k Interviews
View all
Software Engineer
26.4k salaries
unlock blur

₹2 L/yr - ₹9.2 L/yr

Senior Software Engineer
21.4k salaries
unlock blur

₹5.5 L/yr - ₹23 L/yr

Technical Lead
11.7k salaries
unlock blur

₹9.5 L/yr - ₹38 L/yr

Associate Software Engineer
5.4k salaries
unlock blur

₹1.8 L/yr - ₹6 L/yr

Team Lead
5k salaries
unlock blur

₹5.2 L/yr - ₹17 L/yr

Explore more salaries
Compare Tech Mahindra with

Infosys

3.6
Compare

Cognizant

3.8
Compare

Accenture

3.8
Compare

Wipro

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