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

Programmer Analyst Trainee

Cognizant
upvote
share-icon
2 rounds | 8 Coding problems

Interview preparation journey

expand-icon
Journey
Here is my journey of transitioning from a Mechanical Engineering background to landing a role as a Programmer Analyst Trainee at Cognizant. It’s a story about pursuing a passion and overcoming challenges despite not having a traditional computer science background. My educational background is in Mechanical Engineering, and I completed a B.Tech in this field. However, I’ve always had a deep interest in software technology. This passion led me to explore programming languages like C, C++, and Python. Despite my technical foundation in mechanical engineering, diving into software development was a new and exciting challenge. Transitioning from mechanical concepts to coding was no small feat, but the logical and analytical skills I developed during my engineering studies proved invaluable. I began my journey by taking online courses and diving into various programming tutorials. I spent countless hours practising code and building projects, which not only honed my skills but also deepened my understanding of programming concepts. I focused on hands-on learning by working on personal coding projects and participating in coding challenges. These experiences were instrumental in applying theoretical knowledge to practical problems and significantly enhanced my problem-solving skills. This practical approach gave me confidence and prepared me for real-world coding scenarios. Receiving the offer letter from Cognizant was a moment of immense joy and satisfaction. It was a testament to the hard work and dedication I had invested in bridging the gap between my previous field and my new career in software technology. This achievement reinforced my belief that with passion and persistence, it’s possible to transition into a new field and succeed.
Application story
My journey to securing the Programmer Analyst Trainee position at Cognizant began with an opportunity provided by my college placement cell. I applied for the role through the Superset platform, which was the primary channel for recruitment. After submitting my resume and application form through Superset, I went through a series of assessments and evaluations. The process included various stages that tested my programming skills, problem-solving abilities, and communication proficiency. The final stage was a comprehensive interview conducted on the Superset platform, where I had the chance to discuss my technical expertise and explain how my background in Mechanical Engineering prepared me for a role in software technology. The experience was both challenging and rewarding, ultimately leading to my offer for the Programmer Analyst Trainee role at Cognizant. The Superset platform provided a well-organized process, ensuring a smooth transition from application to interview, and each stage was a valuable learning experience.
Why selected/rejected for the role?
I was selected for the Programmer Analyst Trainee role at Cognizant primarily because of my demonstrated passion for software technology and my ability to leverage my engineering background effectively. Despite not having a computer science degree, I showcased strong problem-solving skills and technical proficiency in programming languages such as C, C++, and Python. My proactive approach to learning and the practical experience gained from personal projects and coding challenges also played a crucial role. Being selected for the role taught me several valuable lessons. Firstly, it reinforced the importance of continuous learning and adapting skills to fit different fields. My transition from Mechanical Engineering to software development highlighted that dedication and a willingness to learn can bridge the gap between different disciplines. Additionally, the selection process underscored the value of clear communication and the ability to articulate how one's background and skills align with the role. For those preparing for similar opportunities, my experience suggests that focusing on practical skills, staying adaptable, and effectively communicating your strengths can significantly enhance your chances of success.
Preparation
Duration: 6 Months
Topics: Basics of Data structure, algorithms, OOPS concept, Pointers, Core subjects, Aptitude questions.
Tip
Tip

Tip 1: Practice basic coding questions.

Tip 2: Practice pseudocoding.

Tip 3: Practice aptitude questions.

Tip 4: Practice theory questions from core subjects.

Tip 5: Focus on problem-solving skills.

Tip 6: Focus on communication skills.

Tip 7: Complete at least one project.

Application process
Where: Campus
Eligibility: 60% marks in 10th and 12th, No backlog in B.tech.
Resume Tip
Resume tip

Tip 1: Mention the technical skills you have.

Tip 2: Mention the projects you have completed in college.

Tip 3: Mention if you have completed any internships.

Tip 4: Mention the competitions and hackathons you have participated in.

Tip 5: Mention any achievements you have.

Tip 6: Mention any extracurricular activities and certifications you have.

Tip 7: Design it properly.

Tip 8: Keep it short and simple.

Interview rounds

01
Round
Medium
Coding Test - Pen and paper
Duration90 minutes
Interview date9 Aug 2023
Coding problem5

This round is divided into three parts. The first part is an arithmetic ability test, the second part is a verbal reasoning test, and the third part is a logical reasoning test.

