Filter interviews by
I applied via Naukri.com and was interviewed in Feb 2022. There were 2 interview rounds.
Top trending discussions
I applied via Naukri.com and was interviewed in Oct 2024. There was 1 interview round.
List is mutable, tuple is immutable in Python.
List uses square brackets [], tuple uses parentheses ().
List elements can be changed, added, or removed, tuple elements cannot be changed.
Lists are used for collections of items that may need to be modified, tuples are used for fixed collections of items.
Example: list_example = [1, 2, 3], tuple_example = (4, 5, 6)
Namespace is a way to organize variables and functions in a program to avoid naming conflicts.
Namespace helps in avoiding naming conflicts by providing a unique space for each identifier.
Types of namespaces include global namespace, local namespace, built-in namespace, and module namespace.
Example: In Python, each module has its own namespace where all the variables and functions defined in that module reside.
Multiple inheritance in Python allows a class to inherit attributes and methods from more than one parent class.
Python supports multiple inheritance by allowing a class to inherit from multiple parent classes.
The order of parent classes in the inheritance list matters, as methods are searched for in the order they appear.
Diamond problem can occur in multiple inheritance when two parent classes have a common ancestor cl...
Lambda function is an anonymous function defined using the lambda keyword in Python.
Lambda functions are used for creating small, one-time use functions without a name.
Syntax: lambda arguments: expression
Example: double = lambda x: x * 2
Closure is a function that retains the bindings of the free variables that exist when the function is defined.
Closure allows a function to access and manipulate variables outside of its scope.
It is commonly used in callback functions, event handlers, and decorators.
Example: defining a function within another function to access the outer function's variables.
I applied via Recruitment Consulltant and was interviewed in Jun 2023. There were 2 interview rounds.
I applied via Company Website and was interviewed in Jan 2023. There were 2 interview rounds.
Questions on OOPs concepts, differences between list and tuple, and updating a dictionary.
OOPs concepts include inheritance, polymorphism, encapsulation, and abstraction.
Lists are mutable while tuples are immutable.
To update a dictionary, use the key to access the value and assign a new value to it.
Example: my_dict = {'name': 'John', 'age': 25}; my_dict['age'] = 26
Manager
117
salaries
| ₹7.1 L/yr - ₹28.8 L/yr |
Assistant Manager
116
salaries
| ₹3.8 L/yr - ₹15 L/yr |
Software Engineer
83
salaries
| ₹5 L/yr - ₹21 L/yr |
Senior Manager
70
salaries
| ₹12 L/yr - ₹40 L/yr |
Engineer
44
salaries
| ₹2.1 L/yr - ₹10.1 L/yr |
Reliance Industries
Aditya Birla Group
Mahindra & Mahindra
Bharti Enterprises