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

Filter interviews by

Cognizant Programmer Analyst Interview Questions and Answers for Experienced

Updated 2 Jul 2025

55 Interview questions

A Programmer Analyst was asked 3mo ago
Q. Write an SQL query to find the second highest salary.
Ans. 

SQL query to find the second highest salary from a table of employees.

  • Use the 'DISTINCT' keyword to avoid duplicate salaries.

  • Use 'ORDER BY' clause to sort salaries in descending order.

  • Use 'LIMIT' or 'OFFSET' to skip the highest salary and fetch the second.

  • Example SQL: 'SELECT DISTINCT salary FROM employees ORDER BY salary DESC LIMIT 1 OFFSET 1;'

A Programmer Analyst was asked 3mo ago
Q. Write a program to calculate the sum of the digits of a number.
Ans. 

This program calculates the sum of the digits of a given integer number.

  • Convert the number to a string to iterate through each digit.

  • Initialize a sum variable to zero.

  • For each character in the string, convert it back to an integer and add it to the sum.

  • Return or print the final sum.

Programmer Analyst Interview Questions Asked at Other Companies for Experienced

asked in Cognizant
Q1. 1 Tell me about your self 2 What is c# 3 What is oops concept 4 W ... read more
asked in Cognizant
Q2. Write a program to check whether the given String is a palindrome ... read more
asked in Cognizant
Q3. Explain me about OOPS Concepts. Write a program in C++ to calcula ... read more
asked in Boeing
Q4. difference b/w ref and out , array program to shift the position ... read more
asked in Cognizant
Q5. If a wheel of a car suddenly comes off while driving, would you a ... read more
A Programmer Analyst was asked 3mo ago
Q. What is the program to find the Fibonacci series?
Ans. 

The Fibonacci series is a sequence where each number is the sum of the two preceding ones, starting from 0 and 1.

  • The Fibonacci series starts with 0 and 1.

  • The next number is found by adding up the two numbers before it.

  • Example: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, ...

  • A simple implementation can be done using recursion or iteration.

  • In Python, you can use a loop or a recursive function to generate the series.

A Programmer Analyst was asked 3mo ago
Q. Write a program to reverse an array.
Ans. 

This program reverses an array of strings by swapping elements from both ends towards the center.

  • Define a function that takes an array of strings as input.

  • Use a loop to swap elements from the start and end of the array.

  • Continue swapping until the middle of the array is reached.

  • Example: Input: ['apple', 'banana', 'cherry'], Output: ['cherry', 'banana', 'apple'].

What people are saying about Cognizant

View All
a junior software engineer
2w
Job offer in Malaysia - legit or scam?
Hey everyone, I received a job proposal from Mindgraph for a Junior Mainframe Developer position in Malaysia (onsite). Not sure if it's a real deal. They found my resume on Naukri and the offer includes: * Experience: 3+ years on cardlink, VSAM, CICS, JCL * Location: Malaysia (Accenture client in Kuala Lumpur) * Notice: 0-60 days * Benefits: One-way ticket, 1-week stay, medical insurance, visa. Has anyone heard of Mindgraph or had a similar experience? Note : This is a permanent position with Mindgragh and you need to work with our client Accenture - Malaysia (Kaula Lumpur) & we will provide one way Air Ticket from India - Malaysia, 1 Week Accommodation, Medical Insurance and will take care of the Visa process also. Any insights would be appreciated!
Got a question about Cognizant?
Ask anonymously on communities.
A Programmer Analyst was asked 3mo ago
Q. What is Object-Oriented Programming (OOP)?
Ans. 

Object-Oriented Programming (OOP) is a programming paradigm based on the concept of objects, which can contain data and methods.

  • Encapsulation: Bundling data and methods that operate on the data within one unit (e.g., a class).

  • Inheritance: Mechanism to create a new class using properties and methods of an existing class (e.g., a 'Dog' class inheriting from an 'Animal' class).

  • Polymorphism: Ability to present the sam...

A Programmer Analyst was asked 6mo ago
Q. Implement a queue data structure.
Ans. 

A queue is a linear data structure that follows the First In First Out (FIFO) principle for managing elements.

  • A queue can be implemented using arrays or linked lists.

  • In an array-based implementation, maintain two pointers: front and rear.

  • Enqueue operation adds an element at the rear, while dequeue removes from the front.

  • Example: Enqueue 'A', 'B', 'C' results in queue: ['A', 'B', 'C']. Dequeue removes 'A', resultin...

A Programmer Analyst was asked 7mo ago
Q. Explain Abstraction in Java.
Ans. 

Abstraction in Java is the concept of hiding the implementation details and showing only the necessary features of an object.

  • Abstraction allows programmers to focus on what an object does instead of how it does it.

  • It helps in reducing complexity and improving the efficiency of the code.

  • In Java, abstraction is achieved through abstract classes and interfaces.

  • Example: Animal is an abstract class with abstract method...

Are these interview questions helpful?
A Programmer Analyst was asked 7mo ago
Q. Explain how recursion works with an example.
Ans. 

