Cognizant Technology Solutions India Pvt Ltd interview experience Real time questions & tips from candidates to crack your interview

Programmer Analyst Trainee

Cognizant Technology Solutions India Pvt Ltd
upvote
share-icon
3 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Journey
My journey started with very basic knowledge of programming. In the beginning, I focused on understanding core coding concepts and improving my logical thinking. I also completed a small internship where I got exposure to real-world work culture and basic technical tasks, which helped me understand how the IT industry actually works. After that, I brushed up my fundamentals in Java, C++, and OOP concepts like inheritance, polymorphism, and encapsulation. Instead of trying to learn everything at once, I focused on practicing a little every day — especially aptitude and basic coding problems. This daily consistency slowly built my confidence. My Cognizant interview experience was a bit different from what I expected. I was mainly asked a few aptitude and logical questions, along with some basic coding and concept-based discussions. I wasn’t perfect in every answer, but I stayed calm, explained whatever I knew clearly, and showed my willingness to learn. The biggest lesson from my journey is that you don’t need to know everything — you just need strong basics, regular practice, and confidence while communicating. Even small efforts done consistently can help you crack big opportunities like this.
Application story
I applied for Cognizant through my college’s on-campus placement portal after receiving the official notification from the Training & Placement cell. The registration process was straightforward — we filled out the application form, uploaded our resume, and selected preferred locations. After applying, I received assessment links and further instructions through email from the company. The entire process was conducted in an organized by superset, starting with initial screening and online assessments, followed by interview scheduling. Communication was mainly through email and the college placement team.
Why selected/rejected for the role?
I believe I was selected mainly because of my communication skills and confidence during the interaction. I made sure that whatever I had mentioned in my resume, I was completely clear about it and able to explain it properly. Instead of trying to show knowledge of everything, I focused on being honest about what I knew and answered questions calmly. One important learning from my experience is that interviewers value clarity and confidence more than perfection. Being genuine, having strong basics, and being sure about your own resume can make a big difference. You don’t need to know every advanced concept — but whatever you claim to know, you should be able to explain it with confidence.
Preparation
Duration: 3 months
Topics: OOPS, DSA, Java, HTML, CSS, SQL, Aptitude, English, Operating System, Computer Networks
Tip
Tip

Tip 1: Focus on building strong fundamentals in coding, OOPs, and aptitude before moving on to advanced topics.
Tip 2: Explain concepts to others or even to yourself, because if you can explain something simply, it shows you truly understand it.
Tip 3: Communicate your thoughts clearly and confidently, as good communication can often balance areas where your knowledge may be limited.
Tip 4: Work on at least one internship or project to gain practical experience and have meaningful points to discuss during interviews.
Tip 5: Be honest in your responses and show a willingness to learn, as interviewers value genuine answers more than trying to appear overly clever.

Application process
Where: Campus
Eligibility: No active backlogs, Above 6 CGPA, (Salary Package: 4 LPA)
Resume Tip
Resume tip

Tip 1: Don’t write unnecessary or unrealistic things on your resume. Only include information that you can confidently explain during the interview.

Tip 2: Mention numerical achievements on your resume, such as “reduced API response time by 20%,” to clearly show the impact of your work.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration180 minutes
Interview date19 Feb 2025
Coding problem1

Timing: The assessments and interview were conducted during daytime hours, not late at night, which made it easier to stay focused and prepared.
Environment: The overall environment was professional and well-organized. The online coding round was fully proctored with camera and microphone enabled, and any disturbance or suspicious activity was strictly monitored. This ensured fairness and discipline throughout the process.
Any Other Significant Activity: The process was smooth with proper email communication and clear instructions before each stage. There were no major technical issues, and the guidelines were explained in advance.

The test consisted of 40 MCQs on aptitude, reasoning and DBMS basics.

1. Swap Number Without Temporary Variable

Easy
15m average time
85% success
0/40
Asked in companies
SAP LabsBNY MellonMakeMyTrip

Given two variables ‘X’ and ‘Y’. Your task is to swap the number without using a temporary variable or third variable.

Swap means the value of ‘X’ and ‘Y’ must be interchanged. Take an example ‘X’ is 10 and ‘Y’ is 20 so your function must return ‘X’ as a 20 and ‘Y’ as a 10.

Try solving now
02
Round
Easy
Online Coding Test
Duration60 minutes
Interview date25 Feb 2025
Coding problem1

It was conducted around 4 PM and was fully proctored, with both the camera and microphone turned on throughout the assessment.

1. First non repeating character

Easy
15m average time
80% success
0/40
Asked in companies
QuikrHCL TechnologiesMakeMyTrip

Ninja is now bored with numbers and is now playing with characters but hates when he gets repeated characters. Ninja is provided a string, and he wants to return the first unique character in the string.The string will contain characters only from the English alphabet set, i.e., ('A' - 'Z') and ('a' - 'z'). If there is no non-repeating character, print the first character of the string. If there is no non-repeating character, return the first character of the string.

Problem approach

Tip 1: focus on brute force.
Tip 2: also try hit and trial method.
Tip 3: coding sheet practice.

Try solving now
03
Round
Medium
Face to Face
Duration60 minutes
Interview date20 Mar 2025
Coding problem1

It was conducted around 11 AM in the morning, and the interviewer first made me feel comfortable before starting with the questions.

1. Second Largest Number

Easy
23m average time
78% success
0/40
Asked in companies
SamsungDXC TechnologyCognizant Technology Solutions India Pvt Ltd

You have been given an array ‘a’ of ‘n’ unique non-negative integers.


Find the second largest and second smallest element from the array.


Return the two elements (second largest and second smallest) as another array of size 2.


Example :
Input: ‘n’ = 5, ‘a’ = [1, 2, 3, 4, 5]
Output: [4, 2]

The second largest element after 5 is 4, and the second smallest element after 1 is 2.
Problem approach

Tip 1: speak answer while explaining.
Tip 2: go slow for Brute force.
Tip 3: also try to tell alternate method.

Try solving now

Here's your problem of the day

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

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by OYO
4898 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 3 problems
Interviewed by Amazon
1042 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by Meesho
6638 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3639 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Programmer Analyst Trainee
3 rounds | 4 problems
Interviewed by Newgen Software
837 views
0 comments
0 upvotes