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

Programmer Analyst Trainee

Cognizant
upvote
share-icon
4 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 Months
Topics: DP,Graph,Tree,Binary Search,computer Fundamentals,Basic OS,OOPS,CN,DBMS(Must)(Everyone favourite questions from this)
Tip
Tip

Tip 1 : Dont run behind number of questions solved,learn to reognize patterns.
Tip 2 : Dont write anything in your resume upon which you are not prepared enough
Tip 3 : Talk with confidene even if you dont know the answer just tell interviewer with confidence

Application process
Where: Linkedin
Eligibility: Fresher
Resume Tip
Resume tip

Tip 1 : single page resume
Tip 2 : exact to point ,no need to put your hobbies,highlight your coding profiles your previous internship experiene,your project your technical skills.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration120 minutes
Interview date10 Dec 2021
Coding problem2

120 minutes
oops mcq
sql mcq
Two coding Questions
Two sQL Question

1. Minimum Travel Time

Hard
35m average time
55% success
0/120
Asked in companies
CognizantMAQ Software

Mr. X is planning to visit Ninja Land. Ninja Land has 'N' cities numbered from 1 to 'N' and 'M' bidirectional roads. Each road connects two of the 'N' cities, and no two cities have multiple roads between them. Mr. X wants to visit all the 'M' roads and 'N' cities of Ninja land. To do so, he can arbitrarily select any city as the starting city, travel through all the roads, and should end his journey in the same city which he selected as the starting city.

Given the description of each of the 'M' roads i.e, the two 2 cities that the road connects, and the time it takes to travel between the two cities. Your task is to find the minimum time that Mr. X will take to visit all the roads satisfying the above conditions.

If there is no possible way to travel all the roads, then return -1.

Problem approach

Tip 1: read atleast two time
Tip 2: think about your aproach
Tip 3: dont directly write code

Try solving now

2. Max Sum After 'K' Negations

Easy
15m average time
85% success
0/40
Asked in companies
IntuitCognizantSamsung R&D Institute

You are given an array/list ‘arr’ of size ‘N’. Find the maximum sum of the elements of the array you can obtain after flipping the sign of exactly ‘K’ elements

For example :
Let arr = [-2, 0, 5, -1, 2]
and K = 4

We will output 10 as we replace -2 by 2, -1 by 1, 0 by 0, and 0 by 0.
Note :
We can apply the flip operation to the same element multiple times
Try solving now
02
Round
Medium
Video Call
Duration45 Minutes
Interview date23 Dec 2021
Coding problem1

timing of interview 11:00 to 11:45 AM ,very basic questions on python,stak queues

1. Factorial of a Number

Moderate
25m average time
70% success
0/80
Asked in companies
Wells FargoTata Consultancy Services (TCS)Squadstack

You are given an integer ‘N’. You have to print the value of Factorial of ‘N’. The Factorial of a number ‘N’ is defined as the product of all numbers from 1 to ‘N’.

For Example:
Consider if ‘N’ = 4, the Factorial of 4 will be the product of all numbers from 1 to 4, which is 1 * 2 * 3 * 4 = 24. Hence, the answer is 24.
Problem approach

very simple both iterative and recursive method
second one is the sieve of Eratosthenes

Try solving now
03
Round
Medium
Video Call
Duration45 Minutes
Interview date25 Aug 2022
Coding problem1

Very basi question on sql very easy group by order by having clause/where clause

1. DBMS Questions

Group By- Order By difference
Primary key- Unique key
indexing
joins
aggregator functions

Problem approach

Tip 1 : if you studied well you have good confidence
 

04
Round
Easy
HR Round
Duration30 Minutes
Interview date30 Dec 2021
Coding problem1

Documents Check 
how was your interview

1. Basic HR questions

Document verification

Problem approach

Tip 1 : Nothing cool
 

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