Skip to content

Capgemini Placement Papers 2024 - Actual Questions & Solutions

Capgemini placement papers 2024 with actual pseudocode questions, hands-on coding problems, and solutions from the 2024 recruitment cycle.

Capgemini 2024 Placement Papers - Complete Question Bank

Section titled “Capgemini 2024 Placement Papers - Complete Question Bank”

This page contains actual Capgemini placement papers from 2024 with 40+ questions from game-based assessment and hands-on coding round.

RoundQuestionsTimeDifficulty
Game-Based (Pseudocode)15 MCQs25 minMedium
Hands-on Coding2 problems45 minEasy-Medium
Technical Interview-30-45 minMedium
HR Interview-20-30 minEasy
What is the output?
SET i = 0
WHILE i < 5
PRINT i
SET i = i + 2
END WHILE

Answer: 0 2 4

Explanation: Loop runs with i = 0, 2, 4 (stops when i = 6)

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

Answer: 15

Explanation: Sum of array elements = 1+2+3+4+5 = 15

What is the output?
SET x = 5, y = 10
IF x > y THEN
PRINT x
ELSE IF x == y THEN
PRINT 0
ELSE
PRINT y
END IF

Answer: 10

Explanation: Since x < y, the ELSE branch executes

How many times does inner loop execute?
FOR i FROM 1 TO 3
FOR j FROM 1 TO 2
PRINT i * j
END FOR
END FOR

Answer: 6 times

Explanation: 3 outer iterations × 2 inner iterations = 6

What is the output?
FUNCTION double(x)
RETURN x * 2
END FUNCTION
SET a = 5
SET b = double(a)
PRINT b

Answer: 10

Explanation: double(5) returns 5 × 2 = 10

What is the output?
SET str = "Hello"
SET count = 0
FOR i FROM 0 TO LENGTH(str) - 1
SET count = count + 1
END FOR
PRINT count

Answer: 5

Explanation: Counts each character in “Hello”

What is the output?
FUNCTION factorial(n)
IF n <= 1 THEN
RETURN 1
END IF
RETURN n * factorial(n - 1)
END FUNCTION
PRINT factorial(4)

Answer: 24

Explanation: 4! = 4 × 3 × 2 × 1 = 24

What is arr after execution?
SET arr = [1, 2, 3, 4]
SET n = 4
FOR i FROM 0 TO n/2 - 1
SET temp = arr[i]
SET arr[i] = arr[n - 1 - i]
SET arr[n - 1 - i] = temp
END FOR

Answer: [4, 3, 2, 1]

Explanation: Swaps first with last, second with second-last

What is the output for n=7?
SET n = 7, isPrime = TRUE
FOR i FROM 2 TO n - 1
IF n MOD i == 0 THEN
SET isPrime = FALSE
END IF
END FOR
PRINT isPrime

Answer: TRUE

Explanation: 7 is not divisible by 2-6

What is the output?
SET arr = [3, 1, 4, 1, 5, 9, 2]
SET max = arr[0]
FOR i FROM 1 TO 6
IF arr[i] > max THEN
SET max = arr[i]
END IF
END FOR
PRINT max

Answer: 9

Explanation: Finds maximum element in array

Difficulty: Easy
Time: 15 minutes

Reverse a given string without using built-in functions.

Input: “capgemini”
Output: “inigempaC”

Difficulty: Easy
Time: 15 minutes

Check if a string is palindrome (ignore case and spaces).

Input: “A man a plan a canal Panama”
Output: true

Difficulty: Easy
Time: 15 minutes

Check if a number is Armstrong (sum of cubes of digits equals number for 3-digit).

Input: 153
Output: true (1³ + 5³ + 3³ = 153)

Difficulty: Easy
Time: 15 minutes

Print first n Fibonacci numbers.

Input: n = 7
Output: 0 1 1 2 3 5 8

Difficulty: Easy
Time: 10 minutes

Count vowels and consonants in a string.

Input: “Capgemini”
Output: Vowels: 4, Consonants: 5

  1. Pseudocode Critical: Many fail here - practice daily
  2. Time Pressure: 25 minutes for 15 pseudocode questions
  3. Careful Reading: Read each line, trace step by step
  4. Basic Coding: Hands-on problems are straightforward
  5. No Negative Marking: Attempt all questions
  6. Success Rate: ~35% clear pseudocode round

Master pseudocode - it’s the key to clearing Capgemini!

Last updated: February 2026