# Capgemini Interview Questions with Answers

8 previously-asked interview questions from Capgemini's hiring process, each with the correct answer and a worked explanation. Written against the company's actual test pattern.

_Source: Astra (https://useastra.in). Updated 2026-09-05._

### 1. Why do you want to join Capgemini?

**Answer:** Relate Capgemini strengths such as strong consulting and engineering services, global projects and structured learning to your goals. Mention its focus on cloud, data and digital transformation if relevant to you.

### 2. What is the difference between C and Python?

**Answer:** C is a compiled, statically typed, low-level language with manual memory management and high performance. Python is interpreted, dynamically typed, high-level, with automatic memory management and concise syntax, favouring developer productivity.

### 3. What is a pointer in C?

**Answer:** A pointer is a variable that stores the memory address of another variable. It enables dynamic memory allocation, efficient array and string handling, and pass-by-reference, but must be used carefully to avoid dangling or null pointer errors.

### 4. Explain the concept of inheritance with a real-world example.

**Answer:** Inheritance lets a class reuse the properties and methods of another. Example: a Car class inherits from a Vehicle class, gaining common attributes like speed and methods like start, while adding its own. It promotes code reuse.

### 5. What is the difference between while and do-while loops?

**Answer:** A while loop checks the condition before executing, so it may run zero times. A do-while loop executes the body once before checking the condition, so it always runs at least once.

### 6. What are the different types of joins in SQL?

**Answer:** INNER JOIN returns matching rows from both tables; LEFT JOIN returns all left rows plus matches; RIGHT JOIN returns all right rows plus matches; FULL OUTER JOIN returns all rows from both; CROSS JOIN returns the Cartesian product.

### 7. What is recursion and what are its advantages and disadvantages?

**Answer:** Recursion is when a function calls itself to solve smaller subproblems until a base case. It gives clean solutions for problems like trees and factorials, but uses extra stack memory and can be slower or cause stack overflow if the base case is wrong.

### 8. What is the difference between static and dynamic memory allocation?

**Answer:** Static allocation happens at compile time with a fixed size (for example stack variables). Dynamic allocation happens at run time from the heap (for example malloc or new), offering flexible size but requiring manual management to avoid leaks.

More Capgemini preparation, including the full recruitment process: https://useastra.in/campus/capgemini
