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

  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

  arrows

  chunks

  process rectangles

  vectors

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

  A = 182

  Sum = 25

  Sum = 1092

  Sum = 247

 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

  Loss = 133

  Profit = 10

  Profit = 133

  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 - Loop #3 Sequence

  #1 Decision #3 Sequence

  #1 Stop #3 Loop

  #1 -Decision, #3 Loop

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

  No, 3 and 4 are the wrong way around

  No, 1 and 2 are the wrong way round

  Yes, they are all perfect descriptions!

  All of them are incorrect

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

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

  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

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

  No, line 1 should be num = -1

  Yes, they match up perfectly

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

  No, line 3 should be print x * num