Skip to content
LevelUpCoders
Service-Based AssessmentIT Services & Consulting

Cognizant interview preparation

Pattern breakdown, verified question volume, and topic weights based on recent candidate interview reports.

50Total questions
30Coding tasks
20Aptitude & MCQs
Pattern analysis

What this company's assessment usually contains

Last reviewed: 14 Oct 2026

Cognizant (GenC, GenC Next, and GenC Elevate tracks) assessments are commonly reported to test Quantitative and Analytical ability followed by a Coding test. The GenC Next round typically presents 2-3 medium difficulty questions covering recursion, hash sets, sliding windows, and binary search.

Sample questions

Free question preview (3 sample problems)

Chosen at random per build
Coding challengeTreesEasy
Question 1 of 3

Count Leaves in Binary Tree

Calculate the total number of leaf nodes in a binary tree.

Example input:[1, 2, 3, 4, 5]
Example output:3
Answers, optimal solution code, and hidden test cases are hidden in free preview.
MCQ sampleData Structures & AlgorithmsEasy
Question 2 of 3

Time Complexity of Binary Search

What is the worst-case time complexity of binary search on a sorted array of size n?

AO(1)
BO(n)
CO(log n)
DO(n log n)
Visible MCQ Answer (C): Binary search halves the search space at every step, yielding a logarithmic time complexity of O(log n).
Coding challengeStringsEasy
Question 3 of 3

Check for Rotation

Given two strings s1 and s2, check if s2 is a rotation of s1 (e.g., 'ABCD' and 'CDAB').

Example input:s1='waterbottle', s2='erbottlewat'
Example output:True
Answers, optimal solution code, and hidden test cases are hidden in free preview.

Solve all 50 Cognizant questions with feedback

Access the complete Cognizant placement question bank, live code execution against test cases, AI-guided debugging hints, and placement readiness scores.

Pre-configures Cognizant as your target company during onboarding. Free student access.