i
Ernst & Young
Filter interviews by
OOPS concepts are fundamental principles in object-oriented programming, including inheritance, encapsulation, polymorphism, and abstraction.
Inheritance: Allows a class to inherit attributes and methods from another class. Example: class Dog inherits from class Animal.
Encapsulation: Bundling data and methods that operate on the data into a single unit. Example: using private variables in a class.
Polymorphism: Ability t...
Multithreading allows multiple threads to run concurrently. Deadlock can be removed by avoiding circular wait, preempting resources, and using timeouts.
Avoid circular wait by ensuring threads acquire resources in the same order
Preempt resources by releasing them if a thread cannot acquire all necessary resources
Use timeouts to prevent threads from waiting indefinitely for resources
I applied via Recruitment Consultant and was interviewed in Jun 2019. There were 4 interview rounds.
Decorators in Python are a way to modify the behavior of a function or class without changing its source code.
Decorators are defined using the @ symbol followed by the decorator name.
They can be used to add functionality to existing functions or classes.
Decorators can be used for logging, timing, authentication, etc.
They can also be stacked to apply multiple decorators to a single function or class.
Example: @staticmeth...
To convert a .txt file into a .csv file in Python, you can use the csv module.
Import the csv module
Open the .txt file in read mode
Open a new .csv file in write mode
Use csv.reader to read the .txt file line by line
Use csv.writer to write each line to the .csv file
Lists and tuples are both sequence data types in Python, but they have some key differences.
Lists are mutable, meaning their elements can be changed, added, or removed, while tuples are immutable.
Lists are defined using square brackets [], while tuples are defined using parentheses ().
Lists are typically used for collections of similar items, while tuples are used for heterogeneous data.
Lists have more built-in methods...
I applied via Naukri.com
I was interviewed in Jan 2025.
posted on 14 Sep 2024
25 Questions, Multiple choice, Single correct as well as multi-correct, related tp python, django & flask
Find the maximum occurring number in a list of numbers without using any in-built functions, in linear time using, O(1) space
Lists are mutable, ordered collections of items while tuples are immutable, ordered collections of items.
Lists are defined using square brackets [] while tuples are defined using parentheses ().
Lists can be modified (add, remove, change elements) while tuples cannot be modified once created.
Lists are typically used for collections of similar items that may need to be modified, while tuples are used for fixed collection...
Shallow copy creates a new object but does not duplicate nested objects, while deep copy creates a new object with all nested objects duplicated.
Shallow copy only copies the references of nested objects, not the objects themselves.
Deep copy creates new copies of all nested objects, ensuring complete independence.
In Python, shallow copy can be achieved using the copy() method, while deep copy can be achieved using the d
MVT architecture stands for Model-View-Template architecture, commonly used in web development with Django framework.
MVT separates the logic of an application into three components: Model, View, and Template.
Model represents the data structure, View handles the user interface and business logic, and Template manages the presentation layer.
MVT is similar to MVC (Model-View-Controller) architecture but with a different n...
Decorators in Python are functions that modify the behavior of other functions or methods.
Decorators are denoted by the @ symbol followed by the decorator name.
They allow you to wrap another function in order to extend or modify its behavior.
Decorators are commonly used for logging, authentication, and memoization.
Example: @staticmethod decorator in Python is used to define a method that is not bound to an instance of
Static methods are bound to the class itself, while instance methods are bound to instances of the class. Use @staticmethod decorator for static methods.
Static methods do not have access to class or instance attributes, while instance methods do.
Instance methods can modify instance state, while static methods cannot.
To define a static method in Python, use the @staticmethod decorator before the method definition.
Exampl...
Inheritance is a mechanism in which a new class inherits attributes and methods from an existing class.
Inheritance allows a class to reuse code from another class.
Python supports single, multiple, and multilevel inheritance.
Example: class ChildClass(ParentClass):
Access specifiers in Python control the accessibility of class attributes and methods.
Access specifiers are not explicitly defined in Python like in other languages such as Java or C++.
By convention, attributes and methods starting with a single underscore (_) are considered 'protected' and should not be accessed directly.
Attributes and methods starting with double underscores (__) are considered 'private' and are name
I applied via Job Portal
Python coding exercise for array sorting
I applied via Naukri.com and was interviewed in Jun 2022. There were 3 interview rounds.
Pandas question , python data structures, live coding
posted on 15 May 2024
I applied via Naukri.com and was interviewed in Apr 2024. There was 1 interview round.
I applied via Company Website and was interviewed in Jan 2023. There were 3 interview rounds.
The basic levels of python and coding
Decorators are functions that modify the behavior of other functions. Palindrome and prime number codes are also commonly asked in Python interviews.
Decorators are denoted by '@' symbol and placed above the function definition
They can be used to add functionality to a function without modifying its code
Examples of decorators include @staticmethod, @classmethod, and @property
Palindrome number code checks if a number is ...
Interview experience
Senior Consultant
15.6k
salaries
| ₹9.1 L/yr - ₹29.5 L/yr |
Consultant
11.9k
salaries
| ₹6 L/yr - ₹19 L/yr |
Manager
7.5k
salaries
| ₹16.5 L/yr - ₹52 L/yr |
Assistant Manager
6.4k
salaries
| ₹9.5 L/yr - ₹29 L/yr |
Associate Consultant
3.8k
salaries
| ₹3.5 L/yr - ₹12 L/yr |
Deloitte
PwC
EY Global Delivery Services ( EY GDS)
Accenture