Capgemini interview questions for freshers come after a set of online assessments. They usually cover programming basics, OOP, DBMS, your project and HR questions. This page explains the selection process in general terms. It then gives 20 practice questions with sample answers, including pseudocode tracing, which candidates often mention for Capgemini tests. Every code sample was run to confirm its output.
Important: Capgemini changes its hiring process, assessments, eligibility and role names from time to time. Use this page to prepare, not as an official description. Always check the official Capgemini careers website and your placement cell notice for the current process.
The Capgemini selection process in general
| Stage | What usually happens |
|---|---|
| Registration | Apply through the official Capgemini careers site or your campus drive |
| Online assessments | Pseudocode, English, game-based aptitude and behavioural sections, as described in candidate reports |
| Technical interview | Programming, OOP, DBMS and your project |
| HR interview | Background, flexibility and fit |
| Offer | Offer letter, document checks and joining details |
Candidates report entry roles such as Analyst, with some drives offering a higher role for stronger coders after an extra coding round. Role names and rules change, so confirm them on the official Capgemini pages.
What the assessments usually cover
Candidate reports describe a pseudocode section, an English communication section with grammar and reading, a game-based aptitude section and a behavioural competency questionnaire. Some drives have added a coding section. The exact sections, timings and elimination rules change between years, so read the current pattern from official sources.
Practise aptitude with these placement aptitude questions, and practise tracing code by hand for the pseudocode part.
How to answer in a Capgemini interview
Interviewers look for clear basics and honest answers. Speak in short sentences. For programs, explain your approach first, then write the code and test it with one small example.
Pro tip: In the behavioural questionnaire, answer as you really are. These tests often check consistency across similar questions, and trying to guess the "right" answer can make your responses look inconsistent.
Pseudocode practice questions
These questions show the style candidates describe. They are practice items, not real test questions.
Q1. What is the output of this pseudocode?
SET count = 0
FOR i = 1 TO 10
IF i MOD 3 == 0 THEN
count = count + i
END IF
END FOR
PRINT count
Answer: 18. The condition is true for 3, 6 and 9, and 3 + 6 + 9 = 18.
Q2. What does this pseudocode print?
SET a = 5, b = 3
PRINT a & b
PRINT a | b
PRINT a ^ b
Here & is bitwise AND, | is bitwise OR and ^ is bitwise XOR.
Answer: 1, 7 and 6.
| Operation | 5 in binary | 3 in binary | Result |
|---|---|---|---|
| AND | 101 | 011 | 001 = 1 |
| OR | 101 | 011 | 111 = 7 |
| XOR | 101 | 011 | 110 = 6 |
Write numbers in binary and compare bit by bit. The number system converter helps you check binary values while practising.
Q3. What does this function return for f(48, 18)?
FUNCTION f(a, b)
IF b == 0 THEN RETURN a
RETURN f(b, a MOD b)
END FUNCTION
Answer: 6. The calls are f(48, 18), f(18, 12), f(12, 6) and f(6, 0), which returns 6. This is the Euclidean algorithm for the GCD. See the GCD problem for code.
Capgemini technical interview questions
These match commonly reported topics. They are not a list of questions Capgemini will ask.
Q4. Tell me about yourself.
Sample answer: "I am [your name], a final-year IT student. I know Java and SQL, and my project is a hostel room booking system built with Java and MySQL, where I wrote the booking and availability checks. I want to start my career as a developer and keep learning on client projects."
The guide to tell me about yourself has more examples.
Q5. Write a program to check whether a string is a palindrome.
public class Palindrome {
static boolean isPalindrome(String s) {
String clean = s.toLowerCase().replaceAll("[^a-z0-9]", "");
int left = 0, right = clean.length() - 1;
while (left < right) {
if (clean.charAt(left) != clean.charAt(right)) {
return false;
}
left++;
right--;
}
return true;
}
public static void main(String[] args) {
System.out.println(isPalindrome("Madam"));
System.out.println(isPalindrome("Never odd or even"));
System.out.println(isPalindrome("Capgemini"));
}
}
Output:
true
true
false
Two pointers move towards the middle, so no reversed copy is needed. Cleaning the string first makes the check ignore case and spaces.
Q6. Find the smallest and largest values in an array.
public class MinMax {
public static void main(String[] args) {
int[] marks = {67, 92, 45, 88, 73};
int min = marks[0], max = marks[0];
for (int m : marks) {
if (m < min) min = m;
if (m > max) max = m;
}
System.out.println("Min: " + min + ", Max: " + max);
}
}
Output:
Min: 45, Max: 92
Start with the first element, not 0, so the code works for negative numbers too.
Q7. Reverse the order of words in a sentence.
public class ReverseWords {
public static void main(String[] args) {
String sentence = "practice makes progress";
String[] words = sentence.split(" ");
StringBuilder out = new StringBuilder();
for (int i = words.length - 1; i >= 0; i--) {
out.append(words[i]);
if (i > 0) out.append(" ");
}
System.out.println(out);
}
}
Output:
progress makes practice
StringBuilder avoids creating a new string on every append. Expect a follow-up on why strings are immutable in Java.
Q8. What is the difference between an abstract class and an interface?
Sample answer: An abstract class can have fields, constructors, abstract methods and methods with code. An interface defines a contract that classes implement, and since Java 8 it can also have default and static methods. A class can extend only one class but implement many interfaces. More Java OOP questions are on the Java OOP interview questions page.
Q9. What is a constructor? Can it be overloaded?
Sample answer: A constructor is a special method that runs when an object is created. It has the same name as the class and no return type. Yes, it can be overloaded: a Student class can have one constructor with only a name and another with a name and roll number.
Q10. What is the difference between final, finally and finalize in Java?
Sample answer: final stops change: a final variable cannot be reassigned, a final method cannot be overridden and a final class cannot be extended. finally is a block that runs after try and catch, used to close resources. finalize was a method called before garbage collection, and it is deprecated in modern Java.
Q11. What is normalization? Explain 1NF, 2NF and 3NF briefly.
Sample answer: Normalization organises tables to reduce repeated data. 1NF keeps one value per cell. 2NF removes columns that depend on only part of a composite key. 3NF removes columns that depend on another non-key column. The DBMS interview questions page has worked examples.
Q12. What is the difference between a primary key and a unique key?
Sample answer: Both stop duplicate values. A table can have only one primary key, and it cannot be NULL. A table can have several unique keys, and most databases allow NULL in a unique column. Roll number could be the primary key, and email a unique key.
Q13. What is the difference between compile-time and run-time errors?
Sample answer: Compile-time errors are found before the program runs, such as a missing semicolon or a type mismatch. Run-time errors happen while the program runs, such as dividing by zero or accessing an array index that does not exist. Exception handling deals with run-time errors.
Capgemini HR interview questions
Q14. Why Capgemini?
Sample answer: Give reasons you can check, such as its work in consulting and technology services, its training for freshers and its clients across many industries. Connect them to your goals. Avoid generic praise that could fit any company.
Q15. What are your strengths and weaknesses?
Sample answer: Pick one strength with proof and one real weakness you are working on. "I am patient with debugging: I once spent two days finding a date-format bug in my project and fixed it. My weakness is speaking in large groups, so I volunteer to present in class reviews." The guide on strengths and weaknesses has more examples.
Q16. Are you willing to relocate?
Sample answer: Answer honestly. "Yes, I am open to relocating to any location where the project needs me." If you have a real constraint, state it politely.
Q17. How do you handle disagreement in a team?
Sample answer: "In my project, a teammate wanted to use a different database. We listed the pros and cons of both, asked our guide for input and chose the one we both knew better. I learned that discussing facts calmly works better than arguing."
Q18. What motivates you?
Sample answer: Be specific. "Seeing something I built work for real users. When my classmates used our hostel booking system, finding and fixing their problems motivated me more than the marks did."
Q19. Where do you see yourself in five years?
Sample answer: "I want to become a reliable developer who can own a module and help new joiners. I would like to build depth in one area, such as Java backend development or cloud."
Q20. Do you have any questions for us?
Sample answer: "What skills should I build before joining to make the training easier?" or "Which technologies would I work with first?" This shows interest and planning.
A two-week preparation plan for Capgemini
| Days | Focus |
|---|---|
| 1 | Check the current official process and roles |
| 2 to 4 | Pseudocode tracing daily, including bitwise operators and recursion |
| 5 to 6 | English grammar and reading practice |
| 7 to 8 | Your main language and 10 common programs |
| 9 to 10 | OOP, DBMS and SQL basics |
| 11 | Project explanation and resume check |
| 12 to 13 | HR answers and a mock interview |
| 14 | Light revision |
Common mistakes to avoid
| Mistake | Better approach |
|---|---|
| Skipping pseudocode and bitwise practice | Trace 20 small programs on paper |
| Guessing "ideal" answers in the behavioural test | Answer honestly and consistently |
| Rushing the game-based tasks without reading instructions | Read each task's rules and use any practice round |
| Using old test patterns from blogs | Check official Capgemini pages for the current year |
| Trusting unofficial job offers | Apply only through official channels and never pay for a job |
Many topics overlap with other service companies. Practise Infosys interview questions for freshers, which also include pseudocode, and Cognizant interview questions for freshers for SQL practice. Use the same project and HR stories for all of them. For SQL, OS and networking practice, try HCL interview questions for freshers.

