Tech Mahindra
Multinational IT services and consulting company.
4 Rounds
~21 Days
Medium
The Interview Loop
Recruiter Screen (30 min)
Standard fit check, behavioral questions, and resume overview.
Technical Loop (3-4 Rounds)
Deep dive into domain knowledge, coding, and system design.
Interview Question Bank
Frontend Engineer
•
Behavioral
•
medium
Tell me about a time when a client requested a major feature change in the middle of a sprint. How did you handle it?
#Agile
#Communication
#Scope Creep
Frontend Engineer
•
Behavioral
•
medium
Describe a situation where you disagreed with a backend developer regarding an API contract. How was it resolved?
#Conflict Resolution
#API Design
#Collaboration
Frontend Engineer
•
Behavioral
•
medium
Tell me about a time you had to deliver a critical feature under a very tight deadline. Did you compromise on code quality?
#Time Management
#Prioritization
#Quality Assurance
Frontend Engineer
•
Behavioral
•
medium
Describe a time when a bug you introduced made it to production. How did you troubleshoot and resolve it?
#Debugging
#Accountability
#Incident Management
Frontend Engineer
•
Behavioral
•
easy
How do you ensure you are aligned with your team's goals during an Agile sprint? Describe your participation in Agile ceremonies.
#Agile
#Scrum
#Team Collaboration
Frontend Engineer
•
Coding
•
medium
Write a function to flatten a deeply nested object into a single-level object with dot-separated keys.
#Recursion
#Object Manipulation
#Data Structures
Frontend Engineer
•
Coding
•
medium
Write a debounce function from scratch. How would you apply this to a search input field in a telecom billing portal to minimize API calls?
#Closures
#Timers
#Performance Optimization
Frontend Engineer
•
Coding
•
hard
Implement a polyfill for Promise.all().
#Promises
#Polyfills
#Asynchronous JS
Frontend Engineer
•
Coding
•
medium
Write a custom React hook `useFetch` that takes a URL and returns the data, loading state, and error state.
#Custom Hooks
#API Integration
#State Management
Frontend Engineer
•
Coding
•
easy
Write a function to check if two strings are anagrams of each other.
#Strings
#Hash Maps
#Sorting
Frontend Engineer
•
Coding
•
medium
Write a function that splits an array into chunks of a specified size.
#Arrays
#Data Manipulation
Frontend Engineer
•
Coding
•
medium
Write a function to deep clone a JavaScript object without using JSON.parse(JSON.stringify()).
#Recursion
#Object Manipulation
#Memory References
Frontend Engineer
•
Coding
•
hard
Implement a simple EventEmitter class in JavaScript with 'on', 'emit', and 'off' methods.
#Design Patterns
#Observer Pattern
#Classes
Frontend Engineer
•
System Design
•
hard
Design the frontend architecture for a large-scale telecom customer portal. How would you handle state management, routing, and performance?
#Architecture
#State Management
#Performance
#Scalability
Frontend Engineer
•
System Design
•
hard
Tech Mahindra is modernizing a legacy monolithic application. How would you design a Micro-frontends architecture to allow gradual migration?
#Micro-frontends
#Module Federation
#Legacy Migration
Frontend Engineer
•
System Design
•
hard
Design a real-time notification system for a web application. How do you choose between WebSockets, Server-Sent Events (SSE), and Long Polling?
#Real-time
#WebSockets
#SSE
#Network Protocols
Frontend Engineer
•
System Design
•
medium
Design the state structure for an e-commerce shopping cart. How do you handle offline support and syncing when the user comes back online?
#State Management
#Offline Storage
#Syncing
Frontend Engineer
•
Technical
•
medium
Explain the JavaScript Event Loop. How does it handle synchronous code, microtasks (like Promises), and macrotasks (like setTimeout)?
#Event Loop
#Asynchronous JS
#Concurrency
Frontend Engineer
•
Technical
•
medium
How does React's Virtual DOM work, and what is the Reconciliation process?
#Virtual DOM
#Reconciliation
#Diffing Algorithm
Frontend Engineer
•
Technical
•
medium
In a React application, how do you prevent memory leaks when a component unmounts while an asynchronous operation (like an API call) is still pending?
#Hooks
#useEffect
#Memory Management
Frontend Engineer
•
Technical
•
easy
For a complex enterprise dashboard layout, when would you choose CSS Grid over Flexbox, and vice versa?
#CSS Grid
#Flexbox
#Layout
Frontend Engineer
•
Technical
•
medium
In Angular, what is the difference between a Subject and a BehaviorSubject in RxJS? When would you use each?
#RxJS
#Observables
#State Management
Frontend Engineer
•
Technical
•
medium
Compare the Context API and Redux. For a large-scale Tech Mahindra enterprise application, which would you choose and why?
#State Management
#Redux
#Context API
Frontend Engineer
•
Technical
•
medium
You are integrating a third-party API for a client and encountering CORS errors. What is CORS, and how do you resolve it from the frontend and backend perspectives?
#CORS
#Security
#HTTP
Frontend Engineer
•
Technical
•
medium
Explain closures in JavaScript. Can you provide an example of a common bug caused by closures inside a loop, and how to fix it?
#Closures
#Scope
#Var vs Let
Frontend Engineer
•
Technical
•
easy
What is CSS Specificity? How does the BEM (Block Element Modifier) methodology help in managing CSS in large projects?
#CSS Specificity
#BEM
#Maintainability
Frontend Engineer
•
Technical
•
hard
How would you optimize the Webpack configuration for a React application to reduce the final bundle size?
#Webpack
#Code Splitting
#Tree Shaking
Frontend Engineer
•
Technical
•
hard
Explain Angular's Change Detection mechanism. What is OnPush strategy and when should it be used?
#Change Detection
#Performance
#Zone.js
Frontend Engineer
•
Technical
•
easy
What is the difference between call(), apply(), and bind() in JavaScript?
#Functions
#Context
#This Keyword
Frontend Engineer
•
Technical
•
medium
Why is Web Accessibility (a11y) important? What are some key ARIA attributes and semantic HTML tags you use daily?
#Accessibility
#HTML5
#ARIA
Frontend Engineer
•
Technical
•
medium
In React, what is the difference between useMemo and useCallback? Provide a scenario where misusing them degrades performance.
#Hooks
#Performance Optimization
#Memoization
Frontend Engineer
•
Technical
•
medium
Explain Prototypal Inheritance in JavaScript. How does the prototype chain work when looking up a property?
#Prototypes
#Inheritance
#Object Oriented JS
Frontend Engineer
•
Technical
•
medium
How do you use HTTP Interceptors in Angular? Give an example of how you would use one to handle authentication tokens.
#Interceptors
#Authentication
#HTTP Client
Frontend Engineer
•
Technical
•
medium
What are the security implications of storing JWT tokens in LocalStorage vs HttpOnly Cookies?
#Security
#JWT
#XSS
#CSRF
Frontend Engineer
•
Technical
•
easy
What are Error Boundaries in React? How do you implement them, and what types of errors do they NOT catch?
#Error Handling
#Component Lifecycle
Difficulty Radar
Based on recent AI-sourced data.
Meet Your Interviewers
The "Standard" Interviewer
Senior EngineerFocuses on core competencies, system constraints, and clear communication.
SimulateUnwritten Rules
Think Out Loud
Always explain your thought process before writing code or drawing architecture.