Preview

07 - Flowcharts

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

  FALSE

  TRUE

 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”.

  process making step in a flowchart

  A diamond must never be used in a flowchart

  decision making step in a flowchart.

  connector 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

  arrows

  process rectangles

  chunks

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

  Sum = 1092

  Sum = 247

  Sum = 25

  A = 182

 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!
flowchart_q2.png

  Profit = 133

  Loss = 133

  Profit = 10

  Loss = 10

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

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

  A program that counts from 1 to 12

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

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

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

  #1 Stop #3 Loop

  #1 - Loop #3 Stop

  #1 Decision #3 Sequence

  #1 -Decision, #3 Loop

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

  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.
flowchart_q6.png

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

  There is no loop in this flowchart

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

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

 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
flowchart_q6.png

  No, line 1 should be num = -1

  Yes, they match up perfectly

  No, line 3 should be print x * num

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