i
Certainty Infotech
Filter interviews by
I was interviewed in Aug 2019.
Python uses automatic memory management through a garbage collector.
Python uses reference counting to keep track of objects in memory.
When an object's reference count reaches zero, it is automatically deallocated.
Python also employs a garbage collector to handle cyclic references.
The garbage collector identifies and collects objects that are no longer reachable.
Memory management in Python is transparent to the develope
self is a reference to the instance of the class and is used to access its attributes and methods.
self is the first parameter of any method in a class.
It is used to refer to the instance of the class within the class itself.
self allows the instance to access its own attributes and methods.
It is automatically passed when a method is called on an instance.
Pickling is the process of converting a Python object into a byte stream, while unpickling is the reverse process.
Pickling allows objects to be serialized and stored in a file or transferred over a network.
The pickle module in Python provides functions for pickling and unpickling objects.
Example: Pickling a list - pickle.dump([1, 2, 3], file)
Example: Unpickling a list - pickle.load(file)
Generators in Python are functions that can be paused and resumed, allowing for efficient memory usage and lazy evaluation.
Generators are created using the yield keyword
They are used to create iterators
Generators produce a sequence of values on-the-fly
They are memory efficient as they generate values one at a time
Generators are useful for processing large datasets or infinite sequences
Deep copy creates a new object and recursively copies all the objects it references, while shallow copy creates a new object and references the same objects as the original.
Deep copy creates a completely independent copy of an object, including all nested objects.
Shallow copy creates a new object, but references the same nested objects as the original.
Deep copy is useful when you want to modify one object without affec...
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 Naukri.com
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.
I applied via Company Website and was interviewed in Sep 2022. There were 2 interview rounds.
Python is a high-level programming language known for its simplicity and readability.
Python is an interpreted language, meaning it does not need to be compiled before running.
It has a large standard library that provides many pre-built functions and modules.
Python supports multiple programming paradigms, including procedural, object-oriented, and functional programming.
It is widely used in web development, data analysi...
Python benefits include simplicity, versatility, and a large community support.
Python is easy to learn and read, making it a great language for beginners.
Python has a wide range of applications, from web development to data analysis and machine learning.
Python has a large and active community, providing extensive documentation, libraries, and frameworks.
Python's simplicity and readability contribute to faster developme...
Python has 35 keywords.
Python has a set of reserved words that cannot be used as variable names or identifiers.
These keywords are used to define the syntax and structure of the Python language.
Examples of Python keywords include 'if', 'else', 'for', 'while', 'def', 'class', 'import', etc.
A set is an unordered collection of unique elements in Python.
Sets are created using curly braces or the set() function.
Sets do not allow duplicate elements.
Sets can perform mathematical operations like union, intersection, difference, and symmetric difference.
Sets are mutable, meaning you can add or remove elements from a set.
Sets are useful for removing duplicates from a list or checking for membership of an element.
Lists are mutable while tuples are immutable.
Lists are enclosed in square brackets [], while tuples are enclosed in parentheses ().
Elements in a list can be added, removed or modified, while elements in a tuple cannot be modified.
Lists are used for collections of homogeneous items, while tuples are used for collections of heterogeneous items.
Lists are generally used for sequences that need to be modified frequently, wh...
Software Engineer
5
salaries
| ₹2 L/yr - ₹3.6 L/yr |
Senior Software Engineer
5
salaries
| ₹6 L/yr - ₹10 L/yr |
Research Executive
5
salaries
| ₹3.2 L/yr - ₹4.4 L/yr |
Associate Manager - HR
4
salaries
| ₹5.5 L/yr - ₹5.5 L/yr |
Associate Software Engineer
3
salaries
| ₹2.3 L/yr - ₹2.8 L/yr |
TCS
Infosys
Wipro
HCLTech