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 Program Analyst Trainee Interview Questions and Answers

Updated 15 May 2025

17 Interview questions

A Program Analyst Trainee was asked 3mo ago
Q. How would you find spaces in a given string?
Ans. 

Identify and count spaces in a given string using programming techniques.

  • Use a loop to iterate through each character in the string.

  • Check if the character is a space using a condition like 'char == ' '.

  • Count the spaces using a counter variable.

  • Example: For the string 'Hello World', the count of spaces is 1.

A Program Analyst Trainee was asked 12mo ago
Q. How do you compare strings?
Ans. 

Strings can be compared using built-in functions like strcmp in C or equals() in Java.

  • Use strcmp function in C to compare two strings

  • In Java, use equals() method to compare two strings

  • Consider case sensitivity when comparing strings

  • Use built-in functions to handle special characters and whitespace

Program Analyst Trainee Interview Questions Asked at Other Companies

asked in Cognizant
Q1. A frog is stuck in a 100m deep well. Each jump takes it 2m high, ... read more
asked in Cognizant
Q2. What programming languages do you know?
asked in Cognizant
Q3. Explain the concepts of OOPs and relate them to real-life example ... read more
asked in Cognizant
Q4. Write a SQL query to find the 3rd highest salary.
asked in Cognizant
Q5. Write a program to check if a string is a palindrome.
🔥 Asked by recruiter 2 times
A Program Analyst Trainee was asked 12mo ago
Q. What is the difference between StringBuffer and StringBuilder?
Ans. 

String buffer is synchronized and thread-safe, while string builder is not synchronized and faster.

  • String buffer is synchronized, making it thread-safe for use in multi-threaded environments.

  • String builder is not synchronized, resulting in faster performance but not thread-safe.

  • String builder is preferred for single-threaded operations, while string buffer is preferred for multi-threaded operations.

🔥 Asked by recruiter 3 times
A Program Analyst Trainee was asked
Q. Write a program to check if a string is a palindrome.
Ans. 

Program to check if a given string is a palindrome or not.

  • Remove all non-alphanumeric characters from the string

  • Convert the string to lowercase

  • Reverse the string and compare with the original string

  • If both are equal, then the string is a palindrome

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.
🔥 Asked by recruiter 3 times
A Program Analyst Trainee was asked
Q. What programming languages do you know?
Ans. 

I know several programming languages including Java, Python, and C++.

  • Proficient in Java, Python, and C++

  • Familiar with HTML, CSS, and JavaScript

  • Experience with SQL and database management

  • Knowledge of object-oriented programming principles

  • Comfortable with version control systems like Git

A Program Analyst Trainee was asked
Q. Write a SQL query to find the 3rd highest salary.
Ans. 

SQL query to find 3rd maximum salary.

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

  • Use the LIMIT clause to limit the result to the third row.

  • Use a subquery to exclude the top two salaries and select the third highest salary.

A Program Analyst Trainee was asked
Q. What technologies are you familiar with?
Ans. 

I am proficient in Java, Python, SQL, and have experience with HTML/CSS and JavaScript.

  • Java

  • Python

  • SQL

  • HTML/CSS

  • JavaScript

Are these interview questions helpful?
A Program Analyst Trainee was asked
Q. What is the difference between an array and a class?
Ans. 

Arrays are a collection of similar data types while classes are a blueprint for creating objects.

  • Arrays store data in a contiguous memory location while classes store data in separate memory locations.

  • Arrays can be accessed using an index while classes can be accessed using object references.

  • Arrays are used for storing and manipulating data while classes are used for creating objects with properties and methods.

A Program Analyst Trainee was asked
Q. Explain the concepts of OOPs and relate them to real-life examples.
Ans. 

OOPs is a programming concept that relates real-life objects to classes and objects in code.

  • Classes represent real-life objects and their properties and behaviors

  • Objects are instances of classes and can interact with each other

  • Inheritance allows for the creation of new classes based on existing ones

  • Polymorphism allows for the same method to be used for different objects

  • Encapsulation hides the complexity of the cod...

A Program Analyst Trainee was asked
Q. A frog is stuck in a 100m deep well. Each jump takes it 2m high, but it falls down 1m. How many jumps are required for the frog to escape the well?
Ans. 

The frog will require 98 jumps to get out of the well.

  • The frog jumps 2m high but falls down 1m, so it covers a net distance of 1m with each jump.

  • To calculate the number of jumps, we need to subtract the initial jump of 2m from the total depth of the well (100m).

  • The remaining distance to cover is 100m - 2m = 98m.

  • Since the frog covers 1m with each jump, it will require 98 jumps to cover the remaining distance and re...

Cognizant Program Analyst Trainee Interview Experiences

21 interviews found

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Aptitude Test 

60min of test which include all concepts of mathematical,and codind questiond

Round 2 - Technical 

