Autocoder

Tech Mahindra Interview Questions for Freshers

Last updated 2026-11-19

Tech Mahindra's process is commonly reported to include a communication assessment as well as technical rounds, and its technical questions often touch C, C++ and networking. This page gives twelve worked practice questions across those areas plus HR.

For the process read how to crack the Tech Mahindra interview, and for coding see Tech Mahindra coding round questions.

StagesOnline test, communication assessment, technical, HR (sources differ on count)
PlatformAMCAT/SHL reported
Careers sitecareers.techmahindra.com

Tech Mahindra rounds as commonly reported

Prep sources describe four or five stages, and they disagree on the exact count. The usual shape is an online test with aptitude and technical sections (reported on an AMCAT or SHL based interface, with separate cut-offs per section), a communication or story-writing assessment, then a technical interview on programming and projects, and an HR interview. Treat sectional cut-offs and stage order as things to verify from your own invitation. Tech Mahindra does not publish interview content.

Topics worth revising

Hiring status

This page does not track Tech Mahindra drives or dates. For anything time-sensitive, use Tech Mahindra's own careers site (careers.techmahindra.com) and treat any date quoted on social media or listing sites as unconfirmed until it appears there.

Tech Mahindra Interview Questions for Freshers: questions with worked answers

  1. 1

    How do I prepare for the spoken or written communication assessment?

    easy

    Prep sources describe an AI-based communication or story-writing step, with descriptions that differ between sources, so check your own invitation. Practise two skills. Speaking: describe a place, a person or a day in your life for one minute in complete sentences, at a steady pace, without filler words. Writing: write a 100-word story with a clear beginning, problem and ending in simple, correct English. Record yourself and listen back; grammar slips and long pauses are easy to spot.

  2. 2

    Why Tech Mahindra?

    easy

    Anchor the answer in something specific to its field. Tech Mahindra is widely known for telecom and communications services, so a student with networking or embedded interest has a natural story: you want to work on large network and enterprise engagements and build your skills on real systems. Say what you will contribute, for example comfort with Linux and networking basics. Avoid unverifiable claims about rankings or salaries.

  3. 3

    How does a virtual function work in C++?

    hard

    A function declared virtual in a base class is resolved at run time based on the object's real type. The compiler gives each class with virtual functions a vtable (an array of function pointers) and each object a hidden vptr pointing to it. A call through a base pointer follows the vptr, so Base* p = new Derived(); p->f() runs Derived::f. Make destructors virtual in polymorphic base classes, otherwise deleting through a base pointer skips the derived destructor. A pure virtual function (= 0) makes the class abstract.

  4. 4

    What are the main differences between C and C++?

    easy

    C is procedural; C++ adds classes, inheritance, polymorphism, templates, references, function and operator overloading, exceptions and the standard template library. C uses malloc and free; C++ uses new and delete (and smart pointers in modern code). C++ has namespaces and stronger type checking. C++ is largely a superset but not entirely: for example, a void pointer converts implicitly to other pointer types in C but not in C++. Name C when asked about embedded or low-level work, and C++ for object modelling.

  5. 5

    What is the difference between an array of pointers and a pointer to an array?

    medium

    int *a[3] is an array of three pointers to int; each element can point to a different integer or array. int (*p)[3] is a single pointer to an array of three ints. The parentheses change the binding because [] has higher precedence than *. Given int m[2][3], p = m makes p point at the first row, and p[1][2] is the last element. Use cdecl-style reading: start at the name and move outward.

  6. 6

    View versus table; stored procedure versus function.

    medium

    A table stores data; a view is a saved query that behaves like a virtual table, used for simplification, security (expose only some columns) and reuse. Most views are not updatable if they use aggregates or joins. A stored procedure is a named routine that can perform actions (inserts, transactions) and need not return a value; a function must return a value and can be used inside SELECT. Procedures are called with CALL or EXEC; functions appear in expressions.

  7. 7

    Find the highest salary in each department, with the employee name.

    medium

    Use a window function RANK partitioned by department, or join to a grouped subquery. RANK keeps ties; use ROW_NUMBER if exactly one row per department is wanted. Mention the grouped-join alternative for databases without window functions. A frequent error is selecting the name next to MAX(salary) in a GROUP BY without a subquery, which is invalid or arbitrary.

    sql
    SELECT dept_id, name, salary
    FROM (
      SELECT dept_id, name, salary,
             RANK() OVER (PARTITION BY dept_id ORDER BY salary DESC) AS r
      FROM employee
    ) t
    WHERE r = 1;
  8. 8

    How many usable hosts are in a /26 network?

    medium

    A /26 leaves 32 - 26 = 6 host bits, so 2^6 = 64 addresses. Subtract the network address and the broadcast address, giving 62 usable hosts. The mask is 255.255.255.192, and subnets step by 64 in the last octet (0, 64, 128, 192). Always show the subtraction of two; forgetting it is the classic mistake. See computer networks interview questions for more subnetting practice.

  9. 9

    DNS versus DHCP.

    easy

    DNS translates names such as example.com to IP addresses using a hierarchy of resolvers and authoritative servers, typically over UDP port 53. DHCP automatically assigns an IP address, subnet mask, default gateway and DNS server to a device joining a network, in the DORA sequence: Discover, Offer, Request, Acknowledge, over UDP ports 67 and 68. One finds where a name lives; the other gives a device its own address. A home router normally runs both.

  10. 10

    What is the Python GIL and when does it matter?

    hard

    The Global Interpreter Lock in CPython lets only one thread execute Python bytecode at a time, which protects reference counting. CPU-bound threaded code therefore does not speed up across cores, but I/O-bound threads still help because the lock is released while waiting. For CPU-bound work use multiprocessing, native extensions, or a runtime without a GIL. Recent CPython versions offer an optional free-threaded build, so mention that you would check the version in use.

  11. 11

    REST versus SOAP.

    medium

    REST is an architectural style over HTTP using resources, standard verbs (GET, POST, PUT, DELETE), and usually JSON; it is lightweight, cacheable and stateless. SOAP is a protocol using XML envelopes with a strict contract (WSDL), built-in standards for security (WS-Security) and transactions, and is common in legacy enterprise and telecom integrations. Choose REST for public and mobile APIs and SOAP where formal contracts and enterprise standards are mandated.

  12. 12

    Tell me about a conflict in a team and how you handled it.

    medium

    Use STAR with a real example: two members disagreed on the technical approach in a college project. You listened to both, wrote down the trade-offs, proposed a quick prototype of each for a day, and the team picked using the results. Emphasise that you focused on the problem, not people, and that the project shipped. Avoid blaming someone or claiming there was never any conflict. See HR interview tips.

Frequently asked questions

Does Tech Mahindra have a communication test?

Prep sources report one, described as AI-based communication or story writing, but they differ; confirm with your invitation.

What technical topics are asked?

Commonly C, C++, DBMS, networking and your projects. Role changes the emphasis.

Does Tech Mahindra hire freshers every year?

No sourced fresher target is quoted here; check the official careers site.

How should I answer why Tech Mahindra?

Link it to a real interest, such as networking or enterprise engineering, and avoid quoting rankings or pay.

Sources

Related guides

More in Company Interview Questions

See all in this section