Capgemini technical interview questions and answers for freshers

Capgemini technical interview questions for freshers usually test whether you can read and trace code, explain object-oriented concepts, write a basic SQL query and describe how software is built and tested in a team, along with a detailed look at your project. Many candidates report that the online assessment includes a pseudo-code section, and interviewers often continue in the same spirit by asking you to predict the output of a snippet. Practice tracing code by hand and explaining every step out loud.

By Published 7 min read

The Capgemini fresher process in brief

Capgemini is a global consulting and technology services group headquartered in Paris, and India is one of its largest delivery bases. Freshers are hired through campus and off-campus drives, often into entry-level roles that drives have titled Analyst or Senior Analyst, with the senior track widely described as asking more of your coding. The online assessment that candidates describe tends to include pseudo-code questions, English communication, aptitude delivered partly as short game-style tasks, and for some roles coding problems. Section names, timings and order have changed from drive to drive, so read your invitation rather than an old forum thread.

After the assessment comes the interview stage, which may be a single conversation covering technical and HR topics or two separate ones. This page covers the technical questions. The motivation, relocation and commitment questions are on the Capgemini HR interview page.

Why pseudo-code matters here

A pseudo-code question gives you language-neutral code and asks what it prints. It checks whether you understand loops, conditions, recursion, operators and scope without the crutch of a compiler. Because it shows up in the written test, interviewers sometimes pick up the same thread: they type or draw a few lines and ask you to trace them. The reliable method is boring and works every time: write a small table with one column per variable and one row per step.

// 1
Integer a = 5, b = 3, c = 0
for (each i from 1 to 4)
    if (i mod 2 = 0)
        c = c + a
    else
        c = c - b
    end if
end for
print c

// 2
Integer x = 12, y = 10
print (x & y) + (x | y)      // & is bitwise AND, | is bitwise OR

// 3
function f(Integer n)
    if (n <= 0) return 0
    return (n mod 10) + f(n / 10)   // integer division
end function
print f(4071)
Three short tracing exercises (answers below)
  • Exercise 1 prints 4. The value goes -3, 2, -1, 4 as i runs from 1 to 4.
  • Exercise 2 prints 22. 12 AND 10 is 8 and 12 OR 10 is 14. The sum always equals x + y, a pattern worth recognizing.
  • Exercise 3 prints 12. It adds the digits of 4071 recursively: 1 + 7 + 0 + 4.

32 Capgemini technical interview questions

These question types are common in Capgemini fresher technical rounds. We wrote them ourselves; they are not taken from any official or leaked source.

Code reading and logic

  • What does this loop print? Expect a nested loop or a loop with break and continue. Trace it in a table and say the answer only at the end.
  • What is the output if this recursive function is called with 5? Write the call stack, then unwind it.
  • What is the difference between pre-increment and post-increment? ++i changes the value before use, i++ after. Show it in an expression.
  • Find the bug in this snippet. Look for off-by-one bounds, an uninitialized variable or integer division where a decimal was expected.
  • What happens with integer overflow? In fixed-width types the value wraps or is undefined, depending on the language; mention using wider types.
  • Convert this loop into a recursive function. Identify the base case first, then the step that shrinks the problem.

Object-oriented programming in Java or your language

OOP questions often asked of Capgemini freshers
QuestionWhat it testsWhat a strong answer shows
What is a class and what is an object? Use a real-world example.BasicsA blueprint and an instance, with one example from outside textbooks
Can you inherit from two classes in Java? How do you get similar behavior?Inheritance rulesNo multiple class inheritance; interfaces, and why the diamond problem matters
What does the static keyword mean?Class versus instanceBelongs to the class, shared by all objects, and accessible without an instance
Explain access modifiers.Encapsulationprivate, default, protected and public, with who can see what
What is the difference between == and equals() for strings?Reference versus valueSame object versus same content, and a bug this causes
What is a final class, method and variable?Immutability and designCannot be extended, overridden or reassigned respectively
What is exception handling and why use finally?Error flowtry, catch, finally; cleanup that runs whether or not an error occurred
OOP questions often asked of Capgemini freshers. Scroll sideways on a small screen.

Databases and SQL

  • Write a query to list customers who placed no orders. A LEFT JOIN with a NULL check, or NOT EXISTS.
  • What is the difference between WHERE and HAVING? Rows are filtered before grouping, groups after.
  • What is a composite key? A key made of two or more columns that together identify a row.
  • What are constraints in SQL? NOT NULL, UNIQUE, PRIMARY KEY, FOREIGN KEY, CHECK and DEFAULT, with a use for each.
  • What does normalization solve? Redundancy and update anomalies, with a small example.
  • What is a stored procedure? Saved SQL logic run on the database server, often for repeated operations.

SDLC, Agile and testing

