Tech Mahindra interview questions and process for freshers

Tech Mahindra hires freshers through campus and off-campus drives. Here is how its process commonly works, the questions freshers report most, and how to prepare for free.

Practise a Tech Mahindra-style mock interview with Sam

Sam, our AI interviewer, asks Tech Mahindra-style questions out loud, follows up on your answers and gives you an honest scorecard. Free to start.

Start free

How the Tech Mahindra interview usually goes

Based on what candidates commonly report. The process changes by year, role and campus, so always check the official Tech Mahindra careers page and your drive's notification.

  1. 1

    Online assessment

    Commonly reported to include aptitude, technical multiple-choice questions, a written English or essay section and sometimes a psychometric test; some drives include coding.

  2. 2

    Technical interview

    Your project, programming basics, OOP, DBMS and SQL, and some networking or OS questions.

  3. 3

    HR interview

    Background, relocation and shifts, and why Tech Mahindra.

Technical questions freshers are commonly asked

Tech Mahindra technical interviews for freshers usually stay on fundamentals: your project, one programming language, OOP, DBMS and SQL, and some OS and networking basics, plus a short program to write or explain. Clear, confident communication counts as much as depth.

  1. Q1.

    Explain your final-year (or best) project.

    Cover the problem, your own part, the tech stack and why you chose it, one hard bug or decision, and what you would improve. Expect follow-ups on anything you name, so only list what you can defend.

  2. Q2.

    What are the four pillars of OOP?

    Encapsulation (keeping data and the methods that use it together, and hiding internal state), abstraction (exposing what an object does, not how), inheritance (a class reusing and extending another) and polymorphism (one interface, many forms). Give a small example in the language you know best.

  3. Q3.

    What is the difference between method overloading and overriding?

    Overloading is the same method name with different parameter lists, usually in the same class, and is resolved at compile time. Overriding is a subclass redefining a parent method with the same signature, resolved at runtime (runtime polymorphism).

  4. Q4.

    Abstract class vs interface: when would you use each?

    An abstract class can hold fields, constructors and both abstract and concrete methods, and (in Java) a class can extend only one. An interface is a contract a class can implement many of; since Java 8 it can have default and static methods but no instance state. Use an abstract class for a shared base, an interface for a capability.

  5. Q5.

    Why is Java called platform independent? What are JDK, JRE and JVM?

    Java source compiles to bytecode, which any JVM runs, so the same .class files work on any OS that has a JVM. The JVM runs bytecode, the JRE is the JVM plus the standard libraries needed to run programs, and the JDK adds the compiler and tools needed to develop them.

  6. Q6.

    What is the difference between a primary key and a foreign key?

    A primary key uniquely identifies each row and cannot be NULL; a table has one. A foreign key is a column that refers to a primary (or unique) key in another table, enforcing referential integrity; it can repeat and, unless declared NOT NULL, can be NULL.

    SQL basics
  7. Q7.

    Explain the types of SQL joins.

    INNER JOIN returns rows that match in both tables; LEFT JOIN returns every row of the left table plus matches (NULLs where none); RIGHT JOIN is the mirror; FULL OUTER JOIN returns all rows from both. A self join joins a table to itself, such as employees to their managers.

    Joins explained
  8. Q8.

    What is normalisation? Explain 1NF, 2NF and 3NF.

    Normalisation organises tables to reduce duplicate data and update anomalies. 1NF: every column holds atomic values, no repeating groups. 2NF: 1NF and no non-key column depends on only part of a composite key. 3NF: 2NF and no non-key column depends on another non-key column (no transitive dependency).

  9. Q9.

    DELETE vs TRUNCATE vs DROP?

    DELETE removes rows (optionally with a WHERE clause) one by one. TRUNCATE removes all rows quickly without a WHERE clause. DROP removes the whole table, structure and data. Whether TRUNCATE can be rolled back depends on the database, so say that rather than guessing.

  10. Q10.

    What is the difference between a process and a thread?

    A process is a running program with its own memory space. Threads run inside a process and share its memory (code, heap) while each has its own stack and registers, so they are cheaper to create and switch, but shared data needs synchronisation.

    Processes vs threads
  11. Q11.

    What is the difference between TCP and UDP?

    TCP is connection-oriented and reliable: it delivers data in order, retransmits lost packets and controls flow (web pages, email, file transfer). UDP is connectionless with no delivery guarantee but lower overhead (video calls, online games, DNS lookups).

    TCP vs UDP
  12. Q12.

    Name the layers of the OSI model.

    Physical, Data Link, Network, Transport, Session, Presentation and Application. The TCP/IP model used in practice groups them into four layers: Link, Internet, Transport and Application.

    OSI & TCP/IP models
  13. Q13.

    Reverse a string without using a built-in reverse function.

    Use two pointers at the start and end, swap the characters and move both inward until they meet: O(n) time. In languages with immutable strings (Java, Python) convert to a character array or list first.

    Two pointers from both ends
  14. Q14.

    Check whether a string (or number) is a palindrome.

    Compare characters from both ends moving inward; stop at the first mismatch. For a number, reverse its digits and compare with the original. Ask whether case, spaces and punctuation should be ignored.

    Two pointers from both ends
  15. Q15.

    Print the Fibonacci series, or find the factorial of a number, iteratively and recursively.

    Know both versions and their trade-offs: the recursive version needs a base case and uses stack space, and naive recursive Fibonacci is exponential because it recomputes values. A loop (or memoization) makes Fibonacci O(n).

    Recursion basics
  16. Q16.

    Swap two numbers without a third variable.

    a = a + b; b = a - b; a = a - b; works but can overflow. The XOR version (a ^= b; b ^= a; a ^= b;) avoids overflow but fails if a and b are the same variable. In real code a temporary variable is clearer.

