i
Cognizant
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
Asked reasoning question and more
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
What people are saying about Cognizant
Cognizant interview questions for popular designations
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
Get interview-ready with Top Cognizant Interview Questions
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
I was interviewed in Aug 2024.
I applied via Naukri.com and was interviewed in Aug 2024. There were 2 interview rounds.
Online Hackathon test was taken.
I am a passionate React Js Frontend Developer with experience in building user-friendly and responsive web applications.
Experienced in developing web applications using React Js
Proficient in HTML, CSS, and JavaScript
Familiar with state management libraries like Redux
Strong understanding of responsive design principles
Ability to work collaboratively in a team environment
I am responsible for developing and maintaining the frontend of the project using React Js.
Developing user-friendly interfaces using React Js
Implementing responsive design and ensuring cross-browser compatibility
Collaborating with backend developers to integrate frontend with backend services
Optimizing application performance and troubleshooting issues
Participating in code reviews and providing feedback to team members
SSR in React is implemented using server-side rendering to pre-render React components on the server before sending them to the client.
Use libraries like Next.js or Gatsby to implement SSR in React.
Configure server to render React components on the server side.
Optimize server-side rendering for performance by caching rendered components.
To change a React project from development mode to production mode, you need to build the project using the 'npm run build' command.
Run 'npm run build' command in the terminal to create a production build of the project.
This command will generate a 'build' folder with optimized and minified files for production.
You can then deploy the contents of the 'build' folder to a web server for production use.
Lazy loading is a technique used to defer loading non-essential resources until they are needed.
Lazy loading helps improve performance by only loading resources when they are required.
In React, lazy loading can be implemented using React.lazy() and Suspense components.
Example: const MyComponent = React.lazy(() => import('./MyComponent'));
Example:
React routing is a way to handle navigation in a React application by defining routes and rendering components based on the URL.
React routing allows for declarative routing, where routes are defined using JSX elements.
It enables dynamic routing based on the URL, allowing for different components to be rendered based on the route.
React Router is a popular library for handling routing in React applications.
Unlike convent...
The aptitude test was quite easy.
Questions are moderated.
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 49.9k reviews
Rating in categories
Hyderabad / Secunderabad,
Chennai
+14-9 Yrs
Not Disclosed
Hyderabad / Secunderabad,
Chennai
+14-9 Yrs
Not Disclosed
Hyderabad / Secunderabad,
Chennai
+14-9 Yrs
Not Disclosed
Associate
72.2k
salaries
| ₹5.1 L/yr - ₹16 L/yr |
Programmer Analyst
55.5k
salaries
| ₹2.4 L/yr - ₹9.5 L/yr |
Senior Associate
48.6k
salaries
| ₹9 L/yr - ₹27.3 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.7 L/yr |
TCS
Infosys
Wipro
Accenture