Recursion is a programming technique where a function calls itself to solve a problem.

  • Recursion involves breaking down a problem into smaller subproblems and calling the function recursively to solve them.

  • Each recursive call works on a smaller input until a base case is reached to stop the recursion.

  • Example: Factorial calculation, Fibonacci sequence, tree traversal.

🔥 Asked by recruiter 2 times
A Programmer Analyst was asked 7mo ago
Q. What are OOPS concepts?
Ans. 

OOPS concepts refer to Object-Oriented Programming concepts which include inheritance, encapsulation, polymorphism, and abstraction.

  • Inheritance: Allows a class to inherit properties and behavior from another class.

  • Encapsulation: Bundling data and methods that operate on the data into a single unit.

  • Polymorphism: Ability to present the same interface for different data types.

  • Abstraction: Hiding the complex implement...

🔥 Asked by recruiter 3 times
A Programmer Analyst was asked
Q. Explain your framework.
Ans. 

Our framework is a robust and flexible tool that streamlines development processes and enhances code reusability.

  • Modular architecture allows for easy customization and scalability

  • Built-in libraries and utilities simplify common tasks

  • Support for various programming languages and platforms

  • Example: Using MVC architecture for organizing code and separating concerns

Cognizant Programmer Analyst Interview Experiences for Experienced

142 interviews found

Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
-

I applied via Campus Placement

Round 1 - Coding Test 

Medium Level leetcode questions.

Round 2 - Technical 

(2 Questions)

  • Q1. Questions on python and logic for a simple python coding question
  • Q2. Questions on AWS medium
Round 3 - HR 

(2 Questions)

  • Q1. Give a brief about yourself
  • Ans. 

    I am a skilled Programmer Analyst with experience in developing and maintaining software applications.

    • Proficient in programming languages such as Java, C++, and Python

    • Strong analytical and problem-solving skills

    • Experience in database management and system integration

    • Ability to work well in a team environment and communicate effectively with stakeholders

  • Answered by AI
  • Q2. Document validation
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
Selected Selected

I applied via Campus Placement and was interviewed in Oct 2024. There were 2 interview rounds.

Round 1 - Aptitude Test 

Basic Aptitude Questions

Round 2 - Technical 

(2 Questions)

  • Q1. OOPS Concept and coding questions
  • Q2. SQL coding questions

Programmer Analyst Interview Questions & Answers

user image Dheeraj Pant

posted on 31 Dec 2024

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Aptitude Test 

Basic apti questions

Round 2 - Coding Test 

4 question based on dsa. Two easy and two difficult

Round 3 - Technical 

(2 Questions)

  • Q1. Data science basics
  • Q2. Implement queue
  • Ans. 

    A queue is a linear data structure that follows the First In First Out (FIFO) principle for managing elements.

    • A queue can be implemented using arrays or linked lists.

    • In an array-based implementation, maintain two pointers: front and rear.

    • Enqueue operation adds an element at the rear, while dequeue removes from the front.

    • Example: Enqueue 'A', 'B', 'C' results in queue: ['A', 'B', 'C']. Dequeue removes 'A', resulting in ...

  • Answered by AI
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Campus Placement and was interviewed in Sep 2024. There were 2 interview rounds.

Round 1 - Coding Test 

SQL,Python,C,C#,Dotnet

Round 2 - Assignment 

Coding challenge with respect to what is mentioned in resume

Interview Preparation Tips

Interview preparation tips for other job seekers - All the best
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Job Portal and was interviewed in Apr 2024. There were 3 interview rounds.

Round 1 - Coding Test 

Coding questions specially based on your technical skills.

Round 2 - Technical 

(4 Questions)

  • Q1. One more technical round to understand your technical skills
  • Q2. Explain about internship
  • Q3. Project you worked in BE
  • Ans. 

    Developed a web-based inventory management system for a local bookstore as part of my Bachelor's degree project.

    • Designed a user-friendly interface using HTML, CSS, and JavaScript.

    • Implemented a backend using PHP and MySQL for data storage and retrieval.

    • Conducted user testing with bookstore staff to gather feedback and improve functionality.

    • Integrated features like search, add, update, and delete for managing inventory.

    • D...

  • Answered by AI
  • Q4. Previous experience
Round 3 - HR 

(1 Question)

  • Q1. One HE round to discuss about terms of employment

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare well for your technical skills
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
Selected Selected

I applied via Approached by Company and was interviewed in Dec 2024. There were 2 interview rounds.

Round 1 - Aptitude Test 

There were questions related to reasoning, English, aptitude, and mathematics.

Round 2 - Coding Test 

Coding round with 4/5 codes were there

Interview Preparation Tips

Interview preparation tips for other job seekers - Please go with basic knowledge based understandings
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
No response

I appeared for an interview in Jan 2025.

Round 1 - Coding Test 

Oops,dsa,sql,30min,easy,hackerrank

Round 2 - Group Discussion 

Group,discussion,coding,java,ml,dsa

Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Naukri.com and was interviewed in Jul 2024. There were 2 interview rounds.

Round 1 - Group Discussion 

Intutive and immersive topic asked was about co2 emission

Round 2 - Case Study 

Algebraic questions and IQ

Interview Preparation Tips

