i
Cognizant
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
Python is a high-level programming language known for its simplicity, readability, and versatility. It is widely used for web development, data analysis, artificial intelligence, and more.
Python is easy to learn and read, making it a great choice for beginners and experienced developers alike.
Python has a large standard library and many third-party packages, making it suitable for a wide range of applications.
Python is...
I applied via Naukri.com and was interviewed in Oct 2021. There was 1 interview round.
Inheritance is a mechanism in object-oriented programming where a new class is created from an existing class.
Allows for code reuse and avoids redundancy
The new class (subclass) inherits properties and methods from the existing class (superclass)
Subclass can add new properties and methods or override existing ones
Example: A Car class can inherit properties and methods from a Vehicle class
Lambda functions are anonymous functions that can be defined without a name.
Lambda functions are defined using the lambda keyword.
They can take any number of arguments, but can only have one expression.
They are often used as arguments for higher-order functions.
Example: lambda x: x**2 defines a lambda function that squares its input.
Numpy is a Python library for numerical computing with support for large, multi-dimensional arrays and matrices.
Numpy provides efficient mathematical operations on arrays.
It is widely used in scientific computing, data analysis, and machine learning.
Numpy arrays are homogeneous and can be indexed and sliced like lists.
Broadcasting allows for element-wise operations on arrays of different shapes.
Numpy also includes line...
Pandas is a Python library used for data manipulation and analysis.
Pandas provides data structures for efficiently storing and manipulating large datasets.
It offers tools for data cleaning, merging, reshaping, and visualization.
Pandas can handle various data formats such as CSV, Excel, SQL databases, and JSON.
It is widely used in data science, finance, economics, and other fields.
Example: df = pd.read_csv('data.csv') c
There are 7 types of operators in Python.
Arithmetic operators (+, -, *, /, %, //, **)
Comparison operators (==, !=, >, <, >=, <=)
Assignment operators (=, +=, -=, *=, /=, %=, //=, **=)
Logical operators (and, or, not)
Bitwise operators (&, |, ^, ~, <<, >>)
Identity operators (is, is not)
Membership operators (in, not in)
I applied via Company Website and was interviewed in Dec 2024. There was 1 interview round.
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
I applied via Approached by Company and was interviewed in Nov 2024. There were 2 interview rounds.
Use string manipulation to reverse an integer in Python.
Convert the integer to a string
Use string slicing to reverse the string
Convert the reversed string back to an integer
Docker image is a template used to create containers, while a container is a running instance of an image.
Docker image is read-only, while a container is a writable instance of an image.
Multiple containers can be created from the same image, but each container is isolated from others.
Containers can be started, stopped, moved, and deleted, while images are static and cannot be changed.
Images are used to package an appli...
I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.
String,lists,dict and coding knowledge
I was interviewed in Nov 2024.
posted on 2 Sep 2024
HTTP is a protocol used for transferring data over the internet. REST API is a set of rules for building web services.
HTTP stands for Hypertext Transfer Protocol, used for communication between web servers and clients
REST API (Representational State Transfer) is a set of rules for building web services that adhere to the principles of REST
RESTful APIs use standard HTTP methods like GET, POST, PUT, DELETE to perform CRU...
Time complexity refers to the amount of time an algorithm takes to run as a function of the input size.
It measures how the runtime of an algorithm grows as the input size increases.
Common time complexities include O(1) constant time, O(log n) logarithmic time, O(n) linear time, O(n^2) quadratic time, and O(2^n) exponential time.
Understanding time complexity helps in analyzing and optimizing algorithms for efficiency.
Ex...
Associate
72.4k
salaries
| ₹5.1 L/yr - ₹15.9 L/yr |
Programmer Analyst
55.4k
salaries
| ₹2.4 L/yr - ₹9.6 L/yr |
Senior Associate
48.3k
salaries
| ₹8.9 L/yr - ₹27.1 L/yr |
Senior Processing Executive
28.6k
salaries
| ₹1.8 L/yr - ₹9 L/yr |
Technical Lead
17.6k
salaries
| ₹5.9 L/yr - ₹24.2 L/yr |
TCS
Infosys
Wipro
Accenture