Skip to content

Capgemini Placement Papers 2025 - Latest Questions & Solutions

Capgemini placement papers 2025 with latest pseudocode questions, hands-on coding problems, and solutions from 2025 recruitment.

Capgemini 2025 Placement Papers - Latest Questions

Section titled “Capgemini 2025 Placement Papers - Latest Questions”

This page contains actual Capgemini placement papers from 2025 with latest game-based assessment questions.

RoundQuestionsTimeNotes
Game-Based15 MCQs25 minAdaptive difficulty
Hands-on Coding2 problems45 minPartial marking
Technical-30-45 minCS fundamentals
HR-20-30 minBehavioral
What is the output?
FUNCTION sum(n)
IF n == 0 THEN
RETURN 0
END IF
RETURN n + sum(n - 1)
END FUNCTION
PRINT sum(5)

Answer: 15

Explanation: 5+4+3+2+1+0 = 15

How many comparisons for arr=[1,3,5,7,9] searching for 7?
SET arr = [1, 3, 5, 7, 9]
SET target = 7
SET low = 0, high = 4, count = 0
WHILE low <= high
SET mid = (low + high) / 2
SET count = count + 1
IF arr[mid] == target THEN
PRINT count
EXIT
ELSE IF arr[mid] < target THEN
SET low = mid + 1
ELSE
SET high = mid - 1
END IF
END WHILE

Answer: 2 (mid=2 gives 5, then mid=3 gives 7)

What is the output?
SET matrix = [[1,2],[3,4]]
SET sum = 0
FOR i FROM 0 TO 1
FOR j FROM 0 TO 1
SET sum = sum + matrix[i][j]
END FOR
END FOR
PRINT sum

Answer: 10

Explanation: 1+2+3+4 = 10

What is the output?
SET str = "CAPGEMINI"
SET count = 0
FOR i FROM 0 TO LENGTH(str) - 1
IF str[i] == 'I' THEN
SET count = count + 1
END IF
END FOR
PRINT count

Answer: 2

Explanation: Two ‘I’s in CAPGEMINI

What is at top after operations?
CREATE STACK s
PUSH(s, 10)
PUSH(s, 20)
POP(s)
PUSH(s, 30)
PRINT TOP(s)

Answer: 30

Explanation: Push 10, push 20, pop (removes 20), push 30. Top is 30.

What is the output for gcd(48, 18)?
FUNCTION gcd(a, b)
IF b == 0 THEN
RETURN a
END IF
RETURN gcd(b, a MOD b)
END FUNCTION
PRINT gcd(48, 18)

Answer: 6

Explanation: gcd(48,18)→gcd(18,12)→gcd(12,6)→gcd(6,0)→6

Array after first pass?
SET arr = [5, 3, 8, 4]
FOR i FROM 0 TO 2
IF arr[i] > arr[i+1] THEN
SWAP arr[i] AND arr[i+1]
END IF
END FOR

Answer: [3, 5, 4, 8]

Explanation: 5>3 swap→[3,5,8,4], 5<8 no swap, 8>4 swap→[3,5,4,8]

What is the output?
FUNCTION power(x, n)
IF n == 0 THEN
RETURN 1
END IF
RETURN x * power(x, n - 1)
END FUNCTION
PRINT power(2, 4)

Answer: 16

Explanation: 2^4 = 16

Rotate array right by k positions.

Input: [1,2,3,4,5], k=2
Output: [4,5,1,2,3]

Find indices of two numbers that add up to target.

Input: [2,7,11,15], target=9
Output: [0,1]

Remove duplicates from sorted array in-place.

Input: [1,1,2,2,3]
Output: 3 (array becomes [1,2,3,…])

  1. Adaptive Questions: Questions get harder based on performance
  2. Recursion Heavy: More recursive pseudocode questions
  3. Data Structure Pseudocode: Stack, queue operations in pseudocode
  4. Partial Marking: Coding has partial marks now
  5. 35% Success Rate: Pseudocode round filters most candidates

Practice pseudocode daily!

Last updated: February 2026