i
Cognizant
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
I applied via Campus Placement
Aptitude test had 3 sections
1.Quantitative aptitude
2.Verbal
3.Logical Reasoning
Python has several directories including site-packages, dist-packages, and user site-packages.
site-packages directory contains third-party packages installed globally
dist-packages directory contains packages installed by the distribution's package manager
user site-packages directory contains packages installed by the user
sys.path is a list of directories searched for modules
PYTHONPATH environment variable can be used t
Polymorphism is the ability of an object to take on many forms.
Polymorphism allows objects to be treated as if they are of different types.
It is achieved through method overloading and method overriding.
Example: A shape class can have different subclasses like circle, square, etc. and each subclass can have its own implementation of the draw method.
Polymorphism makes code more flexible and reusable.
Recursion function code and finding smallest product of 10 whole numbers.
Recursion function code: function recursion(num) { if(num === 0) { return 1; } else { return num * recursion(num-1); } }
To find smallest product of 10 whole numbers, we can multiply the smallest 5 negative numbers with the smallest 5 positive numbers.
Example: [-5, -4, -3, -2, -1, 1, 2, 3, 4, 5] => (-5) * (-4) * (-3) * (-2) * (-1) * 1 * 2 * 3 * 4 *
The product of the first 5 prime numbers is 2 x 3 x 5 x 7 x 11 = 2310.
The first 5 prime numbers are 2, 3, 5, 7, and 11.
To find the product, multiply these numbers together.
The product of the first 5 prime numbers is 2 x 3 x 5 x 7 x 11 = 2310.
I applied via LinkedIn and was interviewed before Sep 2021. There were 2 interview rounds.
PERCENTAGE, RATIO, CALENDAR, SYNONYMS, ARRANGE THE SENTENCE,
What people are saying about Cognizant
I applied via LinkedIn and was interviewed in Oct 2021. There were 3 interview rounds.
Cognizant interview questions for designations
I applied via Company Website and was interviewed in Sep 2021. There were 3 interview rounds.
Get interview-ready with Top Cognizant Interview Questions
I applied via Campus Placement and was interviewed in Jul 2021. There was 1 interview round.
Yes, Python is an interpreted language.
Python code is executed line by line without compilation
Python interpreter converts code into bytecode and executes it
Python interpreter is available for multiple platforms
Python can also be compiled into executable code using tools like PyInstaller
List is mutable while tuple is immutable.
Lists can be modified while tuples cannot
Lists use square brackets [] while tuples use parentheses ()
Lists are used for collections of data that can be changed while tuples are used for fixed collections of data
Lists are slower than tuples
Example: list = [1, 2, 3], tuple = (1, 2, 3)
Yes, Python is case sensitive. Decorators are functions that modify the behavior of other functions.
Python is case sensitive, meaning that 'hello' and 'Hello' are two different variables
Decorators are functions that take another function as input and extend its functionality
They are denoted by the '@' symbol and placed above the function definition
Example: @decorator_function def my_function(): # code here
Common ...
Slicing is a way to extract a portion of a sequence (string, list, tuple) in Python.
Syntax: sequence[start:stop:step]
start is the index where the slice starts (inclusive)
stop is the index where the slice ends (exclusive)
step is the interval between each index in the slice
Examples: 'hello'[1:4] returns 'ell', [1,2,3,4,5][::2] returns [1,3,5]
Pass, continue and break are control statements used in loops and conditional statements.
Pass statement is used to do nothing in a loop or conditional statement.
Continue statement is used to skip the current iteration of a loop and move to the next iteration.
Break statement is used to exit out of a loop or conditional statement.
Python is a high-level, interpreted programming language known for its simplicity and ease of use.
Python is used for web development, data analysis, artificial intelligence, and more.
It has a large standard library and supports multiple programming paradigms.
Python code is easy to read and write, making it a popular choice for beginners.
Python is dynamically typed, meaning variables can change type during runtime.
Popul...
I applied via Company Website and was interviewed in Aug 2021. There were 3 interview rounds.
The program prints a pattern of alternating 1s and 0s in a specific sequence.
Use a loop to iterate through the given sequence of numbers
Inside the loop, check the length of each number and print the corresponding pattern of 1s and 0s
Repeat the pattern until all numbers are processed
Inheritance is the process by which genetic information is passed down from parents to their offspring.
Inheritance determines traits such as eye color, hair color, and height.
It occurs through the transmission of DNA from parent to child.
Inherited traits can be dominant or recessive, and can be influenced by multiple genes.
Mutations in genes can also affect inheritance patterns.
Inheritance can be studied through pedigr
I applied via Company Website and was interviewed in Feb 2022. There were 3 interview rounds.
Question on distance traveled, boat, find the next number
Write a program for even and odd number
OOPs in Java is a programming paradigm that focuses on objects and their interactions.
Encapsulation, Inheritance, Polymorphism, and Abstraction are the four pillars of OOPs in Java.
Encapsulation is the process of hiding implementation details from the user.
Inheritance is the process of inheriting properties and methods from a parent class.
Polymorphism is the ability of an object to take on many forms.
Abstraction is the...
I applied via Campus Placement and was interviewed in Jun 2021. There were 4 interview rounds.
Object-oriented programming paradigm that focuses on data encapsulation, inheritance, and polymorphism.
Encapsulation: bundling of data and methods that manipulate the data within a single unit
Inheritance: ability of a class to inherit properties and methods from a parent class
Polymorphism: ability of objects to take on multiple forms or behaviors depending on the context
Examples: Java, C++, Python
The duration of Cognizant GenC interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 55 interviews
4 Interview rounds
based on 11 reviews
Rating in categories
Associate
72.3k
salaries
| ₹5.1 L/yr - ₹16 L/yr |
Programmer Analyst
55.6k
salaries
| ₹2.4 L/yr - ₹9.6 L/yr |
Senior Associate
48.6k
salaries
| ₹9 L/yr - ₹27.4 L/yr |
Senior Processing Executive
28.9k
salaries
| ₹1.8 L/yr - ₹9 L/yr |
Technical Lead
17.6k
salaries
| ₹5.9 L/yr - ₹24.9 L/yr |
TCS
Infosys
Wipro
Accenture