Grade 6 Worksheet Programming 1
Grade 6 Worksheet Programming 1
Grade 6
Name: ……………………………………………………
Class: ………..
INSTRUCTIONS
● Answer all questions.
● Write your answer to each question in the space provided.
● You should show all your working on the question paper.
INFORMATION
● The total of this paper is 23.
1. Look at the following block code from Scratch and Python code.
a. Complete the missing part of the flowchart so the algorithm calculates the
area of a rectangle. [2]
4. Consider the following algorithm presented as a flowchart.
a. State the values that are displayed when the input of num is:
i. 60
………………………………………………………………………………[1]
ii. 4
………………………………………………………………………………[1]
5. You are asked to create a flowchart to calculate and display the area of a rectangle
given its length and width using the algorithm below.
START ____________
INPUT length ____________
INPUT width ____________
Calculate the area = length * width ____________
OUTPUT area ____________
IF area < 100 Then ____________
OUTPUT “The area is not too big.” ____________
ELSE
OUTPUT “The area is too big.” ____________
ENDIF
STOP ____________
Choose the letter of the correct flowchart symbol to be used for the
given lines of code.
Flowchart Symbols:
A. B.
C. D.
[4]
6. Fill in the blanks:
if (x __________ y):
[5]