Upload Button Icon Add office photos
Engaged Employer

i

This company page is being actively managed by Cognizant Team. If you also belong to the team, you can get access from here

Cognizant Verified Tick

Compare button icon Compare button icon Compare

Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards

zig zag pattern zig zag pattern

Filter interviews by

Cognizant Software Developer Interview Questions, Process, and Tips

Updated 16 Jan 2025

Top Cognizant Software Developer Interview Questions and Answers

  • Q1. Nth Fibonacci Number Problem Statement Calculate the Nth term in the Fibonacci sequence, where the sequence is defined as follows: F(n) = F(n-1) + F(n-2) , with initial ...read more
  • Q2. Pair Sum Problem Statement Given an integer array ARR of size N and an integer S , your goal is to return a list of all pairs of elements such that the sum of elements o ...read more
  • Q3. Minimize Hamming Distance Problem Ninja has strategically formed a team to combat enemies in his city. Each ninja in the team has a specific range of attack, and the tea ...read more
View all 47 questions

Cognizant Software Developer Interview Experiences

123 interviews found

I was interviewed in Oct 2021.

Round 1 - Coding Test 

(2 Questions)

Round duration - 180 Minutes
Round difficulty - Easy

The first round was based on algorithms, pseudo-codes, 2-3 questions from DBMS and CN, 3 coding questions, and 3 DBMS queries.

  • Q1. 

    Minimize Hamming Distance Problem

    Ninja has strategically formed a team to combat enemies in his city. Each ninja in the team has a specific range of attack, and the team has successfully acquired the att...

  • Ans. 

    Minimize Hamming distance between two arrays by swapping elements at allowed indices.

    • Iterate through allowed swaps and swap elements in ninja array accordingly.

    • Calculate Hamming distance between ninja and enemies arrays after swaps.

    • Return the minimum Hamming distance obtained.

  • Answered by AI
  • Q2. 

    Number of Islands Problem Statement

    You are provided with a 2-dimensional matrix having N rows and M columns, containing only 1s (land) and 0s (water). Your goal is to determine the number of islands in t...

  • Ans. 

    Count the number of islands in a 2D matrix of 1s and 0s.

    • Use Depth First Search (DFS) or Breadth First Search (BFS) to traverse the matrix and identify connected groups of 1s.

    • Maintain a visited array to keep track of visited cells to avoid revisiting them.

    • Increment the island count each time a new island is encountered.

    • Consider all eight possible directions for connectivity between cells.

    • Handle edge cases like out of bo

  • Answered by AI
Round 2 - Video Call 

(1 Question)

Round duration - 45 minutes
Round difficulty - Medium

It was a TR+HR round .
The interviewer started with “Tell me about yourself”. Then he asked some Java fundamental questions then he sked me the lifecycle of Software development. In HR round I was asked about what I know about Cognizant why I want to join this particular company, Am i okay with relocation, How can I contribute to companies growth etc.

  • Q1. 

    Nth Fibonacci Number Problem Statement

    Calculate the Nth term in the Fibonacci sequence, where the sequence is defined as follows: F(n) = F(n-1) + F(n-2), with initial conditions F(1) = F(2) = 1.

    Input:

    ...
  • Ans. 

    Calculate the Nth Fibonacci number efficiently using dynamic programming.

    • Use dynamic programming to store and reuse previously calculated Fibonacci numbers.

    • Start with base cases F(1) and F(2) as 1, then calculate subsequent Fibonacci numbers.

    • Optimize the solution to avoid redundant calculations by storing intermediate results.

    • Time complexity can be reduced to O(N) using dynamic programming.

    • Example: For N = 5, the 5th F

  • Answered by AI

Interview Preparation Tips

Eligibility criteria7 CGPACognizant interview preparation:Topics to prepare for the interview - Data Structures, My SQL, OOPS, Database, Algorithms, Dynamic Programming, Operating SystemTime required to prepare for the interview - 3 MonthsInterview preparation tips for other job seekers

Tip 1 : Practice Atleast 250 Questions Leetcode
Tip 2 : For DSA questions in interviews, start explaining from the brute force approach and then move to the optimal one. Convey your thought process to the interviewers, so that they can help you out if you get stuck.
Tip 3 : Do not write anything that you are not confident of in resume
Tip 4 : Do atleast 2 projects

Application resume tips for other job seekers

Tip 1 : Try to include at least one development project in your resume.
Tip 2 : Interviewer will ask anything from your resume so be prepared for it.
Tip 3 : Don't mention some random projects which you are not sure about or copied from Google or somewhere else.

Final outcome of the interviewSelected

Skills evaluated in this interview

Interview experience
3
Average
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
Not Selected

I applied via Campus Placement and was interviewed before Apr 2023. There were 3 interview rounds.

Round 1 - Aptitude Test 

Maths puzzles english

Round 2 - Coding Test 

Basic codes like prime numbers and reverse the number

Round 3 - One-on-one 

(1 Question)

  • Q1. Communiation check

Interview Preparation Tips

Topics to prepare for Cognizant Software Developer interview:
  • java
Interview preparation tips for other job seekers - study well

Software Developer Interview Questions Asked at Other Companies

asked in Amazon
Q1. Maximum Subarray Sum Problem Statement Given an array of integers ... read more
asked in Amazon
Q2. Minimum Number of Platforms Needed Problem Statement You are give ... read more
asked in Rakuten
Q3. Merge Two Sorted Arrays Problem Statement Given two sorted intege ... read more
asked in Cognizant
Q4. Nth Fibonacci Number Problem Statement Calculate the Nth term in ... read more
Q5. Find Duplicate in Array Problem Statement You are provided with a ... read more

