Genpact
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
Tuple is an immutable sequence, while list is a mutable sequence in Python.
Tuple elements cannot be modified once assigned, while list elements can be modified.
Tuple uses parentheses () to enclose elements, while list uses square brackets [] to enclose elements.
Tuple is generally used for heterogeneous data types, while list is used for homogeneous data types.
Tuple is faster than list when accessing elements.
Tuple cons
To check if a key exists in a dictionary without raising a KeyError.
Use the 'in' keyword to check if the key exists in the dictionary.
Use the 'get' method to return a default value if the key does not exist.
Use the 'keys' method to get a list of all keys and check if the key is in the list.
Yes, we can create our custom exception in Python.
To create a custom exception, we need to create a class that inherits from the Exception class.
We can define our own message and error code for the custom exception.
We can raise the custom exception using the 'raise' keyword.
Custom exceptions can be used to handle specific errors in our code.
Example: class MyException(Exception): pass
Example: raise MyException('This is
I applied via Recruitment Consulltant and was interviewed in Apr 2022. There were 2 interview rounds.
Quantitative aptitude,data interpretation,reasoning(logical ability),english(verbal ability),computer science&programming
I applied via Naukri.com and was interviewed in Sep 2021. There was 1 interview round.
Testers focus on finding defects while developers focus on creating software.
Testers are responsible for testing the software and finding defects.
Developers are responsible for creating the software and fixing defects.
Testers use test cases and scenarios to ensure the software meets requirements.
Developers use programming languages and tools to create software.
Testers work closely with developers to ensure defects are ...
What people are saying about Genpact
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
Avg aptitude questions
2 easy coding questions
I applied via Company Website and was interviewed in Jul 2024. There was 1 interview round.
Tuples in Python are immutable sequences of elements, similar to lists but cannot be changed once created.
Tuples are created using parentheses ()
Elements in a tuple can be of different data types
Tuples are immutable, meaning their elements cannot be changed once created
Tuples can be used as keys in dictionaries
Dict comprehension is a concise way to create dictionaries in Python using a single line of code.
Dict comprehension uses curly braces {} to create a dictionary with key-value pairs.
It can include conditions and loops to filter or modify the elements being added to the dictionary.
Example: {key: value for key, value in iterable if condition}
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.
based on 2 reviews
Rating in categories
Hyderabad / Secunderabad,
Gurgaon / Gurugram
+14-7 Yrs
Not Disclosed
Process Developer
36.1k
salaries
| ₹1 L/yr - ₹6.8 L/yr |
Process Associate
28k
salaries
| ₹0.9 L/yr - ₹6.5 L/yr |
Assistant Manager
19.8k
salaries
| ₹5 L/yr - ₹14 L/yr |
Management Trainee
19.1k
salaries
| ₹1.6 L/yr - ₹8.5 L/yr |
Manager
7.4k
salaries
| ₹5.7 L/yr - ₹24 L/yr |
Accenture
Capgemini
TCS
Cognizant