Capgemini Placement Papers 2026 — Complete Pseudocode & Coding Question Bank with Solutions
Capgemini is a French multinational corporation and one of the world's largest consulting, technology, and outsourcing companies. With 350,000+ employees globally and approximately 200,000 in India, Capgemini is a major recruiter of engineering freshers offering competitive packages and diverse project opportunities.
This page contains 50+ actual Capgemini questions with detailed solutions covering the unique Pseudocode section, Quantitative Aptitude, Logical Reasoning, Written English, and Coding problems — everything you need to crack Capgemini in 2026.
PSEUDOCODE = Capgemini's Unique Differentiator
Unlike other IT companies, Capgemini tests PSEUDOCODE TRACING heavily. This section has 40 questions in 50 minutes and is where most candidates fail. Master this section first!
Capgemini Eligibility Criteria 2026
Academic: 60% or 6.0 CGPA throughout (10th, 12th, Graduation)
Critical: The Pseudocode section alone has 40 questions! This is Capgemini's unique test. Most candidates underestimate this and fail. Practice pseudocode tracing extensively.
PSEUDOCODE Section — Master This! (15 Questions with Solutions)
How to Solve Pseudocode: Use pen and paper. Create a trace table with columns for each variable. Execute line by line. Track all variable values at each step. Don't try to solve in your head!
Basic Pseudocode Tracing
P1What is the output of the following pseudocode?
INTEGERa = 5, b = 3, cc = a + ba = c - ab = c - bPRINTa, b
5, 3
3, 5
8, 8
5, 5
Answer: B) 3, 5
Trace Table:
Step
a
b
c
Initial
5
3
-
c = a + b
5
3
8
a = c - a
3
3
8
b = c - b
3
5
8
This is a classic swap algorithm using sum. Output: 3, 5
P2What is the output of the following pseudocode?
INTEGERi = 1, sum = 0WHILE (i <= 5)
sum = sum + ii = i + 1ENDWHILEPRINTsum
10
15
20
25
Answer: B) 15
Trace: sum = 0 + 1 + 2 + 3 + 4 + 5 = 15
This calculates the sum of first 5 natural numbers.
P3What is the output of the following pseudocode?
INTEGERx = 10IF (x > 5)
x = x - 3IF (x > 5)
x = x * 2ENDIFELSEx = x + 5ENDIFPRINTx
7
10
14
15
Answer: C) 14
Trace:
x = 10
10 > 5? Yes → x = 10 - 3 = 7
7 > 5? Yes → x = 7 * 2 = 14
Output: 14
Trace:
max = 3 initially
i=1: arr[1]=1 > 3? No
i=2: arr[2]=4 > 3? Yes → max = 4
i=3: arr[3]=1 > 4? No
i=4: arr[4]=5 > 4? Yes → max = 5
This finds the maximum element in the array.
Function-based Pseudocode
P7What is the output of the following pseudocode?
FUNCTIONmystery(n)
IF (n <= 1)
RETURNnENDIFRETURNmystery(n-1) + mystery(n-2)
ENDFUNCTIONPRINTmystery(6)
FUNCTIONcalc(a, b)
IF (b == 0)
RETURNaENDIFRETURNcalc(b, aMODb)
ENDFUNCTIONPRINTcalc(48, 18)
2
3
6
18
Answer: C) 6
This is the GCD (Euclidean algorithm)! Trace:
calc(48, 18): 48 MOD 18 = 12 → calc(18, 12)
calc(18, 12): 18 MOD 12 = 6 → calc(12, 6)
calc(12, 6): 12 MOD 6 = 0 → calc(6, 0)
calc(6, 0): b=0, return 6
GCD(48, 18) = 6
P9What is the output of the following pseudocode?
INTEGERx = 5FUNCTIONmodify(y)
y = y * 2RETURNyENDFUNCTIONINTEGERresult = modify(x)
PRINTx, result
5, 10
10, 10
5, 5
10, 5
Answer: A) 5, 10
Key Concept: Pass by value!
When x is passed to modify(), only the value (5) is copied to y.
y becomes 10 inside the function, but x remains 5.
result = 10 (returned value)
Output: 5, 10
Nested Loops & Complex Logic
P10What is the output of the following pseudocode?
29A train travels 360 km in 4 hours. How long will it take to travel 540 km at the same speed?
5 hours
6 hours
7 hours
8 hours
Answer: B) 6 hours
Speed = 360/4 = 90 km/hr
Time = 540/90 = 6 hours
30A person walks at 6 km/hr and cycles at 10 km/hr. What is the average speed if he walks 30 km and then cycles 50 km?
7.5 km/hr
8 km/hr
8.5 km/hr
9 km/hr
Answer: B) 8 km/hr
Time walking = 30/6 = 5 hours
Time cycling = 50/10 = 5 hours
Total distance = 80 km, Total time = 10 hours
Average speed = 80/10 = 8 km/hr
Logical Reasoning (10 Questions with Solutions)
Seating Arrangement
31Five friends A, B, C, D, E sit in a row facing north. C sits in the middle. A sits at the right end. B is not adjacent to C. Who sits between C and A?
B
D
E
Cannot be determined
Answer: D) Cannot be determined
C is in position 3, A is in position 5 (right end).
Position 4 is between C and A.
B is not adjacent to C, so B is not in position 2 or 4.
Position 4 must be D or E — both are possible. Cannot determine.
32Eight people A-H sit in a circle facing center. A sits opposite to E. B is 2 places right of A. C is adjacent to both A and H. Who is opposite to B?
C
D
F
G
Answer: C) F
In a circle of 8, opposite means 4 positions apart.
If A is at position 1, E is at position 5.
B is 2 right of A → B at position 3.
Opposite to B (position 3) is position 7 = F.
Blood Relations
33A is B's sister. C is B's mother. D is C's father. E is D's mother. How is A related to D?
Granddaughter
Daughter
Great-granddaughter
Grandmother
Answer: A) Granddaughter
D is C's father → D is grandfather of B and A
A is D's granddaughter.
34Pointing to a man, a woman said, "His mother is the only daughter of my mother." How is the woman related to the man?
Mother
Daughter
Sister
Grandmother
Answer: A) Mother
"Only daughter of my mother" = the woman herself
So the man's mother is the woman.
The woman is the man's mother.
Coding-Decoding
35If PENCIL is coded as QFODJM, how is ERASER coded?
FSBTFS
FSBTFT
FSBSFS
GTCUGT
Answer: A) FSBTFS
Pattern: Each letter +1
P→Q, E→F, N→O, C→D, I→J, L→M
ERASER: E→F, R→S, A→B, S→T, E→F, R→S = FSBTFS
36If 'MANGO' is coded as '13114715', how is 'APPLE' coded?
116161612
116161205
11616125
116161612
Answer: B) 116161205
Each letter → its position number
M=13, A=1, N=14, G=7, O=15
APPLE: A=1, P=16, P=16, L=12, E=5 = 116161205
Syllogisms
37Statements: All tables are chairs. Some chairs are desks.
Conclusions: I. Some desks are tables. II. Some chairs are tables.
Only I follows
Only II follows
Both follow
Neither follows
Answer: B) Only II follows
All tables are chairs → Some chairs are tables (converse) ✓
"Some chairs are desks" doesn't connect desks to tables definitively. I doesn't follow.
38Statements: No dogs are cats. All cats are animals.
Conclusions: I. No dogs are animals. II. Some animals are not dogs.
Only I follows
Only II follows
Both follow
Neither follows
Answer: B) Only II follows
All cats are animals, and no dogs are cats.
So cats (which are animals) are definitely not dogs.
Some animals (cats) are not dogs. ✓
But dogs could still be animals through another path. I doesn't follow.
Direction Sense
39A man walks 30m North, turns left, walks 40m, turns left, walks 30m. How far is he from the starting point?
0m
30m
40m
50m
Answer: C) 40m
Start → 30m North → Left (West) → 40m West → Left (South) → 30m South
Final position: 40m West of start
Distance = 40m
40Ravi walks 5 km East, turns right and walks 3 km, turns right and walks 5 km. In which direction is he facing?
North
South
East
West
Answer: D) West
Start facing East → 5km East → Right (South) → 3km South → Right (West) → 5km West
Facing West.
Written English (8 Question Types with Examples)
41Essay Writing Topic: "The Impact of Artificial Intelligence on Employment"
Write a 200-250 word essay.
Sample Structure:
Introduction (40-50 words):
Artificial Intelligence is transforming industries worldwide, raising both opportunities and concerns about employment. While AI automates routine tasks, it also creates new roles requiring human creativity and oversight.
Body Paragraph 1 - Challenges (60-70 words):
AI threatens jobs in manufacturing, customer service, and data entry. Automation can perform repetitive tasks faster and cheaper. Workers in these sectors face displacement without reskilling opportunities.
Body Paragraph 2 - Opportunities (60-70 words):
However, AI creates demand for new skills: data scientists, AI trainers, ethics specialists. Human qualities like empathy, creativity, and complex problem-solving remain irreplaceable. Companies need workers to design, maintain, and improve AI systems.
Conclusion (40-50 words):
The key lies in adaptation. Governments and organizations must invest in education and training programs. By embracing lifelong learning, workers can thrive alongside AI rather than being replaced by it.
42Email Writing: Write a professional email to your manager requesting work-from-home for 3 days due to a family emergency.
Sample Email:
Subject: Request for Work From Home - March 21-23, 2026
Dear Mr./Ms. [Manager's Name],
I am writing to request permission to work from home for three days (March 21-23, 2026) due to an urgent family situation that requires my presence at home.
I assure you that my work will not be affected. I will be available via email and phone during regular working hours and will complete all assigned tasks on schedule. I have also briefed [Colleague Name] to handle any urgent matters in my absence.
Please let me know if you need any additional information or documentation. I appreciate your understanding and support.
Thank you for your consideration.
Best regards,
[Your Name]
[Employee ID]
[Contact Number]
43Sentence Completion: The project was _______ due to lack of funding, but the team remained _______ about future prospects.
delayed, pessimistic
postponed, optimistic
accelerated, concerned
completed, uncertain
Answer: B) postponed, optimistic
"but" indicates contrast. Project was delayed negatively, but team had positive outlook. "Postponed" (negative) contrasts with "optimistic" (positive).
44Error Correction: Find the error: "The committee have decided that the meeting will held tomorrow at 10 AM."
committee have → committee has
will held → will be held
Both A and B
No error
Answer: C) Both A and B
"Committee" is a collective noun (singular) → "has" not "have"
"Will held" is incorrect → "will be held" (passive voice)
45Comprehension: "Remote work has revolutionized modern employment. While it offers flexibility and eliminates commute time, it presents challenges in team collaboration and work-life boundaries."
According to the passage, remote work:
Has only positive effects
Has only negative effects
Has both advantages and disadvantages
Should be avoided
Answer: C) Has both advantages and disadvantages
The passage mentions positives (flexibility, no commute) and negatives (collaboration challenges, work-life boundaries). It presents a balanced view.
46Vocabulary: Choose the word closest in meaning to "METICULOUS":
Careless
Hasty
Thorough
Indifferent
Answer: C) Thorough
"Meticulous" means showing great attention to detail, being very careful and precise — synonymous with "thorough."
47Para Jumbles: Arrange: P: Finally, the team celebrated their success. Q: First, they identified the root cause of the issue. R: Then, they implemented a comprehensive solution. S: After thorough testing, the fix was deployed.
Q-R-S-P
Q-S-R-P
P-Q-R-S
R-Q-S-P
Answer: A) Q-R-S-P
Sequence words: First (Q) → Then (R) → After (S) → Finally (P)
Logical flow: Identify → Implement → Test → Celebrate
48Antonym: Choose the word opposite in meaning to "EPHEMERAL":
Fleeting
Temporary
Permanent
Brief
Answer: C) Permanent
"Ephemeral" means lasting for a very short time. Its opposite is "permanent" — lasting indefinitely.
Coding Section — Programming Problems (4 Problems with Solutions)
Problem 1: Fibonacci Sequence
C1Write a program to generate the first n Fibonacci numbers.
# Python Solutiondeffibonacci(n):
if n <= 0:
return []
elif n == 1:
return [0]
elif n == 2:
return [0, 1]
fib = [0, 1]
for i in range(2, n):
fib.append(fib[i-1] + fib[i-2])
return fib
# Test
print(fibonacci(10)) # [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]
Time Complexity: O(n) Space Complexity: O(n) for storing the sequence Key Concepts: Dynamic programming, iterative approach
Problem 2: Matrix Rotation (90 degrees clockwise)
C2Write a program to rotate an NxN matrix 90 degrees clockwise.
# Python Solutiondefrotate_matrix(matrix):
n = len(matrix)
# Step 1: Transpose the matrixfor i in range(n):
for j in range(i, n):
matrix[i][j], matrix[j][i] = matrix[j][i], matrix[i][j]
# Step 2: Reverse each rowfor row in matrix:
row.reverse()
return matrix
# Test
matrix = [
[1, 2, 3],
[4, 5, 6],
[7, 8, 9]
]
result = rotate_matrix(matrix)
for row in result:
print(row)
# Output:
# [7, 4, 1]
# [8, 5, 2]
# [9, 6, 3]
Time Complexity: O(n²) Space Complexity: O(1) — in-place rotation Key Concepts: Matrix manipulation, transpose, in-place operations
Problem 3: String Anagram Check
C3Write a program to check if two strings are anagrams of each other.
# Python Solution - Method 1: Sortingdefis_anagram_sort(s1, s2):
# Remove spaces and convert to lowercase
s1 = s1.replace(" ", "").lower()
s2 = s2.replace(" ", "").lower()
return sorted(s1) == sorted(s2)
# Python Solution - Method 2: Frequency Count (More Efficient)defis_anagram_count(s1, s2):
s1 = s1.replace(" ", "").lower()
s2 = s2.replace(" ", "").lower()
if len(s1) != len(s2):
returnFalse# Count frequency of each character
freq = {}
for char in s1:
freq[char] = freq.get(char, 0) + 1for char in s2:
if char not in freq:
returnFalse
freq[char] -= 1if freq[char] == 0:
del freq[char]
return len(freq) == 0# Test
print(is_anagram_count("listen", "silent")) # True
print(is_anagram_count("hello", "world")) # False
print(is_anagram_count("Astronomer", "Moon starer")) # True
Method 1 (Sorting): O(n log n) time, O(n) space Method 2 (Frequency): O(n) time, O(k) space (k = unique chars) Key Concepts: String manipulation, hash maps, sorting
Problem 4: Stack Implementation
C4Implement a stack with push, pop, and get_min operations, all in O(1) time.
# Python Solution - Min StackclassMinStack:
def__init__(self):
self.stack = []
self.min_stack = [] # Auxiliary stack for minimumsdefpush(self, val):
self.stack.append(val)
# Push to min_stack if empty or val <= current minif not self.min_stack or val <= self.min_stack[-1]:
self.min_stack.append(val)
defpop(self):
if not self.stack:
returnNone
val = self.stack.pop()
# If popped value is current min, pop from min_stack tooif val == self.min_stack[-1]:
self.min_stack.pop()
return val
deftop(self):
return self.stack[-1] if self.stack elseNonedefget_min(self):
return self.min_stack[-1] if self.min_stack elseNone# Test
stack = MinStack()
stack.push(5)
stack.push(2)
stack.push(8)
stack.push(1)
print(stack.get_min()) # 1
stack.pop()
print(stack.get_min()) # 2
stack.pop()
print(stack.get_min()) # 2
Time Complexity: O(1) for all operations Space Complexity: O(n) for both stacks Key Concepts: Stack, auxiliary data structure, tracking minimum
25-Day Preparation Plan
Capgemini Examination — Complete 25-Day Strategy
Days 1-7: PSEUDOCODE MASTERY (Most Critical Week!)
Day 1-2: Understand pseudocode syntax, basic tracing (variables, assignments)
Day 3-4: Loops (for, while, do-while), conditionals (if-else, nested)
Day 5-6: Functions, recursion, parameter passing (value vs reference)
Day 7: Arrays, strings, complex algorithms (sorting, searching)
Daily Target: 25-30 pseudocode problems. Use pen and paper to trace!
Data Structures basics (arrays, linked lists, stacks)
Explain your projects in detail — be prepared for deep questions
May ask to write code on paper
HR Interview
Duration: 15-25 minutes
Focus: Cultural fit, career goals, company knowledge
Common Questions:
Tell me about yourself (2-minute pitch)
Why Capgemini? What do you know about us?
Where do you see yourself in 5 years?
Strengths and weaknesses
Are you open to relocation? Any location preferences?
Salary expectations (research before answering)
Frequently Asked Questions
What is Capgemini minimum CGPA requirement?
Capgemini requires minimum 60% or 6.0 CGPA throughout academics (10th, 12th, graduation). No active backlogs allowed. All engineering branches, MCA, M.Sc eligible. Age limit typically under 28 years.
What is Capgemini fresher salary 2026?
Capgemini 2026 fresher salaries: Analyst offers ~₹4.25 LPA, Senior Analyst offers ~₹8.5 LPA, and Consultant role offers ~₹12 LPA. Higher roles require better test scores and interview performance.
What is Capgemini exam pattern 2026?
Capgemini 2026 pattern: Pseudocode (40Q/50min) + Behavioral (9Q/10min) + Written English (2Q/20min) + eSAP (5 sections/80min) + Coding (2Q/45min). Pseudocode is the unique and most important section.
What is pseudocode section in Capgemini?
Pseudocode section tests your ability to trace algorithms written in pseudo-language. You need to determine output, find errors, or predict variable values. 40 questions in 50 minutes. Practice algorithm tracing thoroughly.
Is there negative marking in Capgemini exam?
No negative marking in Capgemini exam. Attempt all questions as unanswered questions score zero. Focus on accuracy but don't leave any question blank.
What programming languages are allowed in Capgemini coding?
Capgemini allows C, C++, Java, Python for coding rounds. Python is recommended for faster implementation. Focus on clean code structure and handling edge cases.
How to prepare for Capgemini pseudocode?
Practice tracing algorithms step-by-step. Understand loops (for, while), conditionals (if-else), function calls, recursion. Use pen and paper to trace variable values. Practice 20+ problems daily in the first week.
What is eSAP in Capgemini?
eSAP (Suitability Assessment Profile) is a behavioral assessment with 5 sections: Numerical Ability, Logical Reasoning, Verbal Ability, Abstract Reasoning, and Personality Assessment. Total 80 minutes.
How many rounds are there in Capgemini placement?
Capgemini has 3-4 rounds: (1) Online Examination (Pseudocode + Behavioral + English + eSAP + Coding), (2) Technical Interview, (3) HR Interview. Some may have combined Technical+HR round.
What topics are asked in Capgemini technical interview?
Capgemini technical interview covers: Programming basics, OOP concepts, DBMS (SQL queries), OS fundamentals, Data Structures, Project discussion. May ask to write code on paper.
Is Capgemini a good company for freshers?
Yes, Capgemini is a leading European IT company with 350K+ employees globally, ~200K in India. Offers diverse projects, good work-life balance, global opportunities, and structured career growth.
What is Capgemini training duration?
Capgemini provides 6-12 weeks of training for freshers covering technical skills, domain knowledge, and soft skills. Training is paid and location depends on project allocation.
Can ECE/EEE students apply for Capgemini?
Yes, Capgemini accepts all engineering branches. ECE, EEE, Mechanical, Civil students are eligible. Same eligibility criteria applies. Focus on programming basics for technical round.
How difficult is Capgemini exam?
Capgemini difficulty is moderate to high due to pseudocode section. Aptitude is standard. Coding is moderate. With 3-4 weeks preparation focusing on pseudocode, clearing is achievable.
What is Capgemini bond period?
Capgemini has a 1-2 year service agreement depending on role. Penalty for early exit varies. Analyst roles typically have ₹50,000-75,000 penalty. Check your offer letter for specific terms.
When does Capgemini conduct campus placements?
Capgemini conducts placements in August-October (early hiring) and January-March (regular season). Off-campus hiring through Capgemini careers portal is available throughout the year.
What is Capgemini cutoff score?
Capgemini cutoff varies: Analyst requires 60%+ overall with good pseudocode score, Senior Analyst requires 70%+, Consultant requires 75%+. Pseudocode section has high weightage.
How to crack Capgemini coding round?
Practice Fibonacci, matrix operations, string manipulation, stack/queue implementation. Focus on clean code, proper comments, handling edge cases. Python recommended for speed. 2 problems in 45 minutes.