i
Cognizant
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
Speed calculation and ratio problems.
Reversing an array and calculating the sum of the squares of its elements.
Joins combine rows from two or more tables based on a related column, while unions combine the results of two or more SELECT statements.
Joins are used to combine rows from different tables based on a related column
Unions are used to combine the results of two or more SELECT statements into a single result set
Joins can be inner, outer, left, right, etc. based on the type of join operation
Unions require that the number o...
What people are saying about Cognizant
I was interviewed in Jan 2025.
Cognizant interview questions for popular designations
Asked reasoning question and more
Get interview-ready with Top Cognizant Interview Questions
Counter application using Reactjs
Create a React component for the counter
Use state to keep track of the count
Implement functions to increment and decrement the count
Display the count on the screen
I applied via Campus Placement and was interviewed in Nov 2024. There were 2 interview rounds.
Aptitude test includes number series, profit and loss, percentage, train problems
I applied via Company Website and was interviewed in Aug 2024. There was 1 interview round.
Use libraries like Jackson or Gson to convert JSON file into Java object
Use libraries like Jackson or Gson for easy conversion
Create a POJO class that represents the structure of JSON data
Use ObjectMapper class in Jackson or Gson.fromJson() method to convert JSON file into Java object
Different annotations used in JUnit hooks
Annotations like @Before, @After, @BeforeClass, @AfterClass are used in JUnit hooks
These annotations help in setting up and tearing down test fixtures before and after test methods
Example: @Before public void setUp() { // setup code }
Background keyword in BDD is used to define preconditions for a scenario
Background keyword is used to define steps that are common to all scenarios in a feature file
It helps in reducing duplication of steps in scenarios
Background keyword is placed before the first scenario in a feature file
Different types of exceptions encountered while executing test cases
1. Checked exceptions: Must be caught or declared in the method signature
2. Unchecked exceptions: Not required to be caught or declared
3. Runtime exceptions: Occur during runtime due to logical errors
4. Assertion errors: Failures in assertions made in the test cases
5. Timeout exceptions: Test case takes longer than expected to complete
Drag and Drop is a common interaction in web applications where a user can click and drag an element to a new location.
Drag and Drop is implemented using HTML5's Drag and Drop API.
The syntax involves setting the draggable attribute to true on the element you want to drag.
You also need to define event handlers for dragstart, dragover, and drop events.
Example:
Pinch and zoom syntax is used to zoom in and out on touch screen devices.
Use two fingers to pinch inwards to zoom out
Use two fingers to pinch outwards to zoom in
For zooming, use the 'transform' property in CSS
Some of the top questions asked at the Cognizant interview -
The duration of Cognizant interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 4.2k interviews
Interview experience
based on 50.1k reviews
Rating in categories
Hyderabad / Secunderabad,
Chennai
+16-10 Yrs
Not Disclosed
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