Capgemini Reckoner V2.0
Capgemini Reckoner V2.0
Content Page
Capgemini Roles and Packages 1
Capgemini Recruitment Process 1
Capgemini Online Test Pattern 2
Capgemini Online Test Assessment Platform 2
Capgemini Online Test Syllabus 3
Capgemini Pseudocode Questions and Answers 4
Capgemini English Communication Questions and Answers 15
Capgemini Game Based Aptitude Questions and Answers 23
Capgemini Coding Questions and Answers 24
The most common profiles that Capgemini recruit freshers for are:
Page 1 | 26
Capgemini Online Test Pattern – Analyst Role
Duration (In
Round Round Name #Qs Elimination
Mins)
Data
Structures 10
1 Pseudocode 25 Yes
Algorithms 15
2 English Communication 30 30 Yes
3 Game Based Aptitude 4 games ~20-30 Yes
4 Behavioural Competency 100 No Time Limit No
Duration (In
Round Round Name #Qs Elimination
Mins)
Data
Structures 10
1 Pseudocode 25 Yes
Algorithms 15
2 English Communication 30 30 Yes
3 Game Based Aptitude 4 games ~20-30 Yes
4 Behavioural Competency 100 No Time Limit No
5 Coding 2 45 No
Page 2 | 26
Capgemini Pseudocode Test Syllabus
Section Topic
● Data Structures
Pseudocode ● Algorithms
● OOPS
Section Topic
● Reading Comprehension
● Para-Jumbles
● Direct and Indirect Speech
English Comprehension ● Active and Passive Voice
● Sentence Correction
● Sentence Completion
Page 3 | 26
Capgemini Pseudocode
Data structures
2. An abstract data type is defined to be a mathematical model of a user-defined type along with the
collection of all ________ operations on that model.
A. Union
B. Assignment
C. Primitive
D. None of the above
Answer: Option C
Explanation: In computer science, an abstract data type (ADT) is a mathematical model for data
types. An abstract data type is defined by its behaviour (semantics) from the point of view of a user,
of the data, specifically in terms of possible values, possible operations on data of this type, and the
behaviour of these operations. These are not possible in union and assignment operations.
8. Recursion uses more memory space than iteration. Which of the following is/are the valid reason for
the same?
Statement A: It uses the stack to store
Statement B: Every recursion call has to be stored
Choose the correct answer from the options given below.
A. Only A
B. Both A and B
C. Neither A nor B
D. Only B
Answer: Option B
Explanation: Recursion uses more memory compared to iteration because every time the recursive
function is called, the function call is stored in stack.
9. To which of the following domain problem does the knapsack problem belong?
Page 5 | 26
A. NP-complete
B. Sorting
C. Optimisation
D. Linear Solution
Answer: Option C
Explanation: knapsack algorithm is used to find the maximum profit out of the least weight
combination possible, therefore it definitely belongs to an optimization domain.
10. If you are using a Depth-first search (DFS) for traversing an unweighted graph, then which of the
following will happen?
Statement 1: It produces the minimum spanning tree.
Statement 2: It produces all pair shortest path tree.
Choose the correct answer from the options given below.
A. Both 1 and 2 are true
B. Both 1 and 2 are false
C. Only 2 is true
D. Only 1 is true
Answer: Option D
Explanation: Depth-first search (DFS) for traversing an unweighted graph, will produce the minimum
spanning tree. Only Depth-first search (DFS) for traversing a weighted graph, will produce all pair
shortest-path tree.
Algorithms
[Note: A do-while loop is a control flow statement that executes a block of code at least once, and
then repeatedly executes the given Boolean condition at the end of the block]
A. 6 6 6
B. 6 5 6
C. 5 5 5
D. 6 5 4
Answer: D
Explanation:
In this program, one variable declared as i, and the value initialized as 3. We are moving with do-
while(Do while will execute the statement once and then it will check the condition).
Step 1:
Page 6 | 26
It will print i+3, here i value is 3. So i+3 is 6. On the next line, i will be decremented by 1. Then checking
the conditions in do-while() i!=0. Here updated i value is 2 (2!=0),so condition is true. The loop
continues.
Step 2:
It will print i+3, here the updated i value is 2. So i+3 is 5. On the next line, i will be decremented by 1.
Then checking the conditions in do-while() i!=0. Here updated i value is 1 (1!=0),so condition gets
true. The loop continues
Step 3:
It will print i+3, here the updated i value is 1. So i+3 is 4. On the next line, i will be decremented by 1.
Then check the condition in do-while() i!=0. Here updated i value is 0 (0!=0),so condition gets false.
Thus the loop gets terminated!
E.g. code to explain this:
Do while will execute the statement for the first time and then it will check the condition.
[Note- string-length(): string-length() function counts the number of characters in a given string and
return the integer value. ^ is the bitwise exclusive OR operator that compares each bit of its first
operand to the corresponding bit of its equal operand. If one bit is 0 and the other bit is 1, the
corresponding result bit is set to 1. Otherwise, the corresponding result bit is set to 0]
A. 0
B. 4
C. 5
D. 3
Answer: B
Explanation:
There are two variables a and str1. Value initialized for str1 is “goose”. On the next line, we are finding
the length of str1 that is 5. Finally, printing the output of a bitwise exclusive OR operator with 1. And
the answer is 4.
E.g. code to explain this:
Page 7 | 26
3. What would be the output of the following pseudocode?
[Note- mod finds the remainder after the division of one number by another. For example, the
expression “5 mod 2” would evaluate to 1 because 5 divided by 2 leaves a quotient of 2 and a
remainder of 1. ^ is the bitwise exclusive OR operator that compares each bit of its first operand to
the corresponding bit of its equal operand. If one bit is 0 and the other bit is 1, the corresponding
result bit is set to 1. Otherwise, the corresponding result bit is set to 0]
A. 13
B. 17
C. 26
D. 16
Answer: A
Explanation: There are three variables a, b and c declared. Value initialized for a is 8, b is 51 and c is
2. When we do a bitwise exclusive OR of (8^2), the answer is 10. Again 10 bitwise exclusive OR of
a i.e (10 ^ 8) is 2, which will be stored in variable c. Then taking modulo operation for b by 4 (b%4)
the answer is 3 Finally adding all the updated values of a,b, and c (8+2+3 ) and the output of
Pseudocode is 13.
E.g. code to explain this:
int main()
{
int a=8, b=51, c=2;
c = (a ^ c)^ (a); =>(8^2) ^(8) => 10 ^ 8 => 2
b = b % 4; =>3
cout<<a + b + c; =>8+2+3 => 13
}
Note: ^ is the bitwise exclusive OR
Page 8 | 26
4. What would be the output of the following pseudocode?
A. 2
B. 9
C. 7
D. 8
Answer: B
Explanation: There are three variables i, j, and k declared. Value initialized for k is 8, In this code, we
are moving with nested for loop. Here I value is 1, for loop will check the condition i<=1 condition
gets true. Now, moving with inner for loop j value will be 1 condition gets true j<=1.so, it prints K+1.
Then j value will be incremented by 1(2<+1) inner for loop condition gets false.
On the next iteration, i value will be incremented by 1, here the updated i value is 2 (2<=1) condition
get false. So the answer is 9.
E.g. code to explain this:
int i, j, k;
k = 8;
for(i=1 ;i<=1;i++){ => i=1 True
for(j=i;j<=1;j++){ => j=1 true
cout<< k+1; => print k+1 => 8+1 =>9
}
}
A. 15
B. 7
C. 2
D. 0
[Note-mod finds the remainder after the division of one number by another. For example, the
expression “5 mod 2” leaves a quotient of 2 and a remainder of 1]
Page 9 | 26
Answer: Option D
Explanation: There are two variables a and b declared. Value initialized for a is 15 and b is 7. Taking
mod operation for a by 12(a%12) and the answer is 3 will stored in a.
The next mod operation for b is 7 mod (7%4). The answer is 3 will be stored in b.
The next line takes the updated value of a and mods it by 1(3%1). Then the answer becomes 0 will
be stored in a.
The next line takes the updated value of b mod by 1 (3%1) then the answer is 0. Finally adding all
the updated values of a and b (0+0 ) and the output of Pseudocode is 0.
Note-&&: Logical AND - The logical AND operator (&&) returns the Boolean value true(or 1) if both
operands--. If (x) gets executed if the value if(), i.e., x is not zero]
A. 2
B. 13
C. 26
D. 5
Answer: B
Explanation: There are three variables a, b and c declared. Value initialized for a is 2, b is 5 and c is
2.
Checking the condition using if, b >a and a>c and c>b here if conditions get false. Now else part will
execute b value will be incremented by 1 and stored in a, Finally adding all the updated values of a,
b and c (6+5+2 ) and the output of Pseudocode is 13.
A. 25
B. 5
C. 50
D. 40
Answer: C
Page 10 | 26
Explanation:
There is an array of integer arr[]={10,20,30,40,50}. There are two variables a and b declared. . The
value initialized for s is 0. On the next line adding the 1st index value 20 and 2nd index value 30
arr[1] + arr[2]( 20+30), the answer is 50 will be stored in a. Finally printing the updated values of a
is 50.
[Note- ^ is the bitwise exclusive OR operator that compares each bit of its first operand to the
corresponding bit of its-- other bit is 1, the corresponding result bit is set to 1. Otherwise, the
corresponding result bit is set to 0]
A. 6
B. 4
C. 0
D. 2
Answer: C
Explanation: There are three variables a, b and c declared. Value initialized for a is 2 and b is 2. When
we do a bitwise exclusive OR of c i.e (2^2), the answer is 0. Finally, print the value of c.
A. 1 3 6 10 15
B. 1 2 3 4 5
C. 2 4 6 8 10
D. 1 1 2 3 5
Answer: Option A
Explanation: There are four variables i, j, k, and n declared. Value initialized for j is 1 and k is 1.
For loop, i value starts from 1 loop will run till the i<5, In the first iteration i value, is 1, printing k value
is 1. Next line j value will be incremented by 1 (1+1) =>2. On the next line adding k and j (1+2), then
the answer is 3.
2nd iteration i value will be incremented by 1, i=2. Print k, the updated k value is 3. on the next line j
value will be incremented by 1 (2+1) =>3. On the next line adding k and j (3+3) , then the answer is
6.
Page 11 | 26
3rd iteration i value will be incremented by 1, i=3. Print k, the updated k value is 6. on the next line j
value will be incremented by 1 (3+1) =>4. On the next line adding k and j (6+4) , then the answer is
10.
4th iteration i value will be incremented by 1, i=4. Print k, the updated k value is 10. on the next line
j value will be incremented by 1 (4+1) =>5. On the next line adding k and j (10+5) , then the answer
is 15.
5th iteration i value will be incremented by 1, i=5. Print k, the updated k value is 15. Next line j value
will be incremented by 1 (5+1) =>6. On the next line adding k and j (15+6), then the answer is 21.
Here for loop condition gets false, it comes out of the for loop. The output of Pseudocode is 1 3 6 10
15.
A. 0
B. 8
C. 1
D. None of the above
Answer: Option B
Explanation: In this question, the value of x is initialized as 0 and y as 1 in the beginning. Later the
value 8 is assigned to the variable z and the value of z is assigned to the variable y and the value of
y is assigned to the variable x. Finally, the value of x is updated as 8.
A. 64
B. 32
C. 45
D. None of the above
Answer: Option A
Explanation: Here, the left shift operation pushes the values towards the left once; when 1 is left-
shifted the value that we will be obtaining will always be 2 to the power something. When one is
converted in the beginning and not shifted the value will be 2^0 which is 1. The next iteration will be
pushed one place towards the left, therefore the value now will be 2^1 which is 2; this will go on
happening until the value stored is greater than 45. The value which is greater than 45 in 2 powers
Page 12 | 26
is 64. Now the loop terminates and the last value stored in the variable is 64 and the same will be
printed.
A. 4 5 6
B. 7 6 5
C. 9 7 5
D. None of the above
Answer: Option C
Explanation: the first reverse recursion would print 9 and returns to a previous function call, next it
prints 7 and returns to the very first function call finally it prints a 5 and completes the execution.
A. 2
B. 3
C. 1
D. 0
Answer: Option B
Explanation: All the conditions are true when checked with the condition so the print statement will
be executed 3 times.
Page 13 | 26
14. What will be the output if the following pseudocode if a=10 and b=6?
A. 2
B. 4
C. 3
D. 1
Answer: Option A
Explanation: The while loop will only terminate when the value of b becomes zero, this will happen
only after the 4th iteration when the last value of the b will be zero and the value of a is 2
[Note: << is left shift operator, it takes two numbers, left shifts the bits of the first operand, the second
operand decodes the number of …]
A. 1
B. 8
C. 0
D. 64
Answer: Option D
Explanation: When the x is reinitialized in line 3 the value stored will be 3. Therefore 8 has to be
left-shifted thrice. The shifted value is the 3rd next power of 2 that is 2^6 and the value is 64.
Page 14 | 26
Capgemini English Comprehension
1. Mark the option which best expresses the sentence in Passive voice.
The watchman opened the school building's entrance.
A. The school building entrance was opened by the watchman.
B. The school building's entrance was opened by the watchman.
C. The watchman has opened the school building's entrance.
D. The watchman opens the school building's entrance.
Answer: Option C
Explanation:
The given sentence is in Active voice. We need to convert it into Passive voice.
Here, Subject - The watchman
Verb – opened
Object - the school building's entrance
Structure of passive voice - Subject + Auxiliary verb + Verb (V3) + by + Object
In passive voice, the subject becomes the object and the object becomes the subject.
Here, the sentence is in the past tense and the subject is singular.
So, the auxiliary verb should be 'was'
Passive voice - The school building's entrance was opened by the watchman.
2. A sentence is broken into the following parts. Mark the option containing the correct sequence of
these parts to get the complete sentence.
1. Tips with us
2. Please share some
3. On gardening
4. And maintenance also.
A. 1234
B. 2431
C. 2134
D. 1342
Answer: Option C
Explanation:
Let's try solving using the options.
We cannot start the passage with '1' as it says 'Tips with us' which isn't a starting statement.
So, the answer should be Option b or Option c.
Between Option b and Option c, Option c i.e. 2134 is the properly arranged one.
4. Mark the option containing the word that has been used incorrectly in the sentence given below.
The pharmacy hadn't hardly any of Paracetamol.
A. Any
B. None of the mentioned options
C. Hadn't
D. Hardly
Answer: Option C
Explanation: The sentence meaning should be 'The pharmacy doesn't have Paracetamol'.
This can be conveyed by changing 'hadn't' to 'had'.
So, the correct statement should be 'The pharmacy had hardly any of Paracetamol'.
5. Mark the option which best expresses the given sentence in Indirect speech.
“You have all performed poorly in the business studies test!” remarked the class teacher.
A. The class teacher remarked that they all had performed poorly in the business studies test.
B. The class teacher said that you all had performed poorly in the business studies test.
C. They were told by the class teacher that they had performed poorly in the business studies test.
D. The class teacher remarked that you all have performed poorly in the business studies test.
Answer: Option A
Explanation: The given question is in Direct speech.
When we change the sentence from direct speech to indirect speech, we need to change the tense.
Direct speech - Present Perfect
So, the indirect speech - Past Perfect
Also, 'You' in “You have all performed poorly in the business studies test!” should be changed from
'You' to 'They'.
By considering the above, the indirect speech should be 'The class teacher remarked that they all had
performed poorly in the business studies test.'
6. Mark the option best suited to replace the underlined portion of the sentence given below.
Riley can fluently speaks in three languages - Mandarin, Japanese, and Cantonese.
A. speaking
B. spoken
C. speak
D. to speak
Answer: Option C
Explanation: Here, can is the modal verb and the verb after can should be bare infinitive form. So, it
should be 'speak'.
8. Read the passage given below and answer the questions that follow.
Life on, above and underwater has long captivated Jana Winderen. Delving into the hidden depths
to uncover the complexity and mystery of the invisible world beneath, reaching places and creatures
that are hard to access, the 55-year-old Norwegian artist brings the audio topography and richness
of the oceans to the surface. As fish, crustaceans, aquatic insects and mammals use sound to
communicate, orient, hunt and meet across the globe’s oceans, she has recorded everything from
seals, dolphins, humpback whales, shrimp, cod, perch, damselfish, bats and even coral reefs.
Creating intensely moving experiences, her works may be viewed as a call to action in light of urgent
environmental issues that we may be less aware of since we can’t see them directly, as they are
submerged in the seas.
Winderen has long been obsessed with the ecological impact of ever-present manmade sounds on
our planet, saying, “For all creatures that live in the ocean that are dependent on communicating with
each other, all these sounds that humans are pouring into the water are stressing them. I think we
are not so much aware of it, but it’s very important that more attention be placed on it because if
people knew, they wouldn’t necessarily do it. It’s unbelievable that we are allowing this to happen
around us. But it’s also about the listening experience itself and our position as human beings. We
have input from everywhere all the time. We are filtering reality. I think it’s time to ‘put your finger in
the earth’, as we say in Norway, which means to recalibrate or ground yourself, to get real.”
9. Mark the option which best expresses the given sentence in Indirect speech.
“That is my animal,” said he.
A. He told that it's his animal.
B. He said that that was his animal.
C. He said that is my animal.
D. None of the mentioned options
Page 17 | 26
Answer: Option B
Explanation: The given sentence 'That is my animal' is in the present tense.
So, the verb should be changed from 'is' to 'was'
When we convert it into indirect speech, it should become past tense.
Also, 'my' should be changed to 'his'
So, the indirect speech should be 'He said that that was his animal'
10. Mark the option which best expresses the sentence in Passive voice.
We forced the opponent to surrender in War of Duty.
A. In War of Duty, we forced the opponent to surrender.
B. We forced in War of Duty to surrender the opponent.
C. The opponent was forced to surrender by us in War of Duty
D. None of the mentioned options
Answer: Option C
Explanation: Subject – We
Verb – Forced
Object - The opponent
In passive voice, the subject and the object swap their positions.
So, the subject - The opponent
The object - us (Since 'we' will become 'us' when placed in the object position)
Passive Voice Structure:
Subject + be form + Verb (V3) + by + Object
So, the passive voice is: The opponent was forced to surrender by us in War of Duty.
11. Mark the option best suited to replace the underlined portion of the sentence given below.
On seeing the Lion he was too much scared.
A. very much
B. much
C. for much
D. that much
Answer: Option A
Explanation: Here, we need to replace 'too much' in the sentence with a suitable option.
The meaning of 'too much' is beyond the limit.
Once such sense of meaning is in Option A i.e. Very much.
12. Mark the option best suited to replace the underlined portion of the sentence given below.
He may have a honest personality.
A. an honest personal
B. honest personality
C. an honest personality
D. honest a personality
Answer: Option C
Explanation: We know that if the word is starting with a vowel sound, 'an' should be the article that
should be used before the word.
Page 18 | 26
Here, Honest has a vowel sound at the starting. So, it should be 'an honest personality.'
13. Mark the option which best expresses the sentence in Passive voice.
Isla's mother loves her.
A. Isla's mother loves Isla.
B. Mother loves Isla.
C. Isla is being loved by her mother.
D. Isla is loved by her mother.
Answer: Option D
Structure of Passive Voice: Subject + be form + Verb (V3) + by + Object
Subject – Isla
Be form – is
Verb (V3) – loved
Object - Isla's mother - her mother
So, the passive voice is Isla is loved by her mother.
14. A sentence is broken into the following parts. Mark the option containing the correct sequence of
these parts to get the complete sentence.
a. Over and above school and homework
b. And some extra time for family members
c. A student's daily routine should include studies
d. Entertainment, meeting friends, games and exercise
A. cabd
B. cadb
C. acdb
D. abdc
Answer: Option A
Explanation: Here we cannot start the paragraph with statement A as it does not have a head or tail.
Now, the answer can be Option A or Option B.
We need to decide whether it is bd or db.
When we read b, it is describing some extra time for family members and d says entertainment,
meeting friends etc.
So, d is the continuation of b.
Hence, it should be bd pair.
15. Mark the option best suited to replace the underlined portion of the sentence given below.
Liza was much ambitious but she did not work hard enough.
A. mostly ambitious
B. so much of ambition
C. much more ambition
D. very ambitious
Answer: Option D
Explanation: The suitable replacement of much ambitious can be very ambitious.
Also, the remaining options are not suitable.
Page 19 | 26
16. Read the statement given below and decide whether it is a Fact, an Inference or a Judgement.
The Headmaster's speech lasted for an hour yesterday
A. Fact
B. Inference
C. Judgement
Answer: Option B
Explanation: The above statement is an Inference. Something happened yesterday and on the basis
of the situation. we are passing a statement.
20. Ram, an economist, and Ramesh, an astrologer, had a debate. Ram said “Astrology does not work. It
just cannot predict.” “It can predict better than your subject” rebutted Ramesh.
The evidence that best resolves the above debate will be:
A. Conduct a survey among scientist asking one of the two should be considered as a science
B. Compare past performance of astrologers and economists in terms of number of predictions
which have come true.
C. Conduct a survey among economists asking their opinion regarding the ability of economic theory
to predict economic phenomena.
D. Conduct an experiment where both astrologers and economists would be asked to predict the
future. Compare the percentage of predictions that come true.
Answer: Option D
Explanation: Ram's and Ramesh's statements are about "Prediction". Predictions can be better
strengthened or weakened through previous data/probability. Hence the Option which gives
information about the data can resolve the debate.
Option B and Option D give data driven analysis.
Option D is better than Option D because it gives percentage prediction (Absolute data driven matrics
- Probability).
Thus, Option D is the correct answer.
21. Directions for question: For the rest of the questions, find the most analogous pair in sync with the
given pair in the question.
Expensive : Invaluable
A. Rich : Poor
B. Prosperous : Pauperised
C. Costly : Priceless
D. Uncountable : Numbered
Answer: Option C
Explanation: Expensive means costing a lot of money.
Invaluable means extremely useful.
The same relationship can be inferred from the pair Costly: Priceless.
Hence, Option C is the correct answer.
22. Directions for question: For the rest of the questions, find the most analogous pair in sync with the
given pair in the question.
Rafters : Wood
A. Hole : Peg
B. Road : Cement
C. Cart : Harness
D. Horse : Hide
Answer: Option B
Page 21 | 26
Explanation: Rafter means one of the long pieces of wood that support a roof.
Hence the given analogy holds relationship of Produce (Rafter):Content (wood)
The same relationship can be observed in the pair Road (Produce): Cement (Content)
Thus, Option B is the correct answer.
23. Select the option that is closest in meaning to the given word.
Mutable
A. Silent
B. Changeable
C. Transferable
D. That which cannot be commuted
Answer: Option B
Explanation: Mutable means liable to change. The closest meaning to this word is given in the Option
B. Thus, Option B is the correct answer.
24. Select the option that is closest in meaning to the given word.
Martinet
A. Marital
B. Strict Parent
C. Military
D. Strict Disciplinarian
Answer: Option D
Explanation: Word Marinate has been derived from Army officers named Jean Marinate. Martinet
trained his troops to advance into battle in precise linear formations and to fire in volleys only upon
command, thus making the most effective use of inaccurate muskets - and making the French army
one of the best on the continent. He also gave English a new word. Martinet has been used
synonymously with "strict disciplinarian".
Hence, Option D is the correct answer.
25. Select the option that is farthest in meaning to the given word.
Asperity
A. Impatience
B. Cheerfulness
C. Sharpness of intellect
D. Bitterness
Answer: Option B
Explanation: Asperity means harshness of tone or manner. It is considered as a word which gives a
negative meaning. Hence an Option, which will give positive meaning would be considered as correct
option among the given options. The one such option is B. Hence, Option B is the correct answer.
Page 22 | 26
Capgemini Game Based Aptitude
Here is the detailed pattern of the Capgemini Game Based Aptitude Test.
Duration
Types of game Types of questions
(In Mins)
Finding the missing symbol/ visual in a grid based on
Deductive Logical Thinking ~6
a rule-based logic
Visual Based Questions of the type where you are
Inductive Logical Thinking expected to find which pair of figures follow the same ~6
rule as given by a pair in the question
Ability to focus your attention is measured.
Motion Challenge Has puzzles where you must find the path between ~6
two points in a maze - in the least number of moves
possible. You can solve as many puzzles as you want.
Page 23 | 26
Capgemini Coding
1. Write a program to implement bubble sort algorithm for sorting the elements of an array.
Sample Input:
6
11 15 26 38 9 10
Sample Output:
9 10 11 15 26 38
Page 24 | 26
2. Write a program to implement insertion sort algorithm for sorting the elements of an array.
Sample Input:
5
12 16 11 14 15
Sample Output:
11 12 14 15 16
Page 25 | 26
3. Write a program to add two matrices.
Sample Input:
2
2
12
23
68
72
Sample Output:
7 10
95
Page 26 | 26