0% found this document useful (0 votes)
8 views6 pages

MARKING SCHEMES - WPS Office

Poly

Uploaded by

Musa ADO ISAH
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views6 pages

MARKING SCHEMES - WPS Office

Poly

Uploaded by

Musa ADO ISAH
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

MARKING SCHEME ALONG WITH THE ANSWERS TO THE QUESTIONS:

1) Flowchart Basics (15 marks)


a) Define what a flowchart is and explain its purpose. (4 marks)

**Answer**: A flowchart is a graphical representation of a process, showing the steps as boxes


of various kinds, and their order by connecting these with arrows. It helps in understanding a
process flow and finding flaws or bottlenecks.

b) Identify and briefly explain the meaning of at least three standard flowchart symbols.

- **Answer**: Three standard flowchart symbols are:

1) Start/End symbol: Represents the start or end of a process.

2) Process symbol: Represents a process or action taking place. (4 marks)

3) Decision symbol: Represents a decision to be made, leading to different paths.

4) Connector: Shows continuation of the flow from one point to another

5) Input or Output Symbol: Represents output or input operations

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

b) Write the algorithm using Pseudocode. (5 marks)

- **Answer**:

sum_of_two_numbers(a, b)

sum < 4 + 8 (3 marks)

Print sum

c) Represent the algorithm with a flowchart.

- **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

4. Print the result

5. End

- **Answer**: [Flowchart]

(7 marks)

b) Write the algorithm in Pseudocode.

- **Answer**:

Algorithm multiply_by_two():

1. Start

2. Set number = 5

3. Set result = number * 2 (3 marks)


4. Print result

5. End
c) Explain each step of the flowchart and the algorithm.

- **Answer**:

- Start: Indicates the start of the flowchart/algorithm.

- Set number = 5: Assigns the value 5 to the variable 'number'.

- Multiply number by 2: Multiplies the value of 'number' by 2. (5 marks)

- Print the result: Outputs the result of the multiplication.

- End: Indicates the end of the flowchart/algorithm.

4) Flowchart Interpretation (15 marks)


a) Represent a simple flowchart process dealing with a non-functioning lamp.

- **Answer**: [Flowchart]

(7 marks)

b) . Interpret the given flowchart from question 4a.

- **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)

- **Answer**: The symbols used in the flowchart are:

- Start/End: Indicates the start and end of the process. (4 marks)

- Process: Represents an action or operation being performed.

- Decision: Represents a decision point where the flow can take one of two or more paths
based on a condition.

5) Algorithm Design (15 marks)


a) Design a simple algorithm to find and print the average of three given numbers. -
**Answer**

Algorithm average_of_three_numbers(a, b, c):

1. Start

2. Set sum = a + b + c (5 marks)


3. Set average = sum / 3

4. Print average

5. End

b) . Write the algorithm using pseudocode.

- **Answer**:

average_of_three_numbers(a, b, c)
(5 marks)
sum < a + b + c

average < sum / 3

print average
c) Represent the algorithm with a flowchart.

- **Answer**: [Flowchart]

(5 marks)

6) Relationship between Algorithm and Flowchart


a) Relationship between Algorithm and Flowchart

- An algorithm provides the logic and steps to solve a problem.


(5 marks)
- A flowchart represents these steps visually using symbols and shapes.

- Both are closely related as the flowchart visually represents the algorithm.

b) Role of Flowcharts:**

- Flowcharts aid in understanding the logic and flow of an algorithm.

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

c) Any meaningful example is accepted. (5 marks)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy