Professional Documents
Culture Documents
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
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
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
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
OPTION
diode
OPTION
resistor
OPTION
capacitor
OPTION
flip-flop
Correct Answer:
flip-flop
09
Correct answer 1
2s
OPTION
The first output is inverted.
OPTION
The last output is inverted.
Correct Answer:
The last output is inverted.
10
Incorrect answer 0
2s
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
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
OPTION
Compile time error
OPTION
Nothing
OPTION
Varies
Correct Answer:
Compile time error
Explain
14
Incorrect answer 0
3s
OPTION
Address of x
OPTION
Junk value
OPTION
0
OPTION
Run time error
Correct Answer:
0
15
Incorrect answer 0
1s
OPTION
Compile time error
OPTION
0
OPTION
Undefined behaviour
OPTION
Segmentation fault
Correct Answer:
Compile time error
16
Incorrect answer 0
2s
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
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
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
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
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
OPTION
3 -13
OPTION
6 -6
OPTION
34
OPTION
12 -6
Correct Answer:
6 -6
Explain