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

Programmer Analyst Trainee

Cognizant
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2
Topics: C++, OOPS concept, DBMS, SQL Queries, Microprocessor & Microcontroller
Tip
Tip

Tip 1 : You should have deep knowledge about OOPS concept. And practice some coding questions which are based on OOPS concept.
Tip 2 : Go through the basic , like from your textbooks
Tip 3 : Study from sites like Greeks for geeks , javapoint etc

Application process
Where: Campus
Eligibility: 60%
Resume Tip
Resume tip

Tip 1:Mention your projects, skills, and achievement
Tip 2: You must know all the skills that you mentioned in your resume

Interview rounds

01
Round
Easy
Online Coding Interview
Duration90 minutes
Interview date1 Oct 2021
Coding problem2

MCQ questions
1. Quantitative Ability 25 questions 30 minutes
2. Logical Ability 35 questions 40 minutes
3. English Comprehension 20 questions 20 minutes

1.

Reasoning questions
If a giraffe has two eyes, a monkey has two eyes, and an elephant has two eyes, how many eyes do we have?
Options
A. 3
B. 1
C. 4
D. 2

Problem approach

4 eyes.

Here in the question, it is asked how many Eyes We have so that means here the person who has asked the question is also including the person who is suppose to give the answer. In a clear understanding, the Conversation is happening between 2 people 1st who asked the question and 2nd to whom it has been asked, which means there are 4 eyes.

2.

A number of cats got together and decided to kill between them 999919 rats. Every cat killed an equal number of rats. Each cat killed more rats than there were cats. How many rats do you think that each cat killed ?
A) 1009
B) 991
C) 2000
D) 1000

Problem approach

Given total number of rats = 999919
999919 = 1000000 - 81 = (10002 − 92) = (1000+9)(1000-9) = 1009 x 991.
Since there were more rats than there were cats, 991 cats killed 1009 rats each.

02
Round
Medium
Telephonic
Duration45 minutes
Interview date13 Oct 2021
Coding problem2

Interview took place around 11am.
They asked my introduction after that I was asked to explain my project .
Basic questions about DBMS , OOPS Concept and microprocessor
1) OOPS full form
2) Polymorphism (run time, compile time, function overloading)
3) constructor and deconstructor
4) difference between microprocessor and microcontroller
5) what is Iteration, Recursion.
6) Difference between RDBMS and DBMS
7) A dishonest milkman professes to sell his milk at cost price but he mixes it with water and thereby gains 25%.The percentage of water in the mixture is …….(he didn't give me options).

They asked me to write a program to count number of vowels in a string (You can write in any language)

Technical and HR round were combined , so after technical round , they asked me about my family background , my college experience , and can i work from any state

Interview experience was good

1. print the sum of all the elements of an array.

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

A dishonest milkman professes to sell his milk at cost price but he mixes it with water and thereby gains 25%. The percentage of water in the mixture is ………..

Problem approach

1. Declare and initialize an array.
2. The variable sum will be used to calculate the sum of the elements. Initialize it to 0.
3. Loop through the array and add each element of array to variable sum as sum = sum + arr[i].

Try solving now

2. Count the number of vowels in a string

Easy
10m average time
90% success
0/40
Asked in companies
Tata Consultancy Services (TCS)SamsungHarman International

Given a string, write a program to count the number of vowels, consonants, and spaces in that string.

EXAMPLE :
Input: ‘N’= 25, ‘s’ =”Take u forward is Awesome”
Output: 10 11 4
Problem approach

1. Initialize the string using a character array.
2. Create a character pointer and initialize it with the first element in array of character (string).
3. Create a counter to count vowels.
4. Iterate the loop till character pointer find ‘\0’ null character, and as soon as null character encounter, stop the loop.
5. Check whether any vowel is present or not while iterating the pointer, if vowel found increment the count.
6. Print the count.

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

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