0% found this document useful (0 votes)
171 views

Capgemini Worksheet-1

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
171 views

Capgemini Worksheet-1

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 31

Capgemini Java Intern - Worksheet

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

What will be the output of the following pseudocode?

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

What will be the output of the following pseudo code?

ANS : 3
Question 21

A.-3049 B. -3048 C.-3047 D.-3059

Output: A

Question 22-

A. Fibonacci Series B. Tribonacci Series

C. Triangular Series D.ArithmeticSeries

Ans: A
Question 23.

What will be the output of the following pseudocode?

A. 9,33 B. 9,30 C.9,36,9 D.9 33 6

Ans:D

Question 24

A. None of the above B.Error C.140 D.Infinite loop

Ans: D
Question 25

A. 15 B.1 C.1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 D.Run time error

Ans: 1

Question 26

A. 0 B.X C.x D.1

Ans: 0
Question 27

A.127 B.1098 C.763 D.963

Ans: C

Question 28

A.10 B.30 C.Error D.20

Ans:D
Question 29

A. 0 B.210 C.Run time error D.Compile time error

Ans: 0

Question 30

A.No output B. Error C.KHUDSOLVEKRO D.1.0

Ans:A
Question 31

A.a B.%x C.100 D.%0

Ans:B

Question 32

A.0.0 B.0.00 C.0.000000 D.0(Zero)

Ans: 0
Question 33

A.10 B.10.0 C.10+0.0 D.0(Zero)

Ans: D

Question 34

A.10 B.120 C.320 D.160

Ans: 320
Question 35

A.Floating point exception B.10 C.5.0 D.10.0

Ans: A

Question 36

A. 1 B.2 C.80 D.l

Ans: A
Question 37

A.0 B.0.000 C.0.00000 D.0.000000

Ans:D

Question 38

A. 28 B.32 C.56 D.76

Ans: A
Question 39

A. Garbage value B. 1 C. 0 D.Error

Ans: A

Question 40

A.15 25 B.18 27 C. 27 18 D. 25 15

Ans: B

You might also like