(2 Questions)

  • Q1. Difference between string buffer and builder
  • Ans. 

    String buffer is synchronized and thread-safe, while string builder is not synchronized and faster.

    • String buffer is synchronized, making it thread-safe for use in multi-threaded environments.

    • String builder is not synchronized, resulting in faster performance but not thread-safe.

    • String builder is preferred for single-threaded operations, while string buffer is preferred for multi-threaded operations.

  • Answered by AI
  • Q2. How to compare strings
  • Ans. 

    Strings can be compared using built-in functions like strcmp in C or equals() in Java.

    • Use strcmp function in C to compare two strings

    • In Java, use equals() method to compare two strings

    • Consider case sensitivity when comparing strings

    • Use built-in functions to handle special characters and whitespace

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Focus main on basics that is enough to crack interview as a fresher

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
Not Selected

I appeared for an interview in Nov 2024, where I was asked the following questions.

  • Q1. Self introduction
  • Q2. What ever I mentioned in resume
Interview experience
3
Average
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Selected Selected

I appeared for an interview in Sep 2024, where I was asked the following questions.

  • Q1. Basic Questions on project
  • Q2. Basic coding question -fibonacci,string manipulation,prime or not ,palindrome etc
  • Q3. Write code for fibonacci seq
  • Ans. 

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

    • Definition: The Fibonacci sequence starts with 0 and 1, and each subsequent number is the sum of the two preceding ones.

    • Example: The sequence begins as 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, ...

    • Recursive Approach: A common method to compute Fibonacci numbers is through recursion, but it can be inefficie...

  • Answered by AI
  • Q4. Find spaces in given string
  • Ans. 

    Identify and count spaces in a given string using programming techniques.

    • Use a loop to iterate through each character in the string.

    • Check if the character is a space using a condition like 'char == ' '.

    • Count the spaces using a counter variable.

    • Example: For the string 'Hello World', the count of spaces is 1.

  • Answered by AI
  • Q5. Basic SQL queries

Interview Preparation Tips

Interview preparation tips for other job seekers - Concentrate on basics ,be prepared with resumem,All the best

Program Analyst Trainee Interview Questions & Answers

user image Sathya Sri Ramesh kumar

posted on 15 Nov 2022

I applied via Campus Placement and was interviewed in May 2022. There were 4 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Don’t add your photo or details such as gender, age, and address in your resume. These details do not add any value.
View all tips
Round 2 - Aptitude Test 

Basic Apptitude questions from HCM,LCM,Numbers,grammar questions

Round 3 - One-on-one 

(3 Questions)

  • Q1. Self intro,questions from your resume
  • Q2. Basic coding questions in the language you mentioned in the resume
  • Q3. Prepare well.you can definitely crack this
Round 4 - HR 

(1 Question)

  • Q1. Document verification and general questions

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare well .You can crack this easily. You can learn from youtube and websites.

I applied via Campus Placement and was interviewed in Feb 2022. There were 2 interview rounds.

Round 1 - Aptitude Test 

Questions on probability , verbal aptitude

Round 2 - Technical 

(2 Questions)

  • Q1. Oops concepts , sql ,
  • Ans. 4 oops concepts , sql rdms
  • Answered by Lekhaz Suvvari
  • Q2. Cloud services , some coding questions

Interview Preparation Tips

Topics to prepare for Cognizant Program Analyst Trainee interview:
  • Oops
  • Machine Learning
  • HTML css
Interview preparation tips for other job seekers - Don’t worry every thing will be from your learning path path enjoy the process bye

I applied via Campus Placement and was interviewed in Sep 2021. There were 3 interview rounds.

Round 1 - online assessment 

(1 Question)

It was conducted on Superset platform. There were quants, verbal and reasoning questions.

  • Q1. In aptitude questions from ratio and proportion and percentage came in majority
  • Ans. 

    Majority of aptitude questions in ratio, proportion and percentage. How do you approach these topics?

    • Understand the basic concepts of ratio, proportion and percentage

    • Practice solving problems using different methods

    • Use real-life examples to understand the application of these concepts

  • Answered by AI
Round 2 - Technical 

(7 Questions)

Round duration - 30 minutes
Round difficulty - null

  • Q1. Tell me about yourself ?
  • Q2. Why do you want to join IT field being a mechanical branch student?
  • Q3. What are the programming languages you know ?
  • Q4. Write a program to check for palindrome.
  • Ans. #include int main() { int n,r,sum=0,temp; printf("insert a num="); scanf("%d",&n); temp=n; while(n>0) { r=n%10; sum=(sum*10)+r; n=n/10; } if(temp==sum) printf("palindrome num "); else printf("not a palindrome"); return 0; }
  • Answered by PrepInsta
  • Q5. Write a SQL query for finding 3rd maximum salary?
  • Q6. Interviewer gave me 3 aptitude questions to solve
  • Ans. 

    Answering 3 aptitude questions given by the interviewer

    • Read each question carefully before attempting to solve

    • Use logic and reasoning to arrive at the correct answer

    • Check your work and double-check your calculations

    • Don't spend too much time on any one question

    • If you're unsure, make an educated guess

  • Answered by AI
  • Q7. Why cognizant?
