Capgemini Worksheet-1
Capgemini Worksheet-1
Source: https://prepinsta.com/capgemini/capgemini-pseudo-code-round-mcq/
Question 1
What will be the output of the following pseudocode?
ANS : 1
Question 2
What will be the output of the following pseudocode if num=4 and element of the array are
1,2,3,4,5?
ANS : 3
Question 3
What will be the output of the following pseudocode?
ANS : 2
Question 4
What will be the output of the following code :
ANS : 1
Question 5
What will be the output of the following code?
ANS : 1
Question 6
What will be the output of the following pseudocode?
ANS : 2
Question 7
what will be the output of the following pseudocode?
ANS : 3
Question 8
What will be the output of the pseudocode?
ANS : 4
Question 9
What will be the output of the following pseudo code?
ANS : 1
Question 10
ANS : 3
Question 11
What will be the output of the following pseudo code when n=3 ?
ANS : 3
Question 12
What will be the output of the following code ?
ANS : 2
Question 13
What will be the output of the following pseudocode ?
ANS : 2
Question 14
What will be the output of the following code ?
ANS : 2
Question 15
What will be the output of the following code .
ANS : 3
Question 16
What will be the necessary condition to get the desired element from a given array by using the
following algorithms?
ANS : 3
Question 17
What will be the output of the following C code?
ANS: 4
Question 18
What will be the output of the following C code?
ANS : 1
Question 19
Consider the following given code and predict its output.
ANS : 1
Question 20
ANS : 3
Question 21
Output: A
Question 22-
Ans: A
Question 23.
Ans:D
Question 24
Ans: D
Question 25
Ans: 1
Question 26
Ans: 0
Question 27
Ans: C
Question 28
Ans:D
Question 29
Ans: 0
Question 30
Ans:A
Question 31
Ans:B
Question 32
Ans: 0
Question 33
Ans: D
Question 34
Ans: 320
Question 35
Ans: A
Question 36
Ans: A
Question 37
Ans:D
Question 38
Ans: A
Question 39
Ans: A
Question 40
A.15 25 B.18 27 C. 27 18 D. 25 15
Ans: B