Add office photos
Tech Mahindra logo
Engaged Employer

Tech Mahindra

Verified
3.5
based on 35.4k Reviews
Video summary
Filter interviews by
Associate Engineer
Clear (1)

Tech Mahindra Associate Engineer Interview Questions and Answers

Updated 1 Apr 2024

Q1. What is the list and list are mutable or immutable?

Ans.

Lists are a data structure in Python that can hold multiple items. They are mutable, meaning their elements can be changed.

  • Lists are enclosed in square brackets []

  • Elements in a list can be of different data types

  • Lists can be modified by adding, removing, or changing elements

  • Example: my_list = ['apple', 'banana', 'cherry']

View 1 answer
right arrow

Q2. What will you do if you win 1 cr rs lottery?

Ans.

I would invest a portion of it, donate to charity and use the rest to fulfill my personal goals.

  • Invest a portion of the money in a diversified portfolio to ensure long-term financial stability.

  • Donate a portion of the money to a reputable charity to give back to the community.

  • Use the remaining money to fulfill personal goals such as traveling, buying a house, or pursuing a hobby.

  • Consult with a financial advisor to make informed decisions about investing the money.

Add your answer
right arrow

Q3. Write program on Armstrong number

Ans.

Program to check if a number is an Armstrong number or not

  • An Armstrong number is a number that is equal to the sum of its own digits raised to the power of the number of digits

  • Take input from user and calculate the sum of each digit raised to the power of the number of digits

  • Compare the sum with the original number to check if it is an Armstrong number or not

Add your answer
right arrow

Q4. Explain types of datatypes

Ans.

Datatypes are classifications of data items that determine the kind of operations that can be performed on them.

  • Primitive datatypes: int, float, char, boolean

  • Derived datatypes: array, pointer, structure, union

  • Abstract datatypes: stack, queue, tree, graph

Add your answer
right arrow
Discover Tech Mahindra interview dos and don'ts from real experiences

Q5. Explain Runtime Polymorphism

Ans.

Runtime polymorphism is the ability of a function to behave differently based on the object it is called with.

  • Runtime polymorphism is achieved through method overriding in object-oriented programming.

  • It allows a subclass to provide a specific implementation of a method that is already provided by its superclass.

  • The actual method that gets called is determined at runtime based on the type of object.

  • Example: Animal class has a method 'makeSound'. Dog and Cat classes extend Anim...read more

Add your answer
right arrow

Q6. Explain Polymorphism

Ans.

Polymorphism is the ability of a function or method to behave differently based on the object it is acting upon.

  • Polymorphism allows objects of different classes to be treated as objects of a common superclass.

  • There are two types of polymorphism: compile-time (method overloading) and runtime (method overriding).

  • Example: Animal class with methods eat() and sleep(). Dog and Cat classes can inherit from Animal and override eat() method.

  • Example: Function overloading in Java where ...read more

Add your answer
right arrow
Contribute & help others!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos

Interview Process at Tech Mahindra Associate Engineer

based on 14 interviews
3 Interview rounds
Aptitude Test Round
Coding Test Round
Technical Round
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Associate Engineer Interview Questions from Similar Companies

TCS Logo
3.7
 • 22 Interview Questions
Nagarro Logo
4.0
 • 18 Interview Questions
Wipro Logo
3.7
 • 10 Interview Questions
Quess Logo
3.9
 • 10 Interview Questions
View all
Recently Viewed
DESIGNATION
DESIGNATION
INTERVIEWS
Accenture
No Interviews
REVIEWS
Tech Mahindra
No Reviews
INTERVIEWS
LTIMindtree
No Interviews
INTERVIEWS
WNS
No Interviews
INTERVIEWS
Capgemini
No Interviews
SALARIES
DXC Technology
SALARIES
Concentrix Corporation
SALARIES
Mynd Solutions Private
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter