i
Cognizant
Filter interviews by
Hashtable is synchronized and does not allow null keys, while hashmap is not synchronized and allows one null key.
Hashtable is synchronized, while hashmap is not.
Hashtable does not allow null keys, while hashmap allows one null key.
Hashtable is thread-safe, while hashmap is not.
Hashtable is slower than hashmap.
Hashtable is part of the legacy collection classes, while hashmap is part of the Java Collections Framewo...
A linked list is a data structure that consists of a sequence of elements where each element points to the next element in the sequence.
Each element in a linked list is called a node.
Nodes in a linked list are connected by pointers or references.
Linked lists can be singly linked (each node points to the next node) or doubly linked (each node points to the next and previous nodes).
An array is a data structure that stores a collection of elements of the same type in a contiguous memory location.
Arrays are used to store multiple values in a single variable.
Elements in an array are accessed by their index, starting from 0.
Example: string[] names = {"Alice", "Bob", "Charlie"};
Arrays can be used to efficiently store and retrieve data in programming.
Arrays can be multidimensional, allowing for mo...
Polymorphism is the ability of a function or method to behave differently based on the object it is acting upon.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
There are two types of polymorphism: compile-time (method overloading) and runtime (method overriding).
Example: Inheritance allows a child class to override a method from its parent class, exhibiting polymorp...
What people are saying about Cognizant
Typing speed is measured in words per minute (WPM) and affects productivity and efficiency in software development.
Typing speed is typically measured in WPM, which indicates how many words a person can type in one minute.
A higher typing speed can lead to increased productivity, especially in coding and documentation tasks.
For example, a developer typing at 60 WPM can complete tasks faster than one typing at 30 WPM...
Virtual function is a function in base class that is overridden in derived class.
Virtual functions allow polymorphism in C++
They are declared using the virtual keyword
They are resolved at runtime based on the object type
Virtual functions can be overridden in derived classes
They are used to achieve runtime polymorphism
Create a class named Person
with a string variable 'name'
and an integer variable 'age'
, such that these variables are not accessible outside the class. Implement a met...
Create a class Person with private variables name and age, and methods to set and get their values.
Create a class Person with private variables 'name' and 'age'.
Implement a method setValue to set the variables' values.
Implement a method getValue to print the variables' values.
Ensure the name is a non-empty string and the age is a non-negative integer.
Encapsulate the data and provide a clear interface for setting a...
Given a text message, your task is to return the Run-length Encoding of the given message.
Run-length encoding is a fast and simple method of encoding strings, represe...
Implement a function to encode a text message using run-length encoding.
Iterate through the message and count consecutive characters
Append the character and its count to the encoded message
Handle edge cases like single characters or empty message
I applied via Campus Placement and was interviewed in Oct 2024. There were 2 interview rounds.
I applied via Company Website and was interviewed in Jun 2024. There were 4 interview rounds.
It was moderate good question from Time and Distance, Good verbal question also
Coding was Easy they ask basic questions prepare well they may ask to show prime number, odd numbers something like this for freshers
I applied via Referral and was interviewed in Aug 2024. There were 2 interview rounds.
Asked basic cods like array, string stream api
I am a passionate software developer with experience in Java, Python, and web development.
Graduated with a degree in Computer Science
Worked on multiple projects using Java and Python
Familiar with web development technologies like HTML, CSS, and JavaScript
Quantitative aptitude,reasoning,English
The coding test contain the 2 Code which are written in Java or python only and there are two SQL query and according to the cluster there are mcq and web development question
I applied via LinkedIn and was interviewed in Apr 2024. There was 1 interview round.
Hashtable is synchronized and does not allow null keys, while hashmap is not synchronized and allows one null key.
Hashtable is synchronized, while hashmap is not.
Hashtable does not allow null keys, while hashmap allows one null key.
Hashtable is thread-safe, while hashmap is not.
Hashtable is slower than hashmap.
Hashtable is part of the legacy collection classes, while hashmap is part of the Java Collections Framework.
Basic to medium aptitude questions
An array is a data structure that stores a collection of elements of the same type in a contiguous memory location.
Arrays are used to store multiple values in a single variable.
Elements in an array are accessed by their index, starting from 0.
Example: string[] names = {"Alice", "Bob", "Charlie"};
Arrays can be used to efficiently store and retrieve data in programming.
Arrays can be multidimensional, allowing for more co...
A linked list is a data structure that consists of a sequence of elements where each element points to the next element in the sequence.
Each element in a linked list is called a node.
Nodes in a linked list are connected by pointers or references.
Linked lists can be singly linked (each node points to the next node) or doubly linked (each node points to the next and previous nodes).
Polymorphism is the ability of a function or method to behave differently based on the object it is acting upon.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
There are two types of polymorphism: compile-time (method overloading) and runtime (method overriding).
Example: Inheritance allows a child class to override a method from its parent class, exhibiting polymorphic b...
Basic simple maths questions
Asked to solve the two quetions using any language
I applied via Campus Placement and was interviewed in Oct 2023. There were 3 interview rounds.
Test was good, and nice experience. It was online.
Simple questions like BST, Sorting and DBMS very questions.
The duration of Cognizant Software Developer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 18 interview experiences
Difficulty level
Duration
based on 504 reviews
Rating in categories
Associate
73k
salaries
| ₹5.3 L/yr - ₹12.5 L/yr |
Programmer Analyst
56.1k
salaries
| ₹3.5 L/yr - ₹7.3 L/yr |
Senior Associate
53k
salaries
| ₹10.6 L/yr - ₹23.4 L/yr |
Senior Processing Executive
29.8k
salaries
| ₹2.2 L/yr - ₹6.5 L/yr |
Technical Lead
18.1k
salaries
| ₹6 L/yr - ₹21.4 L/yr |
TCS
Infosys
Wipro
Accenture