Interview preparation tips for other job seekers - All the begs
Interview experience
4
Good
Difficulty level
Easy
Process Duration
2-4 weeks
Result
Selected Selected

I applied via Naukri.com and was interviewed in Apr 2024. There were 3 interview rounds.

Round 1 - Coding Test 

Frequency of strings

Round 2 - Technical 

(3 Questions)

  • Q1. What is abstract class
  • Ans. 

    Abstract class is a class that cannot be instantiated and may contain abstract methods.

    • Cannot be instantiated directly

    • May contain abstract methods that must be implemented by subclasses

    • Can have both abstract and non-abstract methods

    • Used for creating a template for other classes to inherit from

  • Answered by AI
  • Q2. What exception handling
  • Ans. 

    Exception handling is a programming concept that deals with errors and unexpected events in a program.

    • Exception handling allows programmers to gracefully handle errors and prevent program crashes.

    • It involves using try, catch, and finally blocks to handle exceptions.

    • Examples of exceptions include divide by zero, file not found, and out of memory errors.

  • Answered by AI
  • Q3. Difference between list and array
  • Ans. 

    Arrays are fixed in size and store elements of the same data type, while lists can dynamically resize and store elements of different data types.

    • Arrays have a fixed size, while lists can dynamically resize.

    • Arrays store elements of the same data type, while lists can store elements of different data types.

    • Arrays use contiguous memory allocation, while lists use linked data structures.

    • Arrays are accessed by index, while ...

  • Answered by AI
Round 3 - HR 

(1 Question)

  • Q1. What's your expectations

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via LinkedIn and was interviewed in Apr 2024. There were 3 interview rounds.

Round 1 - Aptitude Test 

Aptitude test 2 hours

Round 2 - Technical 

(2 Questions)

  • Q1. Programming questions and their logic
  • Q2. Code logic for a specific function
  • Ans. 

    Code logic for a specific function

    • Identify the input parameters required for the function

    • Define the steps needed to achieve the desired output

    • Consider edge cases and error handling

    • Test the function with different inputs to ensure correctness

  • Answered by AI
Round 3 - HR 

(2 Questions)

  • Q1. Intro about myself
  • Q2. Background qns to know more about myself

Interview Preparation Tips

Interview preparation tips for other job seekers - na

Cognizant Interview FAQs

How many rounds are there in Cognizant Programmer Analyst interview for experienced candidates?
Cognizant interview process for experienced candidates usually has 2-3 rounds. The most common rounds in the Cognizant interview process for experienced candidates are Technical, Aptitude Test and HR.
How to prepare for Cognizant Programmer Analyst interview for experienced candidates?
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 Functional Testing, Test Cases, Smoke Testing, Test Data and System Integration Testing.
What are the top questions asked in Cognizant Programmer Analyst interview for experienced candidates?

Some of the top questions asked at the Cognizant Programmer Analyst interview for experienced candidates -

  1. 1 Tell me about your self 2 What is c# 3 What is oops concept 4 What is Delegat...read more
  2. Q1. Write a program to check whether the given String is pallindrome or not usi...read more
  3. Explain me about OOPS Concepts. Write a program in C++ to calculate Fibonacci S...read more
What are the most common questions asked in Cognizant Programmer Analyst HR round for experienced candidates?

The most common HR questions asked in Cognizant Programmer Analyst interview are for experienced candidates -

  1. What is your family backgrou...read more
  2. Why are you looking for a chan...read more
  3. Where do you see yourself in 5 yea...read more
How long is the Cognizant Programmer Analyst interview process?

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

Tell us how to improve this page.

Overall Interview Experience Rating

4.3/5

based on 78 interview experiences

Difficulty level

Easy 35%
Moderate 61%
Hard 4%

Duration

Less than 2 weeks 59%
2-4 weeks 34%
4-6 weeks 4%
6-8 weeks 2%
More than 8 weeks 2%
View more
Cognizant Programmer Analyst Salary
based on 56.2k salaries
₹2 L/yr - ₹9.3 L/yr
8% less than the average Programmer Analyst Salary in India
View more details

Cognizant Programmer Analyst Reviews and Ratings

based on 5.8k reviews

3.5/5

Rating in categories

3.5

Skill development

3.5

Work-life balance

3.0

Salary

3.3

Job security

3.5

Company culture

2.7

Promotions

3.2

Work satisfaction

Explore 5.8k Reviews and Ratings
Associate
73.2k salaries
unlock blur

₹5.1 L/yr - ₹14.5 L/yr

Programmer Analyst
56.2k salaries
unlock blur

₹2 L/yr - ₹9.3 L/yr

Senior Associate
55.1k salaries
unlock blur

₹8.4 L/yr - ₹28.5 L/yr

Senior Processing Executive
29.8k salaries
unlock blur

₹1.4 L/yr - ₹6.5 L/yr

Technical Lead
18.1k salaries
unlock blur

₹6 L/yr - ₹25.6 L/yr

Explore more salaries
Compare Cognizant with

TCS

3.6
Compare

Infosys

3.6
Compare

Wipro

3.7
Compare

Accenture

3.8
Compare
write
Share an Interview