C
Cognizant Technology Solutions Interview Guide
For Freshers — India 2026
Medium Difficulty💰 ₹4–7.5 LPA👥 20,000+ freshers/year📝 3 Questions
About the Cognizant Interview Process
Cognizant hires freshers through its GenC (Next/Elevate/Pro) program. GenC Pro targets top coders with ₹7.5 LPA. The online test covers aptitude, reasoning, and programming.
Interview Rounds
- 1GenC Online Test
- 2Technical Interview
- 3HR Interview
Insider Tips to Crack Cognizant
- ✓Practice GenC mock tests on Cognizant's official portal
- ✓GenC Pro requires strong DSA — practice LeetCode Easy-Medium
- ✓Java and Python are the preferred languages in Cognizant interviews
- ✓Prepare your final-year project explanation thoroughly
- ✓Cognizant focuses on digital transformation — mention relevant skills (cloud, AI, ML)
Cognizant Interview Questions & Answers
Q1. What is an API? Give an example.
TechnicalModel Answer:
An API (Application Programming Interface) is a set of rules that allows programs to communicate. Example: when you open Swiggy, it calls a restaurant API to fetch menus and a payment API to process orders. REST APIs use HTTP methods (GET, POST, PUT, DELETE) and return JSON/XML.
Q2. Explain the difference between ArrayList and LinkedList in Java.
TechnicalModel Answer:
ArrayList: backed by dynamic array, O(1) random access, O(n) insert/delete in middle. LinkedList: doubly-linked nodes, O(1) insert/delete at ends, O(n) random access. Use ArrayList for frequent reads, LinkedList for frequent insertions/deletions at ends.
Q3. Write a program to find all duplicates in an array.
CodingModel Answer:
Use a hash set:
```python
def find_duplicates(arr):
seen, dupes = set(), set()
for x in arr:
if x in seen: dupes.add(x)
else: seen.add(x)
return list(dupes)
```
O(n) time and space.
Also Prepare For
Cracked the Interview? Get Direct HR Access
JobHuntDaily connects you directly with HRs at top companies — skip job portals that ghost you.
Get Matched — Start for ₹2