MARKING SCHEMES - WPS Office
MARKING SCHEMES - WPS Office
b) Identify and briefly explain the meaning of at least three standard flowchart symbols.
c) Create a simple flowchart to represent the process of Adding Two (2) Even Numbers
- **Answer**: [Flowchart]
(7 marks)
2) Algorithm Design (15 marks)
a) Here's a simple algorithm to find the sum of 4 and 8:
1. Start
2. Set num1 = 4
3. Set num2 = 8
(7 marks)
4. Set sum = num1 + num2
5. Output sum
6. Stop
- **Answer**:
sum_of_two_numbers(a, b)
Print sum
- **Answer**: [Flowchart]
(5 marks)
3) Flowchart Representation (15 marks)
a) Create a flowchart to represent the following algorithm:
1. Start
2. Set number = 5
3. Multiply number by 2
5. End
- **Answer**: [Flowchart]
(7 marks)
- **Answer**:
Algorithm multiply_by_two():
1. Start
2. Set number = 5
5. End
c) Explain each step of the flowchart and the algorithm.
- **Answer**:
- **Answer**: [Flowchart]
(7 marks)
- **Answer**:
The flowchart depicts the process of checking a non-functioning lamp. It starts by checking if the
lamp is plugged in. If it is plugged in, it checks if the bulb is burnt out. If the bulb is burnt out, it
replaces the bulb. If it's not plugged in, it plugs in the lamp.
(4 marks)
c) Explain how the symbols of the flowchart in question 4a work. (5 marks)
- Decision: Represents a decision point where the flow can take one of two or more paths
based on a condition.
1. Start
4. Print average
5. End
- **Answer**:
average_of_three_numbers(a, b, c)
(5 marks)
sum < a + b + c
print average
c) Represent the algorithm with a flowchart.
- **Answer**: [Flowchart]
(5 marks)
- Both are closely related as the flowchart visually represents the algorithm.
b) Role of Flowcharts:**
- They help in planning and organizing the steps of an algorithm before coding. (5 marks)
- Flowcharts also serve as documentation for the algorithm, making it easier to understand
and maintain.