Tech Mahindra HR interview questions

  1. 1.

    Tell me about yourself.

    60 to 90 seconds: your degree, one or two projects or skills that fit the role, and what you want next. Don't read out your resume.

    Tell me about yourself
  2. 2.

    Why should we hire you?

    Match two or three of your strengths to the role, each backed by proof such as a project, an internship or a result.

  3. 3.

    What are your strengths and weaknesses?

    Pick a real strength with an example, and a real but non-critical weakness along with what you are doing to improve it.

  4. 4.

    Why Tech Mahindra?

    Mention something specific, such as its telecom and networking work, a technology area you want to grow in, or its training for freshers.

  5. 5.

    Are you willing to relocate and work in shifts?

    Answer honestly. Services companies place freshers on projects in different cities and time zones; if you have a genuine constraint, say so politely.

  6. 6.

    Where do you see yourself in five years?

    Talk about growing your skills and responsibility in a way that could plausibly happen at this company, not about leaving it.

  7. 7.

    Tell me about a challenge you faced and how you handled it.

    Use STAR: the situation, your task, the actions you took and the result, with the focus on what you did.

    The STAR method
  8. 8.

    Tell me about a time you disagreed with a teammate.

    Show that you listened, argued with facts and kept the team moving; end with what you learned.

    Conflict & teamwork
  9. 9.

    Your branch isn't computer science. Why IT?

    Common for ECE, EEE and mechanical students. Show genuine interest with evidence: courses you took, programs or projects you built, and what you enjoy about software.

  10. 10.

    Do you have any questions for us?

    Always ask one or two, for example about training, the team you would join, or what a good first year looks like.

    Questions to ask the interviewer

How to prepare for the Tech Mahindra interview

  1. 1.

    Clear the online test first

    The online assessment comes first; practise aptitude and short essay writing. Practise aptitude a little every day with timed quizzes: percentages, profit and loss, time and work, number series and seating arrangements come up often.

    Aptitude practice
  2. 2.

    Make practice a daily habit

    Five questions a day adds up. The Daily Quiz takes about three minutes and needs no login.

    Daily Quiz
  3. 3.

    Revise core CS

    OOP, DBMS and SQL, operating systems and networking basics. Aim to explain each concept in two or three sentences with an example.

    Study notes
  4. 4.

    Know your project inside out

    Your role, the tech stack and why, the database design, one problem you solved. Most fresher interviews spend a lot of time here.

  5. 5.

    Write small programs by hand

    Strings, arrays and number programs (reverse, palindrome, prime, Fibonacci) in one language you know well, without an IDE, then trace them with an example.

  6. 6.

    Practise speaking out loud

    Rehearse "tell me about yourself" and your project explanation. A Tech Mahindra-style mock interview with Sam is a safe place to practise.

    Tell me about yourself
  7. 7.

    Check the official details

    Eligibility rules, test patterns and hiring tracks change from year to year. Read the official Tech Mahindra careers page and the drive notification for your batch.

Practise a Tech Mahindra-style mock interview with Sam

Sam, our AI interviewer, asks Tech Mahindra-style questions out loud, follows up on your answers and gives you an honest scorecard. Free to start.

Start free

Frequently asked questions

How many rounds are there in the Tech Mahindra fresher process?

Commonly an online assessment, a technical interview and an HR interview. Check the official Tech Mahindra careers page for your drive's process.

What should I focus on for the Tech Mahindra technical interview?

Your project, OOP, DBMS and SQL basics, and simple programs in your chosen language. Some networking basics help too.

Which programming language should I use in the Tech Mahindra interview?

Use the language you know best and listed on your resume. C, C++, Java and Python are all common; what matters is writing correct programs and explaining them clearly.

Can I practise a Tech Mahindra-style mock interview?

Yes. On InterviewSam you can set Tech Mahindra as the target company and Sam, our AI interviewer, runs a mock interview by voice in that style, then gives you an honest scorecard. You need a free account; the study notes and aptitude practice need no login.

InterviewSam is not affiliated with Tech Mahindra. This page summarises commonly reported interview experiences to help you prepare; for eligibility, test patterns and dates, rely on Tech Mahindra's official careers page.

Other company guides

All companies