EOS1 Revision1
EOS1 Revision1
Class: 6b04
Teacher: Uranus Score:
Computing Grade 6 – EOS2 Revision WS Part 1
Unit 1. Block it out: Moving from blocks to text based programming. (17 pts)
A. Arithmetic Operators
+ 1. Addition ** 5. Exponentiation
- 2. Subtraction % 6. Modulus (remainder of a division)
* 3. Multiplication // 7. Integer Division
/ 4. Division
B. Types of Data
String 1. Text Float 3. Decimal Numbers
Integer 2. Whole Numbers Boolean 4. True or False
C. Comparison Operators
< 1. Less than >= 5. Greater than or equal to
> 2. Greater than <= 6. Less than or equal to
= 3. Equal to
!= or <> 4. Not equal to
C. Convert the blocks into Python program and complete the table. (16 pts)
L1: number = int(input(“Enter the
number”))
12 = 144
4 = 16
9 = 81
Opposite to button a
a. Complete the missing part of the flowchart so the algorithm calculates the area of
a rectangle. Area = length * width[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 Oval
INPUT length Parallelogram
INPUT width Parallelogram
Calculate the area = length * width Rectangle
OUTPUT area Parallelogram
IF area < 100 Then
OUTPUT “The area is not too big.” Parallelogram
ELSE
OUTPUT “The area is too big.” Parallelogram
ENDIF
STOP Oval
Choose the letter of the correct flowchart symbol to be used for the
given lines of code.
Flowchart Symbols:
A. Oval - Start/Stop
B. Parallelogram - Input/Output
C. Diamond - Decision
D. Rectangle - Progress
[4]
6. Fill in the blanks:
if (x > y):
elif (x == y):
[5]