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

Programmer Analyst Trainee

Cognizant
upvote
share-icon
3 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Journey
Being from a tier 3 college I wasn't expecting great companies visiting the campus and hence was regular with my DSA and core subjects. Although I got better offers later in my graduation Cognizant was a very good opportunity to learn and work with the evolving needs of IT industry.
Application story
Cognizant is a company which visits my campus after October. I had plenty of time to prepare my core subjects like OOPS, DBMS, Computer Networks and DSA is mandatory.
Why selected/rejected for the role?
I was selected for the Genc Next role which is the highest package offering by Cognizant to fresher role.
Preparation
Duration: 6 months
Topics: OOPS, DBMS, Java, HTML, CSS, Javascript,
Tip
Tip

Tip 1 : If you are fresher focus on core subjects as well.
Tip 2 : You should be aware of OOPS concepts.
Tip 3 : Practice DSA as much as possible.

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

Tip 1 : Prepare well what you write in your resume
Tip 2 : Make a decent project.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration110 min
Interview date28 Nov 2021
Coding problem2

Slot timing was 2:00 PM to 4:00 PM

1. N-th Fibonacci Number

Moderate
40m average time
70% success
0/80
Asked in companies
HCL TechnologiesCiscoNatwest Group

You are given an integer ‘N’, your task is to find and return the N’th Fibonacci number using matrix exponentiation.

Since the answer can be very large, return the answer modulo 10^9 +7.

Fibonacci number is calculated using the following formula:
F(n) = F(n-1) + F(n-2), 
Where, F(1) = F(2) = 1.
For Example:
For ‘N’ = 5, the output will be 5.
Try solving now

2. First non repeating character

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

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.

Try solving now
02
Round
Easy
Video Call
Duration30 mins
Interview date8 Dec 2021
Coding problem3

It was afternoon around 1PM.

1. Convert The HTML Entities

Moderate
30m average time
70% success
0/80
Asked in company
eBay

You are given a string “STR”, of characters and HTML entities, your task is to convert the given string’s HTML entities into their single characters and get the HTML string.

The entities used in this problem are :
" is the code used for quotation marks symbol: (“)
' is the code used for single quotation marks or apostrophe symbol: (‘)
&lt; is the code used for less than symbol: (<)
&gt; is the code used for greater than symbol: (>)
&amp; is the code used for the ampersand symbol: (&)
&sol; is the code used for the slash symbol: (/)
&bsol; is the code used for the backslash symbol: (\)
For Example :
“STR”: &quot; Coding Ninjas is a platform to practice coding &amp; participate in events. &quot;
Which on converting will look like: “Coding Ninjas is a platform to practice coding & participate in events.”
Try solving now

2. Frequency In A Sorted Array

Easy
15m average time
85% success
0/40
Asked in companies
OlaAdobeMcAfee

You are given a sorted array 'ARR' and a number 'X'. Your task is to count the number of occurrences of 'X' in 'ARR'.

Note :
1. If 'X' is not found in the array, return 0.
2. The given array is sorted in non-decreasing order.
Try solving now

3. Theory Questions

What are OOPS principles?

Events in javascript?

What are triggers in SQL?

What are some different data types in SQL?

Explain deadlock.

 

Problem approach

Tip 1 : Prepare you core subjects.
 

03
Round
Easy
HR Round
Duration30 minutes
Interview date15 Dec 2021
Coding problem1

Afternoon 12PM. This round mainly was an insight into the job role and internship duration.

1. Basic HR Questions

Introduce yourself

Why do you want to join us?

What are your hobbies?

What do you think makes you a better choice than the other candidates?

What are your strengths and weaknesses?

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