Process questions that services interviewers like to ask
QuestionWhat it testsWhat a strong answer shows
Name the phases of the software development life cycle.Process awarenessRequirements, design, build, test, deploy, maintain, and how they overlap in practice
Waterfall versus Agile: when does each fit?JudgmentFixed, well-known requirements versus changing ones delivered in short iterations
What happens in a sprint?Scrum basicsPlanning, daily stand-ups, a review and a retrospective around a fixed time box
Difference between unit, integration and system testing?Test levelsOne component, components together, the whole system against requirements
What is regression testing?Change safetyRe-running existing tests to check new changes did not break old behavior
What does a good test case contain?Attention to detailID, preconditions, steps, input data, expected result and actual result
What is version control and why use Git branches?Team workflowHistory and safe parallel work, merged through review
Process questions that services interviewers like to ask. Scroll sideways on a small screen.

Project and current technology

  • Explain your project's modules and how they talk to each other. A short block diagram in words.
  • What testing did you do on your project? Even manual test cases count; say what you checked.
  • Which emerging technology have you explored, and what did you build with it? Cloud, AI or data, with something concrete.
  • How would you explain your project to a client who is not technical? The problem, who it helps and the outcome.
  • What would you improve if you rebuilt it? One design change and the reason.
  • Which programming language are you most confident in, and why? Name one and back it with work you did.

Fictional example: an output question under pressure

Fictional example

Tracing aloud instead of guessing
Interviewer
What does f(4071) return if f adds n mod 10 to f of n divided by 10, and returns 0 when n is zero or less?
Candidate
Let me trace it. f(4071) is 1 plus f(407). f(407) is 7 plus f(40). f(40) is 0 plus f(4). f(4) is 4 plus f(0), and f(0) is 0.
Candidate
Unwinding: f(4) is 4, f(40) is 4, f(407) is 11, and f(4071) is 12. So it returns 12, the sum of the digits. If the input were negative it would return 0 straight away, which may or may not be what the caller wants.
Interviewer
Could you do it without recursion?
Candidate
Yes, a while loop: add n mod 10 to a total and divide n by 10 until it reaches zero. It avoids the call stack, which matters for very large inputs.

The candidate traces visibly, states the result, notices an edge case and offers a loop version. That is more convincing than a fast answer, right or wrong.

Pitfalls in Capgemini technical rounds

  • Guessing outputs. Interviewers watch the method. A trace table rescues you even if you slip once.
  • Neglecting SDLC and testing. Services delivery runs on process; freshers who know it stand out.
  • Mixing languages. Answer in the language you chose; switching mid-answer causes errors.
  • Vague project ownership. Say "I" for your work and "we" for the team's, precisely.
  • Talking about technology trends you have only read headlines about. Mention what you actually tried.

A practical preparation sequence

  1. Tracing drillsTwenty pseudo-code snippets with loops, recursion and bitwise operators, traced on paper with a variable table.
  2. OOP refreshWrite small classes that show inheritance, interfaces, overriding and exceptions in your chosen language.
  3. SQL practiceFifteen queries on customers, orders and products: joins, grouping, subqueries and constraints.
  4. Process vocabularyOne page on SDLC, Agile ceremonies, test levels and Git branching, each tied to something you did.
  5. Project scriptA two-minute and a five-minute version of your project, plus answers on testing and improvements.
  6. Mock interviewA timed mock with output prediction and follow-up questions, reviewed the same day.

Natively helps with that last step. As an AI interview assistant on Mac or Windows, it can read a pseudo-code snippet from a screenshot during practice and explain the trace step by step, transcribe your spoken walkthrough, and save the session for review. Check its explanation against your own trace table: the goal is to make the method automatic, so you can do it alone. On Pro or the free trial, it can also use your résumé to frame project questions.

Questions people ask

What questions are asked in the Capgemini technical interview?

Output prediction and code tracing, object-oriented programming, SQL queries and database concepts, SDLC, Agile and testing basics, and detailed questions about your final-year project.

Why is pseudo-code important for Capgemini?

Many candidates report a pseudo-code section in Capgemini's online assessment, and interviewers sometimes ask you to trace a snippet live. Practicing with a variable table makes both easier.

Which language should I use in the Capgemini interview?

Use the language you know best, usually Java, Python or C++, and stay with it for the whole interview.

Are the Capgemini technical and HR interviews separate?

It varies by drive. Some candidates describe one panel covering both, others two meetings. Check your interview invitation.

Where to go next

Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.

Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.

Keep reading

Put it on your own machine.

A live-conversation assistant that runs locally. Your conversations stay on your machine.

macOS 12+ · Windows 10/11

© 2026 Natively AI Private Limited

Source-available under the Natively Personal Use Source License v1.0 · IP geolocation by DB-IP