Cognizant: Programmer Analyst Trainee (GenC)
Cognizant hires freshers under the GenC family (GenC, GenC Next, GenC Pro; older material also mentions GenC Elevate). The process is an online assessment covering communication, aptitude and coding with code-fix questions, followed by interviews. Round names and counts vary by drive, so prepare for all.
42 questions · 4 rounds · updated Nov 2026
How the interview works
- Communication assessment: Listening, speaking, reading and writing tasks, graded on clarity and grammar. Often an elimination round.
- Aptitude test: Quantitative, logical and verbal sections.
- Coding and code-fix test: Automata-style tasks: write a program and fix buggy code. GenC Next and Pro draw harder problems.
- Technical interview: Project, Java or Python, SQL and core subjects; sometimes AI awareness.
- HR interview: About you, flexibility, background and joining terms.
Sample questions
- 01
Walk me through the project on your resume you are most proud of.
MediumProject
Model answer
What the interviewer checks
Depth and ownership. Expect five or six follow-up "why" questions: why that database, what broke, what you would change at ten times the scale.
How to answer
Use this order and keep the first pass to two minutes: 1. Problem and user: "Students missed placement deadlines because updates were spread across WhatsApp groups." 2. What you built and your part: "A web app where the placement cell posts drives and students get reminders. I built the backend in Spring Boot and designed the MySQL schema." 3. One hard technical decision: "Reminders had to go out at exact times for 1,200 students. A cron job polling every minute duplicated messages when the job overran, so I moved to a queue with a unique key per student and drive, which made sending idempotent." 4. Result with a number: "400 active users; missed deadlines reported by the cell fell from about 30 a semester to 4." 5. What you would do differently: "Add tests earlier: a timezone bug reached production because we had none." Prepare answers for: the architecture diagram, the database tables, the hardest bug, how you tested it, how it would handle 100 times the users, and what each teammate did.
Common mistakes
- Describing only features, not decisions.
- Not knowing parts of a group project you list as yours.
- No numbers anywhere.
- 02
In an election between two candidates, the winner got 58% of the valid votes and won by 1,440 votes. How many valid votes were cast?
MediumPercentages
- 03
Check whether a string is a palindrome, ignoring case, spaces and punctuation. Example: "A man, a plan, a canal: Panama" → true
EasyStrings
Approach and solution
Approach
Keep only letters and digits in lower case, then compare from both ends with two pointers. Two pointers avoid building a reversed copy, and interviewers like seeing them.
def is_palindrome(s: str) -> bool: chars = [c.lower() for c in s if c.isalnum()] i, j = 0, len(chars) - 1 while i < j: if chars[i] != chars[j]: return False i += 1 j -= 1 return True assert is_palindrome("A man, a plan, a canal: Panama") assert not is_palindrome("race a car")Complexity: O(n) time, O(n) space for the filtered list (O(1) if you skip non-alphanumerics in place).
39 more questions, members only
- Aptitude test15
- Coding and code-fix test7
- Technical interview13
- HR interview7
Members also get how to answer each question and a preparation plan for this company.
See plans from ₹399Every question and answer is written by Hirecept and the code is run before it is published. How a company runs its process comes from candidate reports and public pages, and companies change it, so treat that part as a guide, not a promise.