Cognizant Interview Questions

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Technical Interview 1 (Coding + DSA Focus)

• Core DSA Problems: You’ll likely be asked to solve Data


Structures and Algorithms problems live during the interview.
Common topics include:

• Arrays and Strings: Manipulating and iterating over arrays,


basic string operations.

• Linked Lists: Operations like reversal, middle element detection,


and merging sorted lists.

• Binary Trees/BST: Traversals (inorder, preorder, postorder),


finding height, lowest common ancestor, etc.

• Graph Problems: DFS, BFS traversal.

• Sorting and Searching Algorithms.

• Dynamic Programming: Basic DP problems like Fibonacci,


knapsack, longest common subsequence.

• Code Efficiency: The interviewer will ask for an optimal solution


and inquire about the time and space complexity of your approach.

• Sample Question:

• Find the longest palindrome substring in a given string.

• Use the dynamic programming approach to solve it in O(n²) time.

Technical Interview 2 (Core CS Concepts + Project Discussion)

• Core Computer Science Concepts:


• OOP Principles: Abstraction, Inheritance, Polymorphism,
Encapsulation.

• Operating Systems: Basic OS concepts like process


management, memory management, threads vs. processes.

• Database Management: SQL queries, normalization, joins, ACID


properties.

• Networking: OSI model, TCP/IP, basic networking concepts.

• System Design (for experienced candidates or advanced roles):


Design a scalable system or an application like URL shortener or
an e-commerce system.

• Project Discussion:

• You’ll be asked to explain the projects you’ve worked on (from


your resume). Be prepared to:

• Explain the technical stack you used (e.g., MERN Stack,


Java, Spring Boot, Flutter).

• Walk through the challenges you faced and how you solved
them.

• Discuss teamwork and collaboration experiences in your


project.

Sample Project Discussion Questions:

• What were the key challenges in the project, and how did you
overcome them?
• Which technology did you choose and why?

• How did you implement specific functionalities, such as


authentication or database management?

3. HR Interview

After the technical interviews, you will have an HR interview, which is


generally a discussion about:

• Behavioral Questions: Teamwork, problem-solving attitude,


conflict resolution.

• Situational Questions: Handling pressure, time management in


challenging situations.

• Company Fit: Why do you want to join Cognizant? How do you see
yourself growing within the company?

Sample HR Questions:

• Why Cognizant?

• Where do you see yourself in five years?

• Can you describe a situation where you worked in a team and faced
a disagreement? How did you resolve it?
Sample Questions Asked

https://leetcode.com/problems/maximum-subarray/description/?
envType=company&envId=cognizant&favoriteSlug=cognizant-
three-months

https://leetcode.com/problems/product-sales-analysis-i/description/?
envType=company&envId=cognizant&favoriteSlug=cognizant-
three-months

https://leetcode.com/problems/smallest-value-of-the-rearranged-
number/?
envType=company&envId=cognizant&favoriteSlug=cognizant-
three-months

https://leetcode.com/problems/fizz-buzz/?
envType=company&envId=cognizant&favoriteSlug=cognizant-all

https://leetcode.com/problems/happy-number/?
envType=company&envId=cognizant&favoriteSlug=cognizant-all

https://leetcode.com/problems/valid-parentheses/?
envType=company&envId=cognizant&favoriteSlug=cognizant-all

https://leetcode.com/problems/count-primes/?
envType=company&envId=cognizant&favoriteSlug=cognizant-all

https://leetcode.com/problems/longest-common-prefix/?
envType=company&envId=cognizant&favoriteSlug=cognizant-all

https://leetcode.com/problems/managers-with-at-least-5-direct-
reports/?
envType=company&envId=cognizant&favoriteSlug=cognizant-all

https://leetcode.com/problems/consecutive-numbers/description/?
envType=company&envId=cognizant&favoriteSlug=cognizant-all

You might also like