Chapter 7: Composition and Decomposition - Online Test

Q1.

If C is false just before the loop, the control flows through

1 S1

2 while C

3 S2

4 S3

Answer : Option A
Explaination / Solution:
No Explaination.


Q2. If C is true, S1 is executed in both the flowcharts, but S2 is executed in

Answer : Option D
Explaination / Solution:
No Explaination.


Q3.

How many times the loop is iterated?

i := 0

while i ≠ 5

i := i + 1

Answer : Option B
Explaination / Solution:
No Explaination.