i
Tech
Mahindra
Filter interviews by
Data structures are ways of organizing and storing data in a computer so that it can be accessed and used efficiently.
Data structures are used to manage and manipulate data.
They can be implemented using arrays, linked lists, trees, graphs, and other methods.
Examples include stacks, queues, hash tables, and binary search trees.
Design pattern is a reusable solution to a commonly occurring problem in software design.
Design patterns provide a standard terminology and a common platform for communication among developers.
They help in creating software that is flexible, maintainable, and scalable.
Examples of design patterns include Singleton, Factory, Observer, and Decorator.
Design patterns can be categorized into three types: creational, str...
Python interpreter is a program that executes Python code.
It reads Python code and converts it into machine-readable code
It executes the code line by line
It also provides a command-line interface for interactive programming
Examples: CPython, Jython, IronPython
Python was developed by Guido van Rossum in the late 1980s.
Guido van Rossum started working on Python in December 1989.
Python's design philosophy emphasizes code readability and ease of use.
Python is an interpreted, high-level, general-purpose programming language.
Python's popularity has been steadily increasing over the years.
Python is open-source and has a large community of developers contributing to its develo...
What people are saying about Tech Mahindra
A class is a blueprint for creating objects that have similar properties and behaviors.
A class is a user-defined data type that encapsulates data and functions.
It provides a way to organize and structure code.
Objects are instances of a class.
Classes can inherit properties and behaviors from other classes.
Example: A class 'Car' can have properties like 'color', 'model', and behaviors like 'start', 'stop'.
PEP8 is a style guide for Python code.
PEP8 provides guidelines for formatting, naming, and organizing Python code.
It covers topics such as indentation, line length, variable naming, and function and class definitions.
Adhering to PEP8 can improve code readability and maintainability.
Tools such as Flake8 and PyLint can be used to check code against PEP8 standards.
Data abstraction is the process of hiding implementation details and showing only the necessary information to the user.
Abstraction is achieved through abstract classes and interfaces
It helps in reducing complexity and increasing efficiency
Example: A car dashboard shows only necessary information like speed, fuel level, etc. and hides the internal workings of the car
Abstraction is one of the four fundamental conce...
Multiple inheritance is the ability of a class to inherit properties and behavior from multiple parent classes.
It allows a class to inherit from more than one parent class.
It can lead to the diamond problem where a class inherits from two classes that have a common base class.
Languages like C++ support multiple inheritance while others like Java do not.
Example: A class can inherit properties from both a 'Vehicle' ...
Inheritance is a mechanism in object-oriented programming where a new class is created by inheriting properties of an existing class.
Inheritance allows code reuse and promotes code organization.
The existing class is called the parent or superclass, and the new class is called the child or subclass.
The child class inherits all the properties and methods of the parent class and can also add its own unique properties...
An object is an instance of a class that encapsulates data and behavior.
Objects are created from classes
They have attributes (data) and methods (behavior)
Objects can interact with each other through method calls
Examples include a car object with attributes like make, model, and color, and methods like start and stop
Another example is a person object with attributes like name and age, and methods like walk and talk
I appeared for an interview in Jul 2024.
It was easy, had average difficulty . Basic english and aptitude was asked
List is mutable, tuple is immutable in Python.
List can be modified after creation, tuple cannot.
List uses square brackets [], tuple uses parentheses ().
List is slower than tuple for iteration and indexing.
Example: list_example = [1, 2, 3], tuple_example = (1, 2, 3)
I appeared for an interview in May 2025, where I was asked the following questions.
I bring a unique blend of technical skills, problem-solving abilities, and a passion for innovation that aligns with your team's goals.
Proven experience in developing scalable applications, such as a recent project where I improved load time by 30%.
Strong proficiency in multiple programming languages, including Python and Java, allowing for versatile contributions to various projects.
Excellent teamwork and communicatio...
Oops concept in Java refers to Object-Oriented Programming principles like Inheritance, Encapsulation, Polymorphism, and Abstraction.
Inheritance allows a class to inherit properties and behavior from another class.
Encapsulation involves bundling data and methods that operate on the data into a single unit.
Polymorphism allows objects to be treated as instances of their parent class.
Abstraction hides the implementation d...
Kotlin multiplatform allows sharing code between different platforms in an existing project.
Kotlin multiplatform enables sharing code between iOS and Android platforms
It can be integrated into an existing project to reduce duplicate code
Supports common libraries and APIs for both platforms
Inheritance in Kotlin allows a class to inherit properties and functions from another class.
In Kotlin, a class can inherit from another class using the 'open' keyword for the superclass and the 'class' keyword for the subclass.
Subclasses can override properties and functions of the superclass using the 'override' keyword.
Kotlin does not support multiple inheritance, but a class can implement multiple interfaces.
Coroutines are used to perform asynchronous tasks without blocking the main thread.
Coroutines allow for efficient asynchronous programming by suspending and resuming execution at specific points.
They are commonly used in Android development to handle network requests and database operations.
Coroutines can be used to simplify complex asynchronous code by providing a structured way to manage concurrency.
They are lightwei...
I applied via Naukri.com and was interviewed in Jun 2024. There were 3 interview rounds.
React JS is a JavaScript library for building user interfaces, while UX architecture focuses on designing user experiences.
React JS is a front-end library used for building interactive user interfaces.
UX architecture focuses on designing user experiences to ensure usability and user satisfaction.
Combining React JS with UX architecture involves creating intuitive and user-friendly interfaces that prioritize user needs a...
Create a user experience (UX) architecture for software development.
Identify user personas and their needs
Design user flows and wireframes
Implement intuitive navigation and information architecture
Ensure consistency in visual design and interactions
Test and iterate on the UX design based on user feedback
,
, ,