I applied via Company Website and was interviewed in Jul 2022. There was 1 interview round.

Round 1 - Technical 

(1 Question)

  • Q1. What is virtual function
  • Ans. 

    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

  • Answered by AI

Interview Preparation Tips

Topics to prepare for Cognizant Software Developer interview:
  • Core Java
  • SQL
Interview preparation tips for other job seekers - If you know Java then even try to learn even some concepts of c++ as well.

Skills evaluated in this interview

Round 1 - Coding Test 

Coding and objective questions

Round 2 - Technical 

(1 Question)

  • Q1. Project related questions

Interview Preparation Tips

Interview preparation tips for other job seekers - Project related questions and application architecture related stuffs

Cognizant interview questions for designations

 Junior Software Developer

 (10)

 Senior Software Developer

 (7)

 Software Developer Intern

 (5)

 Software Developer fresher

 (5)

 Associate Software Developer

 (2)

 Software Developer Trainee

 (1)

 Full Stack Software Developer

 (5)

 Python Software Developer

 (3)

Interview experience
4
Good
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Naukri.com and was interviewed before Oct 2022. There was 1 interview round.

Round 1 - Technical 

(2 Questions)

  • Q1. Java Collections, Multithreading, Spring Boot
  • Q2. Angular, Microservices, Spring Framework

Get interview-ready with Top Cognizant Interview Questions

I applied via Company Website and was interviewed in Dec 2021. There were 5 interview rounds.

Interview Questionnaire 

1 Question

  • Q1. What type of language do you prefer for complex algorithm ?
  • Ans. 

    I prefer using a language that is efficient and has strong support for data structures and algorithms.

    • Languages like C++, Java, and Python are good choices for complex algorithms

    • C++ has strong support for data structures and is efficient in terms of memory and speed

    • Java has a vast library of data structures and algorithms and is easy to read and maintain

    • Python has a simple syntax and is great for prototyping and testin...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Master the essential algorithms and data structures that are tested in coding interview

I applied via Company Website and was interviewed in May 2022. There were 3 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Coding Test 

Programming in java

Round 3 - Aptitude Test 

Any apptitude

Interview Preparation Tips

Topics to prepare for Cognizant Software Developer interview:
  • Java full stock developer
Interview preparation tips for other job seekers - So nice very interesting for the job in software developer
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Naukri.com and was interviewed before Oct 2022. There were 2 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Technical 

(2 Questions)

  • Q1. What is middle ware?
  • Ans. 

    Middle ware is software that acts as a bridge between different applications or systems, allowing them to communicate and share data.

    • Middle ware facilitates communication between different software applications or systems

    • It acts as a bridge, allowing applications to share data and functionality

    • Examples include message brokers like RabbitMQ, integration platforms like MuleSoft, and API gateways like Kong

  • Answered by AI
  • Q2. Project experience

Skills evaluated in this interview

Interview Questionnaire 

2 Questions

  • Q1. Core java Oops concepts
  • Q2. Programming using collections
  • Ans. 

    Programming using collections involves using data structures to store and manipulate groups of related objects.

    • Collections provide a way to organize and manage data efficiently

    • Common collections include arrays, lists, sets, and maps

    • Collections can be used to perform operations such as sorting, filtering, and searching

    • Examples of collection-based programming include iterating through a list of items and adding or removi

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Be strong on core java concepts

I applied via Recruitment Consultant and was interviewed in Sep 2021. There was 1 interview round.

Interview Questionnaire 

1 Question

  • Q1. No matter how much experience you have, they are going to demotivate you and let your confidence down

Interview Preparation Tips

Interview preparation tips for other job seekers - All the companies have different work flows. But they want the answers to their question as per their approach.
Example: They ask the questions of a Solution Architect to a developer and expect all the answers to be correct.

Cognizant Interview FAQs

How many rounds are there in Cognizant Software Developer interview?
Cognizant interview process usually has 2-3 rounds. The most common rounds in the Cognizant interview process are Technical, Aptitude Test and Coding Test.
How to prepare for Cognizant Software Developer interview?
Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at Cognizant. The most common topics and skills that interviewers at Cognizant expect are Java, Spring Boot, Maven, Core Java and Microservices.
What are the top questions asked in Cognizant Software Developer interview?

Some of the top questions asked at the Cognizant Software Developer interview -

  1. What type of language do you prefer for complex algorith...read more
  2. How is salesforce lightning different from class...read more
  3. What is normalization and difference between 3NF and B...read more
How long is the Cognizant Software Developer interview process?

The duration of Cognizant Software Developer interview process can vary, but typically it takes about less than 2 weeks to complete.

Tell us how to improve this page.

Cognizant Software Developer Interview Process

based on 108 interviews

5 Interview rounds

  • Technical Round - 1
  • Coding Test Round
  • Technical Round - 2
  • HR Round - 1
  • HR Round - 2
View more
Cognizant Software Developer Salary
based on 5.9k salaries
₹2.4 L/yr - ₹16.9 L/yr
13% more than the average Software Developer Salary in India
View more details

Cognizant Software Developer Reviews and Ratings

based on 473 reviews

4.0/5

Rating in categories

4.0

Skill development

3.9

Work-life balance

3.6

Salary

3.6

Job security

3.9

Company culture

3.3

Promotions

3.8

Work satisfaction

Explore 473 Reviews and Ratings
Associate
72.2k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Programmer Analyst
55.6k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Senior Associate
48.8k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Senior Processing Executive
28.9k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Technical Lead
17.5k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Explore more salaries
Compare Cognizant with

TCS

3.7
Compare

Infosys

3.6
Compare

Wipro

3.7
Compare

Accenture

3.8
Compare
Did you find this page helpful?
Yes No
write
Share an Interview