Cognizant interview experience Real time questions & tips from candidates to crack your interview

Programmer Analyst Trainee

Cognizant
upvote
share-icon
3 rounds | 10 Coding problems

Interview preparation journey

expand-icon
Journey
I prepared consistently, stayed confident, and trusted my skills. Each interview round tested my knowledge and attitude. With calm focus and clear communication, I succeeded, earning my Cognizant offer through dedication, learning, and perseverance.
Application story
I applied for Cognizant with a strong interest in building a career in IT. After submitting my application, I prepared consistently for the assessments and interviews. Through dedication and confidence, I successfully cleared each stage and secured the opportunity.
Why selected/rejected for the role?
I was selected for this role because of my strong fundamentals, consistent preparation, and clear communication during the interview. I demonstrated a positive attitude, problem-solving ability, and willingness to learn, which matched the role requirements.
Preparation
Duration: 3 months
Topics: OOPS, DSA, DBMS, SQL, OS, CN, Problem Solving, Communication
Tip
Tip

Tip 1: Revise core programming fundamentals and practice basic coding problems daily.
Tip 2: Focus on clear communication, mock interviews.
Tip 3: Understanding concepts rather than memorization.

Application process
Where: Campus
Eligibility: Above 7 CGPA (Salary package: 4.02 LPA)
Resume Tip
Resume tip

Tip 1: Keep your resume clear, concise, and limited to one page with relevant skills highlighted.
Tip 2: Include projects, internships, or certifications and be prepared to explain everything mentioned.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration60 minutes
Interview date9 Sep 2022
Coding problem4

The assessment tested aptitude, logical reasoning, and basic coding.

1. SQL

Retrieve the names of students who scored more than 80 in the “Math” subject from the Students table.

Problem approach

SELECT name FROM Students WHERE subject='Math' AND score>80

2. SQL

Normalize the table: Student(ID, Name, Course, Instructor) to 3NF.

Problem approach

Separate tables: Student(ID, Name), Course(Course, Instructor), StudentCourse(ID, Course)

3. Operating System

  • Explain how semaphores prevent race conditions in process synchronization. (Learn)
  • Explain virtual memory and its advantages in modern OS. (Learn)
Problem approach

Tip 1: Use examples like producer-consumer problem; show P (wait) and V (signal) operations.

Tip 2: Mention paging, swapping, and ability to run programs larger than physical RAM.

4. Puzzle

Three friends A, B, C are sitting in a row. A is not at the end. C is not next to A. Find the seating arrangement.

Problem approach

Use elimination and diagram method for clarity.

02
Round
Easy
Face to Face
Duration60 minutes
Interview date21 Sep 2022
Coding problem5

The technical interview was friendly but focused on concepts and problem-solving.

1. Puzzle

A farmer has 17 cows. All but 9 die. How many are left alive?

Problem approach

Carefully read the statement; “all but 9 die” means 9 cows are alive.

2. Puzzle

You have a 3-liter jug and a 5-liter jug. Measure exactly 4 litres of water.

Problem approach

Use step-by-step pouring method. Fill 5L, pour into 3L, repeat, subtracting/jug transfer.

3. DBMS

Explain primary and foreign keys with example. (Learn)

Problem approach

Primary key uniquely identifies a row; foreign key links two tables.

4. Operating System

Explain deadlock with an example. (Learn)

Problem approach

Two or more processes waiting indefinitely for resources held by each other; e.g., process A holds resource X, waits for Y, while B holds Y, waits for X.

5. Puzzle

A clock shows 3:15. What is the angle between the hour and minute hands?

Problem approach

Angle = |(30hour + 0.5minutes) − (6*minutes)| → 7.5°

03
Round
Medium
HR Round
Duration60 minutes
Interview date30 Sep 2022
Coding problem1

1. HR Questions

  • Tell me about yourself.
  • Where do you see yourself in 5 years?
  • Why did you choose your field/stream?
  • How do you handle conflicts in a team?
  • How do you prioritize tasks?
  • Are you comfortable working in shifts or flexible hours?
  • How do you keep yourself updated with technology?
  • How do you deal with failure?
Problem approach

Tip 1: Keep your answers concise (1–2 minutes), confident, and focused on education, projects, skills, and relevant achievements.
Tip 2: Clearly explain your career goals, interest in the subject, and how they align with IT/software roles and the company’s opportunities.
Tip 3: Demonstrate strong soft skills—listening, collaboration, adaptability, and conflict resolution—using brief real-life examples where possible.
Tip 4: Explain how you manage priorities and time, showing flexibility when situations change, with examples from academics, projects, or internships.
Tip 5: Show continuous learning through courses, articles, certifications, or coding practice, and highlight curiosity and self-improvement.
Tip 6: Be honest about challenges or mistakes, emphasizing what you learned, how you improved, and your resilience.

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

To make an AI less repetitive in a long paragraph, you should increase:

Choose another skill to practice
Similar interview experiences
company logo
Programmer Analyst Trainee
4 rounds | 6 problems
Interviewed by Cognizant
1173 views
0 comments
0 upvotes
company logo
Programmer Analyst Trainee
2 rounds | 3 problems
Interviewed by Cognizant
1408 views
0 comments
0 upvotes
company logo
Programmer Analyst Trainee
3 rounds | 7 problems
Interviewed by Cognizant
925 views
0 comments
0 upvotes
company logo
Programmer Analyst Trainee
3 rounds | 8 problems
Interviewed by Cognizant
773 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Programmer Analyst Trainee
3 rounds | 4 problems
Interviewed by Newgen Software
811 views
0 comments
0 upvotes