Cognizant GenC Technical Interview — OOP, DBMS, Project Defence
- Field
- Engineering
- Company
- Cognizant
- Role
- Programmer Analyst Trainee (GenC)
- Duration
- 20 min
- Difficulty
- Easy
- Completions
- New
- Updated
- 2026-05-24
What this round is about
- Topic focus. The Cognizant GenC combined Technical and HR round at India fresher altitude — OOP fundamentals with a project-mapped example, DBMS basics (primary versus unique key, joins, normalization), one DSA on arrays or strings, a final-year project deep-dive with the technology choice defended, and a Why Cognizant motivation probe closing with location and night-shift flexibility.
- Conversation dynamic. Karthik, a Cognizant Senior Software Engineer in Chennai who joined through GenC himself, runs the round. He is encouraging but probes hard on whether you ask clarifying questions before coding and whether you can map textbook concepts to your own project.
- What gets tested. Clarifying-questions-before-coding, OOP application to your own project, concrete DBMS schema reasoning, final-year project ownership and technology defence, motivation specificity, and honest flexibility on relocation and shifts.
- Round format. Twenty minutes, four blocks (warm-up plus self-intro, OOP plus coding, DBMS plus project, motivation plus flexibility). Candidate-led on the project block, interviewer-led elsewhere. One direct flexibility gate at the end.
- What you control. The order in which you walk Karthik through your project is yours; the OOP, DBMS, and DSA blocks are interviewer-led. Coming in with one well-rehearsed end-to-end project flow makes the candidate-led block your strongest five minutes of the round.
What strong answers look like
- Clarify before coding. Pause and ask about duplicates, negatives, and array size on the second-largest problem before writing a line. Karthik explicitly rewards this with a deeper follow-up.
- OOP mapped to your project. Encapsulation as your User class hiding the password hash. Inheritance as AdminUser extending User. Polymorphism as PaymentProcessor with UPI, Card, and Net Banking subclasses. Not the car-engine example.
- Concrete primary versus unique key schema. Employee table with employee_id as primary (auto-generated, never NULL) and PAN_number or email as unique (one NULL allowed during onboarding). Built on the spot, not recited.
- Project ownership. Walk through the stack, name one alternative considered (Postgres versus MongoDB, Spring Boot versus Express), and one concrete thing you would do differently today. Honest I followed a tutorial scores higher than invented framework comparisons.
- Specific Why Cognizant. HLS practice depth, FlowSource AI-first training, Manapakkam Chennai centre, or the salary differential versus TCS Ninja 3.36 LPA. Not I want to work with latest technology.
- Clear flexibility confirmation. Yes to both relocation across top India centres and night shifts, without hedging.
What weak answers look like (and how to avoid them)
- Jumping straight to code. Writing code on the second-largest problem without asking about duplicates or edge cases. Avoid by pausing for one breath before touching the code and asking one input question.
- Textbook-only OOP example. Explaining inheritance using only car-vehicle or animal-dog. Avoid by preparing one example from your own project for each of the four pillars.
- Primary equals unique. Saying they are basically the same. Avoid by remembering NULL behaviour and how many you can have per table.
- Project as tutorial clone with no reflection. I copied a YouTube tutorial without saying what you would change today. Avoid by preparing one architectural change you would make if starting over.
- Generic Why Cognizant. I want to work with latest technology. Avoid by reading one Cognizant practice page and naming HLS, BFSI, CMT, or FlowSource by name.
- Hedging on flexibility. I would prefer Chennai only. Avoid by deciding before the round whether you can do relocation and shifts — refusing is a hard gate.
Pre-interview checklist (2 minutes before you start)
- Pick your primary language. Java, Python, C++, or JavaScript — one of them. Be ready to write the second-largest solution in that language.
- Memorise one project-mapped example per OOP pillar. Pull them from your own final-year project, not a textbook. Practise saying them out loud once.
- Sketch an Employee table in your head. Two columns at minimum — employee_id primary, PAN_number or email unique. Know which NULL behaviour applies to each.
- Prepare one alternative-stack reflection. Why MERN over MEAN. Why MongoDB over Postgres. Why Spring Boot over Express. Or honestly — I followed a tutorial, and today I would pick Postgres because.
- Memorise one Cognizant specific. HLS practice (Healthcare and Life Sciences, 7 of top 10 life-sciences companies). FlowSource AI tool. Manapakkam DLF Chennai centre. GenC base 4 LPA versus TCS Ninja 3.36 LPA.
- Decide your flexibility answer in advance. Yes to relocation across Chennai, Bangalore, Hyderabad, Pune, Kolkata, Coimbatore, Kochi? Yes to night shifts? If not, this is not the right interview.
How the AI behaves
- Encouraging, never harsh. Karthik is warm, uses first names, and explicitly rewards clarifying questions before coding.
- One nudge then move on. If you are stuck, he says let us slow down for a second, what is the question actually asking? exactly once. If you still spiral, he moves on with a note.
- Pushes for project-mapped examples. Will not accept textbook-only OOP. Will ask for your own example explicitly.
- Probes for concrete schemas. Will ask you to sketch an Employee table on the spot, not just define primary versus unique.
- Hard gate on flexibility. Asks directly about relocation and night shifts. Hedging reads as refusal.
- Indian English idioms. Uses just kindly, do one thing, basically. No American business idioms.
Common traps in this type of round
- Jumping to code without clarifying inputs. The single most common rejection pattern in the Cognizant GenC panel.
- Textbook OOP only. Car-engine and animal examples — the prep blogs all use them, the interviewer is tired of them.
- Primary equals unique key confusion. A foundational DBMS mistake that signals the candidate has not actually built a real schema.
- Tutorial-clone project with no ownership. Saying I copied a YouTube tutorial without offering any reflection or design critique.
- Generic Why Cognizant. I want to work with latest technology — heard twenty times a day, scores zero.
- Refusing or hedging on relocation or night shifts. A hard gate that disqualifies the candidate from any GenC offer regardless of technical depth.
Sample problems you'll face
The problem below is the same one you'll work through in the live session — no surprises. Read the constraints carefully; the AI persona will refer you to the on-canvas card by problem number.
- 1DSA — Second Largest Element
Find the second largest element in an array. Do NOT use sort. Walk me through your approach before you sketch code. Pause to ask clarifying questions about input constraints — duplicates, negatives, array size, edge cases — Karthik marks this down if you skip it.
Example inputarr = [3, 1, 4, 1, 5, 9, 2, 6]Example output6 (since 9 is largest, 6 is second-largest distinct)- No sort() / no library helpers — solve in one pass with two trackers
- Ask before coding: are duplicates allowed? Can the array have only 1 element? Are negatives in?
- If [5, 5, 5] is allowed, what should you return? — Karthik will probe this.
Interview framework
You will be scored on these 5 dimensions. The full rubric with definitions is below.
What we evaluate
Your final scorecard breaks down across these dimensions. The full rubric and tier criteria are revealed inside the interview itself.
- Requirements Clarification Rigor20%
- OOP Application to Own Project20%
- DBMS Concrete Schema Reasoning20%
- Project Ownership and Technology Defence20%
- Why Cognizant Specificity10%
- Location and Shift Flexibility Honesty10%
Common questions
Sources this interview is built on
Real candidate-report URLs (Glassdoor / AmbitionBox / PrepInsta / GeeksforGeeks / Medium) reviewed when authoring the questions, persona, and rubric. Verify the realism yourself.
- Cognizant GenC Recruitment Process for Freshers | PrepInstaprepinsta.com
- Most Asked Cognizant GenC Technical Interview Questions | PrepInstaprepinsta.com
- Cognizant GenC On-Campus Interview Experience | Agarwalayu | Mediummedium.com
- Cognizant Interview Experience for Gen-Pro (2025-graduate) On-Campus | GeeksforGeeksgeeksforgeeks.org
- Cognizant set to hire 20000 employees in 2025, confirms CEO | People Matterspeoplematters.in
- Cognizant GenC Salary 2025 for Freshers | PrepInstaprepinsta.com
- Second Largest Element in an Array | GeeksforGeeksgeeksforgeeks.org