i
Tech Mahindra
Filter interviews by
I was interviewed before May 2021.
Round duration - 30 minutes
Round difficulty - Medium
Given a string S, your task is to recursively remove all consecutive duplicate characters from the string.
String S
Output string
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...
Round duration - 90 minutes
Round difficulty - Easy
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
...
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);
Round duration - 50 minutes
Round difficulty - Medium
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.
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
I was interviewed in Aug 2021.
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.
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.
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.
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.
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.
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.
@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.
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 ...
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...
Round duration - 30 minutes
Round difficulty - Easy
This was a typical HR round with some standard Behavioral questions
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...
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.
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.
I was interviewed in Dec 2020.
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
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 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.
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
Tip 1 : It should not be too long or too short.
Tip 2 : Each skill should be mentioned properly.
I was interviewed before May 2021.
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.
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...
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
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.
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...
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.
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.
Tip 1 : Go through DBMS concepts thoroughly.
Tip 1 : Go through oops concepts thoroughly
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.
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.
I was interviewed in Jan 2025.
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.
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.
I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.
I was interviewed in Dec 2024.
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...
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
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
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
I applied via LinkedIn and was interviewed in Oct 2024. There were 4 interview rounds.
Cognitive,quatitative,logical
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:
I applied via Campus Placement
Apt and coding test was in first
2 coding questions was ask
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...
Software Engineer
26.4k
salaries
| ₹2 L/yr - ₹9.2 L/yr |
Senior Software Engineer
21.4k
salaries
| ₹5.5 L/yr - ₹23 L/yr |
Technical Lead
11.7k
salaries
| ₹9.5 L/yr - ₹38 L/yr |
Associate Software Engineer
5.4k
salaries
| ₹1.8 L/yr - ₹6 L/yr |
Team Lead
5k
salaries
| ₹5.2 L/yr - ₹17 L/yr |
Infosys
Cognizant
Accenture
Wipro