1. Puzzle

Three cubes of edges 6 cm, 8 cm and 10 cm are meted without loss of metal into a single cube. The edge of the new cube will be:
8 cms
12 cms
14 cms
16 cms

Problem approach

Volume of new cube = Volume of cube 1 + cube 2 + cube 3 = 63 + 83 + 103, = 216 + 512 + 1000
a3 = 1728,
a = (1728)1/3 = 12

2. Puzzle

In 24 minutes, the hour hand of a clock moves through an angle of:
60°
24°
12°

Problem approach

12 hour = 360°, 1 hr. = 360/12 = 30° 60 min = 30°, 1 min 30/60 = .5° 24 min. = 1/2 ×24 = 12°

3. Puzzle

A reduction of 20% in the price of mangoes enables a person to purchase 12 more for Rs. 15. What was the price of 16 mangoes before reduction of the price?
Rs. 6
Rs. 5
Rs.7
Rs. 9

Problem approach

Price x Consumption = Expenditure
Consumption = Exp. Price
(15 / 8x) - (15 / x) = 12
x = (15 x 2) / (12 x 8)
For 16 Mangoes = [(15 x 2) / (12 x 8)] x 16 = 5

4. Puzzle

√0.0081 is equal to :
0.09
0.9
±0.08
0.81

Problem approach

√0.0081 = √0.0081/10000 = √81/10000 = 9/100 =0.09

5. Puzzle

What is the number which when multiplied by 13 is increased by 180?
13
15
23
35

Problem approach

13 × 15 = 195 so ans is option B

02
Round
Medium
Video Call
Duration40 minutes
Interview date8 Oct 2023
Coding problem3

This morning, I participated in an online interview via Superset. The session began early and went smoothly, with no technical issues on the platform. The interviewer asked a diverse range of questions, including coding challenges, aptitude problems, and theoretical concepts. We also discussed my previous projects and internship experiences. I was able to answer all questions confidently, which felt reassuring. The interviewer was engaging and supportive throughout, making the entire process informative and positive.

1. Rotate array

Easy
25m average time
80% success
0/40
Asked in companies
Dell TechnologiesThalesMicrosoft

Given an array 'arr' with 'n' elements, the task is to rotate the array to the left by 'k' steps, where 'k' is non-negative.


Example:
'arr '= [1,2,3,4,5]
'k' = 1  rotated array = [2,3,4,5,1]
'k' = 2  rotated array = [3,4,5,1,2]
'k' = 3  rotated array = [4,5,1,2,3] and so on.
Problem approach

Suppose the give array is arr[] = [1, 2, 3, 4, 5, 6, 7], d = 2.

First Step:
=> Store the elements from 2nd index to the last.
=> temp[] = [3, 4, 5, 6, 7]

Second Step: 
=> Now store the first 2 elements in the temp[] array.
=> temp[] = [3, 4, 5, 6, 7, 1, 2]

Third Steps:
=> Copy the elements of the temp[] array into the original array.
=> arr[] = temp[] So arr[] = [3, 4, 5, 6, 7, 1, 2]

Try solving now

2. Largest Element in the Array

Easy
10m average time
90% success
0/40
Asked in companies
AccentureCognizantMakeMyTrip

Given an array arr[] of size N, the task is to find the largest element in the given array.

Examples:

Input: arr[] = {10, 20, 4}
Output: 20
Explanation: Among 10, 20 and 4, 20 is the largest.

Input: arr[] = {20, 10, 20, 4, 100}
Output: 100

Problem approach

Create a local variable max and initiate it to arr[0] to store the maximum among the list
Iterate over the array
Compare arr[i] with max.
If arr[i] > max, update max = arr[i].
Increment i once.
After the iteration is over, return max as the required answer.

Try solving now

3. Puzzle

A person travels 48 km at 12 km/hour and a further 48 km at 16km.s/hour. His average speed for the whole
14 km/hour
13(4/7)km/hour
12(5/7)km/hour
13(5/7)km/hour

Problem approach

Avg. Speed = (Total Distance / Total Time)
TD = 48 + 48= 96,
T1 = 48/12 = 4hrs
T2 = 48/16 = 3hrs
T1 + T2 = 4 + 3 = 7
Avg Speed = 96/7 = 13(5/7) km/hr

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
1409 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