Round 3 - HR 

(2 Questions)

They asked about the internship, and for document verification.

  • Q1. Tell me about yourself?
  • Q2. If you get selected, will you join for an internship?

Interview Preparation Tips

Professional and academic backgroundAt the time of the interview, I had 0 Years (fresher) of experience. My academic qualification is B.Tech from SREE VIDYANIKETHAN ENGINEERING COLLEGE.Cognizant interview preparation:Tips for other job seekers - In the interview try to be as natural as possible. Like be yourself. If you try to pretend and be something you are not it will result in a bad impression.Final outcome of the interviewSelected

Skills evaluated in this interview

Round 1 - Technical 

(1 Question)

  • Q1. Oops concepts, ur department basic qns if u r from non IT, basic programming qns ike palindrome, reverse string etc...

Interview Preparation Tips

Interview preparation tips for other job seekers - Be confident and go through utube videos about ur company interview process before assessment.
Round 1 - Technical 

(1 Question)

  • Q1. Oops concepts, ur department basic qns if u r from non IT, basic programming qns ike palindrome, reverse string etc...

Interview Preparation Tips

Interview preparation tips for other job seekers - Be confident and go through utube videos about ur company interview process before assessment.

I applied via Campus Placement and was interviewed before Sep 2021. There were 4 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 - Aptitude Test 

There were Maths,reasoning and English Section.Each section had timer.

Round 3 - Technical 

(1 Question)

  • Q1. Oops concepts,one basic coding questions,SQL query
Round 4 - One-on-one 

(1 Question)

  • Q1. Background verification

Interview Preparation Tips

Interview preparation tips for other job seekers - Be confident and have smile on the face while being interviewed.

Interview Questionnaire 

2 Questions

  • Q1. What are the technology you know at present?
  • Ans. 

    I am proficient in Java, Python, SQL, and have experience with HTML/CSS and JavaScript.

    • Java

    • Python

    • SQL

    • HTML/CSS

    • JavaScript

  • Answered by AI
  • Q2. AI,ML and asked me to explain briefly

Cognizant Interview FAQs

How many rounds are there in Cognizant Program Analyst Trainee interview?
Cognizant interview process usually has 2-3 rounds. The most common rounds in the Cognizant interview process are Technical, Aptitude Test and HR.
What are the top questions asked in Cognizant Program Analyst Trainee interview?

Some of the top questions asked at the Cognizant Program Analyst Trainee interview -

  1. A frog is stuck in a 100m deep well. the jump takes it 2 m high but he falls do...read more
  2. Tell about OOPs concept relating it to real l...read more
  3. What are the technology you know at prese...read more

Tell us how to improve this page.

Overall Interview Experience Rating

4/5

based on 4 interview experiences

Difficulty level

Easy 50%
Moderate 50%

Duration

Less than 2 weeks 50%
2-4 weeks 50%
View more

Interview Questions from Similar Companies

TCS Interview Questions
3.6
 • 11.1k Interviews
Accenture Interview Questions
3.8
 • 8.7k Interviews
Infosys Interview Questions
3.6
 • 7.9k Interviews
Wipro Interview Questions
3.7
 • 6.1k Interviews
Capgemini Interview Questions
3.7
 • 5.1k Interviews
Tech Mahindra Interview Questions
3.5
 • 4.1k Interviews
HCLTech Interview Questions
3.5
 • 4.1k Interviews
Genpact Interview Questions
3.7
 • 3.4k Interviews
IBM Interview Questions
4.0
 • 2.5k Interviews
DXC Technology Interview Questions
3.7
 • 841 Interviews
View all
Cognizant Program Analyst Trainee Salary
based on 357 salaries
₹3 L/yr - ₹5 L/yr
At par with the average Program Analyst Trainee Salary in India
View more details

Cognizant Program Analyst Trainee Reviews and Ratings

based on 18 reviews

3.3/5

Rating in categories

3.5

Skill development

3.2

Work-life balance

3.3

Salary

3.4

Job security

3.4

Company culture

3.1

Promotions

3.1

Work satisfaction

Explore 18 Reviews and Ratings
Associate
73.1k salaries
unlock blur

₹5.3 L/yr - ₹12.5 L/yr

Programmer Analyst
56.1k salaries
unlock blur

₹3.5 L/yr - ₹7.3 L/yr

Senior Associate
55.2k salaries
unlock blur

₹10.1 L/yr - ₹23.3 L/yr

Senior Processing Executive
29.8k salaries
unlock blur

₹2.3 L/yr - ₹6.5 L/yr

Technical Lead
19k salaries
unlock blur

₹6 L/yr - ₹21.5 L/yr

Explore more salaries
Compare Cognizant with

TCS

3.6
Compare

Infosys

3.6
Compare

Wipro

3.7
Compare

Accenture

3.7
Compare
write
Share an Interview