# 07 - Flowcharts

1. A flowchart is a diagram that represents a set of instructions. Flowcharts normally use standard symbols to represent the different instructions.

TRUE

FALSE

2. A diamond with two branches is used to show the …
```Note: A question is specified in the
diamond. The next step in the sequence is based on the
answer to the question which is “Yes” or “No”.```

decision making step in a flowchart.

connector step in a flowchart

A diamond must never be used in a flowchart

process making step in a flowchart

3. ______are used to connect the steps in a flowchart, to show the flow or sequence of the problem solving process

vectors

chunks

arrows

process rectangles

4. Trace the flowchart's logic to predict the output if A = 845 and B = 247.

A = 182

Sum = 247

Sum = 25

Sum = 1092

5. Trace the flowchart's logic to find the profit or loss when CP(Cost Price) = 325 and SP (Selling Price) = 458
`Note: If the selling price is more than the cost price, a profit has been made!`

Loss = 133

Profit = 133

Profit = 10

Loss = 10

6. Analyse the logic of the flowchart and predict what it's function/purpose is.

A program that counts from 1 to 12

Multiplication table for the number n - e.g. 12

A program that takes a number N (e.g. 12) and adds it to the number 10, and does so 10 times

A loop that counts from count = 1 to count = 10

7. Can you fill in the blanks for #1 and #3

#1 Stop #3 Loop

#1 Decision #3 Sequence

#1 -Decision, #3 Loop

#1 - Loop #3 Stop

8. Analyse the image with flow Chart symbols and definitions. Are all the explanations correct?

Yes, they are all perfect descriptions!

No, 1 and 2 are the wrong way round

No, 3 and 4 are the wrong way around

All of them are incorrect

9. Explain the nature of the loop (iteration) taking place in this flow chart.

There are several loops in this flowchart and each one loops 10 times

The program will only stop if it has reached the end of the loop / already repeated 7 times

There is no loop in this flowchart

The program will go on forever until it is halted manually by the user

10. Do the flowchart and the pseudocode match up? Why or why not?
```num = 7
for x = 1 to num
print x  = x + 1
next```

No, line 2 should be for x = 7 to end

No, line 3 should be print x * num

Yes, they match up perfectly

No, line 1 should be num = -1