i
Cognizant
Filter interviews by
I embrace new technologies as opportunities for growth, efficiency, and improved outcomes in my work.
I actively seek out training on new software and tools, such as learning advanced data analytics platforms to enhance project outcomes.
In my previous role, I adapted to a new project management tool, which improved team collaboration and project tracking.
I stay updated on industry trends by attending webinars and c...
The self keyword in Python refers to the instance of the class, allowing access to its attributes and methods.
Used in instance methods to refer to the object itself.
Allows access to instance variables: e.g., self.name = 'John'.
Distinguishes between instance variables and local variables.
Required as the first parameter in instance methods: def method(self):.
Enables method chaining: self.method1().method2().
OOPs (Object-Oriented Programming) is a programming paradigm based on objects and classes, promoting code reusability and modularity.
Encapsulation: Bundling data and methods that operate on the data within one unit (e.g., a class).
Inheritance: Mechanism to create a new class from an existing class, inheriting its properties (e.g., a 'Dog' class inheriting from an 'Animal' class).
Polymorphism: Ability to present th...
Reversing a string involves rearranging its characters in the opposite order, which can be done using various programming techniques.
Use built-in functions: In Python, use 'string[::-1]' to reverse a string. Example: 'hello' becomes 'olleh'.
Iterative approach: Loop through the string from the end to the beginning and build a new string. Example: 'world' becomes 'dlrow'.
Recursive method: Define a function that call...
What people are saying about Cognizant
To find the greatest number in an array, iterate through the elements and compare each to determine the maximum value.
Initialize a variable to hold the maximum value, starting with the first element of the array.
Loop through each element of the array, comparing it to the current maximum.
If an element is greater than the current maximum, update the maximum variable.
Return the maximum value after completing the loop...
An Armstrong number is a number that is equal to the sum of its own digits raised to the power of the number of digits.
An example of a 3-digit Armstrong number is 153: 1^3 + 5^3 + 3^3 = 153.
Another example is 9474: 9^4 + 4^4 + 7^4 + 4^4 = 9474.
Armstrong numbers can be found in any number of digits, e.g., 0-9 are all Armstrong numbers.
To check if a number is an Armstrong number, convert it to a string to count digi...
Code to check if a string is a palindrome or not
Create a function that takes a string as input
Reverse the string and compare it with the original string
If they are the same, return true; otherwise, return false
Find the 3rd largest odd number in an array of strings.
Convert the array of strings to an array of integers.
Filter out the odd numbers from the array.
Sort the odd numbers in descending order.
Return the 3rd element from the sorted array.
Attempting to modify an immutable object will result in a compilation error or runtime exception.
Attempting to modify a string literal will result in a compilation error.
Trying to modify elements of an immutable list like ImmutableList in Java will throw an UnsupportedOperationException.
Modifying a frozen set in Python will raise a TypeError.
Use a loop to iterate through each word in the string and compare their lengths to find the largest word.
Split the string into an array of words using a space as the delimiter
Initialize a variable to store the largest word found so far
Iterate through the array of words and compare the length of each word to the length of the current largest word
Update the largest word if a longer word is found
Print the largest wor...
I applied via Campus Placement and was interviewed in Dec 2024. There were 3 interview rounds.
Normal aptitude questions
DSA SQL and html,css,js questions were there
I applied via Campus Placement and was interviewed in Oct 2024. There was 1 interview round.
I applied via Campus Placement and was interviewed in Sep 2024. There were 3 interview rounds.
It was a general aptitude test consisting all possible topics.
General simple competitive coding questions with multiple programming language options.
I applied via Campus Placement and was interviewed in Sep 2024. There were 3 interview rounds.
Attempting to modify an immutable object will result in a compilation error or runtime exception.
Attempting to modify a string literal will result in a compilation error.
Trying to modify elements of an immutable list like ImmutableList in Java will throw an UnsupportedOperationException.
Modifying a frozen set in Python will raise a TypeError.
I applied via Campus Placement and was interviewed in Oct 2024. There were 3 interview rounds.
Very easy …basic aptitude topics were covered
Very easy, HTML, CSS and SQL and python
I applied via Campus Placement and was interviewed in Dec 2024. There were 2 interview rounds.
Its was moderate , basic questions and can written based on the cluster
It was easy its an combination of aptitude and gaming questions
I appeared for an interview in Oct 2024.
Reasoning and encoding questions
Total 3 section are there 1 section is coding, 2 section is sql query, and 3 section is MCQ question in cloud
Communication assessment
I applied via Campus Placement and was interviewed in Oct 2024. There were 3 interview rounds.
Quantitive Aptitude, Analytical
Cluster- Python 2 Coding question, 2 SQL question, 10 networking mcq
I applied via Campus Placement and was interviewed in Dec 2024. There was 1 interview round.
The duration of Cognizant GenC interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 60 interview experiences
Difficulty level
Duration
based on 11 reviews
Rating in categories
Associate
71k
salaries
| ₹5.3 L/yr - ₹12.5 L/yr |
Programmer Analyst
56.1k
salaries
| ₹3.5 L/yr - ₹7.3 L/yr |
Senior Associate
55.4k
salaries
| ₹9.9 L/yr - ₹23.5 L/yr |
Senior Processing Executive
30k
salaries
| ₹2.2 L/yr - ₹6.5 L/yr |
Technical Lead
18.5k
salaries
| ₹6 L/yr - ₹21.2 L/yr |
TCS
Infosys
Wipro
Accenture