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

Software Engineer

Cognizant
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: Data Structures, OOPS, Algorithms, Basic Java Concepts, System Design, Aptitude
Tip
Tip

Tip 1 : Practice good amount of DSA questions
Tip 2 : Do good practice of puzzle, Aptitude and Quant questions
Tip 3 : You should have good knowledge of your project

Application process
Where: Campus
Eligibility: Above 7 CGPA
Resume Tip
Resume tip

Tip 1 : Have at least 2 good projects explained in short with all important points covered.

Tip 2 : Every skill must be mentioned.

Tip 3 : Focus on skills, projects and experiences more.


 

Interview rounds

01
Round
Medium
Online Coding Interview
Duration180 minutes
Interview date1 Sep 2021
Coding problem2

The first part is of MCQ questions that include different sets with a different topic and each set has specific time and we have to complete that set within that specific time limit. The second part is coding which includes 2 coding questions. Whoever completely solved one question was selected for the next round

1. Count Frequency

Easy
15m average time
85% success
0/40
Asked in companies
AmazonTata Consultancy Services (TCS)Sprinklr

You are given a string 'S' of length 'N', you need to find the frequency of each of the characters from ‘a’ to ‘z’ in the given string.

Example :

Given 'S' : abcdg
Then output will be : 1 1 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
Problem approach

Since there are just 26 lower case characters, we can use an array of size 26 to store the result.

Try solving now

2. Add Strings

Easy
0/40
Asked in companies
OracleAmazonSnapdeal

You are given two non-negative integers, ‘NUM1’ and ‘NUM2’, in the form of strings. Return the sum of both strings.


Note :
You do not need to print anything, it has already been taken care of. Just implement the given function.
Example:
Let ‘NUM1’ be: “5”
Let ‘NUM2’ be: “21”
The sum of both numbers will be: “26”.
Problem approach

The basic idea is to add the character of the strings individually. We run a loop on both strings simultaneously from the end of the strings and add the sum of the characters. We also keep track of carry and update the result. If at any point sum of characters becomes greater than 9, we update the carry to 1.

Try solving now
02
Round
Medium
Video Call
Duration45 minutes
Interview date29 Sep 2022
Coding problem2

This round had questions from my projects followed by some basic questions from OOPS and Java

1. OOPS Question

Define all four pillars of OOPS and give an example for each

2. Java Questions

1- Explain Heap and stack memory in Java.
2- What is Garbage Collector in Java?
3- What is “final” keyword in Java?
4- Difference between equal() method and == operator

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
Software Engineer
4 rounds | 8 problems
Interviewed by Cognizant
1449 views
0 comments
0 upvotes
company logo
Software Engineer
3 rounds | 3 problems
Interviewed by Cognizant
1043 views
0 comments
0 upvotes
company logo
Software Engineer
2 rounds | 3 problems
Interviewed by Cognizant
974 views
0 comments
0 upvotes
company logo
Software Engineer
3 rounds | 6 problems
Interviewed by Cognizant
889 views
2 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Engineer
4 rounds | 1 problems
Interviewed by Newgen Software
3195 views
2 comments
0 upvotes
company logo
Software Engineer
3 rounds | 6 problems
Interviewed by HashedIn
2574 views
0 comments
0 upvotes
company logo
Software Engineer
2 rounds | 2 problems
Interviewed by Ernst & Young (EY)
0 views
0 comments
0 upvotes