You are on page 1of 19

Time Taken

1m 27s
Your Score
0/25
PseudoCode
SCORE IN THIS SECTION

0/25
TIME TAKEN IN THIS SECTION

1m 27s
01
Incorrect answer 0
3s
The following pseudocode is an example of a(n) ____ structure:
get number
while number is positive
add to sum
get number

OPTION
sequence

OPTION
decision

OPTION
loop

OPTION
nested
Correct Answer:
loop

02
Incorrect answer 0
6s

The following pseudocode is an example of ____.


do stepA
do stepB
if conditionC is true then
do stepD
else
do stepE
endif
while conditionF is true
do stepG
endwhile

OPTION
nesting

OPTION
stacking

OPTION
posttest

OPTION
pretest
Correct Answer:
nesting

03
Correct answer 1

3s

____________ usually comes into place after a software has already been developed and deployed.

OPTION
testing
OPTION
maintaining

OPTION
replacing

OPTION
converting
Correct Answer:
maintaining

04
Incorrect answer 0

2s

What symbol is used to represent output in a flowchart?

OPTION
square

OPTION
circle

OPTION
parallelogram

OPTION
triangle
Correct Answer:
parallelogram

05
Correct answer 1

3s
What is the standard terminal symbol for a flowchart?

OPTION
circle

OPTION
lozenge

OPTION
diamond

OPTION
square
Correct Answer:
lozenge

06
Correct answer 1

18s

Computer programmers often refer to memory addresses using ____


notation, or base 16.

OPTION
binary

OPTION
indirect

OPTION
mathematical

OPTION
hexadecimal
Correct Answer:
hexadecimal
07
Incorrect answer 0

2s

The output of an AND gate with three inputs, A, B, and C, is HIGH when ________.

OPTION
A = 1, B = 1, C = 0

OPTION
A = 0, B = 0, C = 0

OPTION
A = 1, B = 1, C = 1

OPTION
A = 1, B = 0, C = 1
Correct Answer:
A = 1, B = 1, C = 1

08
Incorrect answer 0

2s

The storage element for a static RAM is the ________.

OPTION
diode

OPTION
resistor

OPTION
capacitor

OPTION
flip-flop
Correct Answer:
flip-flop

09
Correct answer 1

2s

How is odd parity generated differently from even parity?

OPTION
The first output is inverted.

OPTION
The last output is inverted.
Correct Answer:
The last output is inverted.

10
Incorrect answer 0

2s

On a master-slave flip-flop, when is the master enabled?

OPTION
when the gate is LOW

OPTION
when the gate is HIGH

OPTION
When the gate is high or low

OPTION
None
Correct Answer:
when the gate is HIGH

11
Incorrect answer 0

2s

What will be the output / error?

OPTION
fffffffe

OPTION
fffe

OPTION
dependent on the compiler

OPTION
Error
Correct Answer:
dependent on the compiler
Explain

12
Correct answer 1

2s
What will be the output / error?
int main()
{
int x, y = 5, z = 5;
x = y==z;
printf("%d", x);

getchar();
return 0;
}

OPTION
0

OPTION
1

OPTION
Compiler error

OPTION
runtime error
Correct Answer:
1
Explain

13
Incorrect answer 0

2s

What will be the output/error?


OPTION
hi

OPTION
Compile time error

OPTION
Nothing

OPTION
Varies
Correct Answer:
Compile time error
Explain

14
Incorrect answer 0

3s

What will be the output/error?

OPTION
Address of x
OPTION
Junk value

OPTION
0

OPTION
Run time error
Correct Answer:
0

15
Incorrect answer 0

1s

What will be the outpue/error?

OPTION
Compile time error

OPTION
0

OPTION
Undefined behaviour

OPTION
Segmentation fault
Correct Answer:
Compile time error

16
Incorrect answer 0

2s

A complete graph can have

OPTION
n2 spanning trees

OPTION
nn - 2 spanning trees

OPTION
nn + 1 spanning trees

OPTION
nn spanning trees
Correct Answer:
nn - 2 spanning trees
Explain

17
Incorrect answer 0

2s

In a min heap

OPTION
minimum values are stored.

OPTION
child nodes have less value than parent nodes.parent nodes have less value than child
nodes.

OPTION
parent nodes have less value than child nodes.

OPTION
maximum value is contained by the root node.
Correct Answer:
parent nodes have less value than child nodes.
Explain

18
Correct answer 1

2s

Which of the following is an example of dynamic programming approach?

OPTION
Fibonacci Series

OPTION
Tower of Hanoi

OPTION
Dijkstra Shortest Path

OPTION
All of the mentioned
Correct Answer:
All of the mentioned

19
Incorrect answer 0
3s

Shell sort uses

OPTION
quick sort

OPTION
selection sort

OPTION
merge sort

OPTION
insertion sort
Correct Answer:
quick sort

20
Incorrect answer 0

2s

Visiting root node after visiting left and right sub-trees is called

OPTION
Post-order Traveral

OPTION
Pre-order Traversal

OPTION
In-order Traversal
Correct Answer:
Post-order Traveral

21
Incorrect answer 0

2s

What will be the output of the following pseudocode?

Integer tem, num, count, i, j, k


set temp=1,num=5, count=0
for each i from 0 to numfor j from num+temp to 3*num incrementing by 2for k from 1 to
temp incrementing by 3count++
end forend for
end for
Print count

OPTION
25

OPTION
26

OPTION
24

OPTION
28
Correct Answer:
25
Explain

22
Incorrect answer 0

3s
What will be the output of the following pseudocode?

OPTION
0

OPTION
10

OPTION
18

OPTION
14
Correct Answer:
18
Explain

23
Incorrect answer 0

2s

What will be the output of the following pseudocode?


OPTION
32

OPTION
11

OPTION
21

OPTION
31
Correct Answer:
32
Explain

24
Incorrect answer 0

2s

What will be the output of the following pseudocode for x = 3 and y =2?

OPTION
852

OPTION
456
OPTION
765

OPTION
873
Correct Answer:
852
Explain

25
Incorrect answer 0

14s

What will be the output of the following pseudocode?

OPTION
3 -13

OPTION
6 -6

OPTION
34

OPTION
12 -6
Correct Answer:
6 -6
Explain

Capgemini PseudoCode Practice-2


1PSEUDOCODE

01The following pseudocode is a...


02The following pseudocode is a...
03____________ usually comes in...
04What symbol is used to repres...
05What is the standard terminal...
06Computer programmers often re...
07The output of an AND gate wit...
08The storage element for a sta...
09How is odd parity generated ...
10On a master-slave flip-flop, ...
11What will be the output / err...
12What will be the output / err...
13What will be the output/error...
14What will be the output/error...
15What will be the outpue/error...
16A complete graph can have...
17In a min heap...
18Which of the following is an ...
19Shell sort uses...
20Visiting root node after visi...
21What will be the output of th...
22What will be the output of th...
23What will be the output of th...
24What will be the output of th...
25What will be the output of th...

You might also like