i
Mahindra & Mahindra
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
I applied via Walk-in and was interviewed in Mar 2024. There was 1 interview round.
Python is a high-level, interpreted programming language known for its simplicity and readability.
Python is dynamically typed and garbage-collected.
It supports multiple programming paradigms like procedural, object-oriented, and functional programming.
Python has a large standard library and a thriving community of developers.
Example: print('Hello, World!')
Data types in Python define the type of data that a variable can hold.
Python has several built-in data types such as int, float, str, list, tuple, dict, set, bool, etc.
Each data type has specific characteristics and operations that can be performed on it.
Examples: int for integers, float for floating-point numbers, str for strings, list for lists of elements.
Python indentation is the spacing at the beginning of a line to define the structure of the code.
Indentation is used to define blocks of code, such as loops, functions, and classes.
Python uses indentation to determine the scope and hierarchy of code.
Incorrect indentation can lead to syntax errors or unexpected behavior.
Example: if x > 5: print('x is greater than 5')
Example: def my_function(): print('This is i
A program to check if a given string is a palindrome in Python.
Create a function that takes a string as input.
Use string slicing to reverse the input string.
Compare the reversed string with the original string to check for palindrome.
Return True if the string is a palindrome, False otherwise.
Top trending discussions
posted on 18 Jul 2024
I applied via Naukri.com and was interviewed in Jun 2024. There was 1 interview round.
Yes, I have implemented context managers in my applications.
Implemented context managers using the 'with' statement in Python
Used contextlib module to create custom context managers
Managed resources like file handling, database connections, and locks using context managers
API calls are authenticated using tokens or API keys.
Use tokens or API keys to authenticate API calls
Implement OAuth for secure authentication
Set up API rate limiting to prevent abuse
Use HTTPS to encrypt data during transmission
The super keyword is used to call the superclass's methods and constructors in a subclass in Python.
super() is used to call the superclass's methods and constructors in a subclass.
It helps in achieving method overriding and method resolution order in multiple inheritance.
super() is commonly used in the __init__() method of a subclass to initialize the superclass's attributes.
Docker is a platform that allows you to package, distribute, and run applications in containers.
Docker uses containerization technology to create isolated environments for applications to run in
Containers share the host OS kernel but have their own filesystem and resources
Docker images are used to create containers, which can be easily distributed and run on any system
Docker uses a client-server architecture with a dae
posted on 14 Oct 2024
I applied via Company Website and was interviewed in Sep 2024. There were 2 interview rounds.
To check if an IP address is correct, validate the format and range of each octet.
Check if the IP address has 4 octets separated by periods.
Validate each octet to be between 0 and 255.
Ensure there are no leading zeros in each octet.
Use regular expressions for pattern matching.
Consider using built-in libraries like ipaddress in Python.
posted on 18 Jul 2024
I applied via Naukri.com and was interviewed in Jun 2024. There was 1 interview round.
Yes, I have implemented context managers in my applications.
Implemented context managers using the 'with' statement in Python
Used contextlib module to create custom context managers
Managed resources like file handling, database connections, and locks using context managers
API calls are authenticated using tokens or API keys.
Use tokens or API keys to authenticate API calls
Implement OAuth for secure authentication
Set up API rate limiting to prevent abuse
Use HTTPS to encrypt data during transmission
The super keyword is used to call the superclass's methods and constructors in a subclass in Python.
super() is used to call the superclass's methods and constructors in a subclass.
It helps in achieving method overriding and method resolution order in multiple inheritance.
super() is commonly used in the __init__() method of a subclass to initialize the superclass's attributes.
Docker is a platform that allows you to package, distribute, and run applications in containers.
Docker uses containerization technology to create isolated environments for applications to run in
Containers share the host OS kernel but have their own filesystem and resources
Docker images are used to create containers, which can be easily distributed and run on any system
Docker uses a client-server architecture with a dae
based on 1 interview
Interview experience
Deputy Manager
2.8k
salaries
| ₹5.1 L/yr - ₹19 L/yr |
Assistant Manager
2.2k
salaries
| ₹4.2 L/yr - ₹12.8 L/yr |
Manager
1.5k
salaries
| ₹10 L/yr - ₹29.4 L/yr |
Senior Engineer
970
salaries
| ₹6.5 L/yr - ₹17 L/yr |
Team Lead
820
salaries
| ₹1.5 L/yr - ₹9.3 L/yr |
Tata Motors
Maruti Suzuki
Ashok Leyland
Hero MotoCorp