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

EOS1 Revision1

The document is a revision worksheet for Computing Grade 6, covering topics such as arithmetic operators, data types, comparison operators, and programming concepts in Python. It includes exercises on converting block code to Python, understanding software types, creating flowcharts, and managing data. Additionally, it provides questions and tasks related to programming logic and error correction.
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 views8 pages

EOS1 Revision1

The document is a revision worksheet for Computing Grade 6, covering topics such as arithmetic operators, data types, comparison operators, and programming concepts in Python. It includes exercises on converting block code to Python, understanding software types, creating flowcharts, and managing data. Additionally, it provides questions and tasks related to programming logic and error correction.
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/ 8

Name: Minh Lam

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

L2: number = input(“Number to


answer”)

L3: total = (“Number * number”)

L4: print (answer)


What will be the output?

12 = 144

4 = 16

9 = 81

def eos2 (x):


return 5 * x
print (eos2 (3))
print (eos2 (5))
print (eos2 (9))

Re-write the code:

L1 : name = int(“Enter your name”, :)


L2 : print (“Your name is”, name)
L3 : highScore = (26)
L4 : print (“Today’s high score is”, high score)
L5 : averageScore = (17.69)
L6 : print (“The average score today is”, average score)
Unit 2 - Decomposing problems: Creating a smart solution (16 pts)
1. What is the difference between application software and system software? (2 pts)
- System software manages and controls computer hardware and resources
- Application software performs specific tasks for end-users
2. Draw the symbols for the following: (5 pts)
Start/ Stop: Oval
Process: Rectangle
Sub-routine: Subroutine
Decision: Diamond
Input/ Output: Parallelogram

3. Create a flowchart for the code below: (3 pts)

What will happen if button b is pressed? (2 pts)

Opposite to button a

4. Complete the test plan below. (4 pts)


1. Look at the following block code from Scratch and Python code.
greeting = input(“Insert greeting: “)
print(greeting)

The second code block from Scratch is which component of code?


variable | input | output | processing
Input[1]
Name the data type of this component.
IDK[1]
Does this Python code and Scratch block code have the same result?
Yes, It only change the progress of code[1]
2. Neville is writing a program to find out if a person can vote. Read the program code
below and rewrite it with all errors fixed.

a. age = int(input("Input your age”, :)


if age != 18:
print(You can vote!)
else:
print(You cannot vote!)
[3]
b. Identify the data type of age.
IDK[1]

3. The area of a rectangle is calculated by multiplying length by width.


Consider the flowchart below:

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

print(“x is greater than y”)

elif (x < y):

print(“y is greater than x”)

elif (x == y):

print(“x is equal to y”)

else (“x is not equal to y”) [3]

7. Draw a flowchart that shows the following algorithm:


- ask for an input integer called “number”
- calculate the double of “number” and assign it to a variable called “double”
- if “double” is greater than 100 output “Big!”
- else output “Small…”

[5]

Unit 3. Managing data (19 pts)


A. Fill in the blanks using the word below:
1. What is the best primary key for the given database?
7
2. What should we use to locate the data of a patient who has been diagnosed to
have ‘Cold’
Geolocation
3. How can we show all the patients born in 1992?
by highlighting the patients

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