i
Tech Mahindra
Filter interviews by
I applied via Approached by Company and was interviewed in Feb 2022. There were 2 interview rounds.
I applied via Company Website and was interviewed in Feb 2022. There were 2 interview rounds.
I applied via Walk-in and was interviewed before Sep 2022. There were 5 interview rounds.
Duration was around 90 min
2 coding questions with time period of 30 min, can choose any programming language
What people are saying about Tech Mahindra
I applied via Approached by Company and was interviewed in Apr 2022. There were 2 interview rounds.
Write about something
Tech Mahindra interview questions for designations
I applied via Recruitment Consulltant
Get interview-ready with Top Tech Mahindra Interview Questions
I applied via Company Website and was interviewed in Apr 2022. There were 2 interview rounds.
Particular subject what they given
Topic must be hailet and best explanation best confidence should be able to perform
I applied via Referral and was interviewed in Oct 2021. There were 5 interview rounds.
I applied via Job Portal and was interviewed in Dec 2021. There were 3 interview rounds.
I was interviewed before Apr 2021.
Round duration - 60 minutes
Round difficulty - Easy
Technical round with coding questions and OOPS questions.
Given an integer N
, calculate and print the factorial of N
. The factorial of a number N
is defined as the product of all positive integers up to N
.
N = 4
Calculate and print the factorial of a given integer N.
Iterate from 1 to N and multiply each number to calculate factorial.
Handle edge cases like N=0 or N=1 separately.
Use recursion to calculate factorial efficiently.
Consider using dynamic programming to optimize factorial calculation.
Ensure to handle large values of N to prevent overflow issues.
Given a string STR
containing characters from [a-z], [A-Z], [0-9], and special characters, determine the reverse of the string.
The input starts with a single i...
Reverse a given string containing characters from [a-z], [A-Z], [0-9], and special characters.
Iterate through the characters of the string from end to start and append them to a new string to get the reversed string.
Use built-in functions like reverse() or StringBuilder in languages like Java for efficient reversal.
Handle special characters and numbers along with alphabets while reversing the string.
Ensure to print eac...
malloc is used to allocate memory without initializing it, while calloc is used to allocate memory and initialize it to zero.
malloc allocates a block of memory of specified size, while calloc allocates a block of memory for an array of elements, each initialized to zero
malloc does not initialize the allocated memory, while calloc initializes the allocated memory to zero
malloc returns a pointer to the allocated memory b...
A dangling pointer is a pointer that points to a memory location that has been deallocated, leading to undefined behavior.
Dangling pointers can occur when memory is freed but the pointer is not set to NULL.
Accessing a dangling pointer can result in crashes, data corruption, or security vulnerabilities.
Example: int *ptr = new int; delete ptr; // ptr is now a dangling pointer
Round duration - 60 minutes
Round difficulty - Easy
Technical round with coding questions and OOPS questions.
Given an array of integers, find the maximum sum of any contiguous subarray within the array.
array = [34, -50, 42, 14, -5, 86]
137
Find the maximum sum of any contiguous subarray within an array in O(N) time complexity.
Use Kadane's algorithm to find the maximum sum subarray in O(N) time complexity
Initialize max_sum and current_sum to the first element of the array
Iterate through the array, updating current_sum and max_sum as needed
Return max_sum as the maximum sum of any contiguous subarray
Storage classes in programming define the scope and lifetime of variables.
Storage classes include auto, register, static, and extern.
Auto variables are local to the block they are declared in.
Register variables are stored in CPU registers for faster access.
Static variables retain their value between function calls.
Extern variables are declared outside of any function and can be accessed by multiple files.
A copy constructor is a special type of constructor that creates a new object as a copy of an existing object.
Used to initialize a new object as a copy of an existing object
Takes an object of the same class as a parameter
Often used to create deep copies of objects
Round duration - 30 minutes
Round difficulty - Easy
HR round with typical behavioral problems.
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.
Some of the top questions asked at the Tech Mahindra Software Engineer interview -
The duration of Tech Mahindra Software Engineer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 154 interviews
5 Interview rounds
based on 2.6k reviews
Rating in categories
Software Engineer
26.3k
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Software Engineer
21.4k
salaries
| ₹0 L/yr - ₹0 L/yr |
Technical Lead
11.7k
salaries
| ₹0 L/yr - ₹0 L/yr |
Associate Software Engineer
5.5k
salaries
| ₹0 L/yr - ₹0 L/yr |
Team Lead
5k
salaries
| ₹0 L/yr - ₹0 L/yr |
Infosys
Cognizant
Accenture
Wipro