Grade 7 ICT Based On EOS1 Worksheet Unit 2
Grade 7 ICT Based On EOS1 Worksheet Unit 2
Grade 7
Name: Tri Duc
Class: 7B1
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 40.
START
name = "Mason"
age = 11
student = True
phoneNumber = "0832202020"
height = 200.30
IF age == 11 THEN
OUTPUT “Are you in Grade 7?”
STOP
b. How can you change the logic of the pseudocode to display “Are you in
Grade 7” if the age is equal to 11 or student is equal to True?
State the Boolean operator (e.g. AND, OR, NOT) in your answer.
………………………………………………………………………………………….
………………………………………………………………………………………[1]
c. How can you change the logic of the pseudocode to display “Are you in
Grade 7” if the age is equal to 11 and height is greater than 140.00?
Give a conditional statement(s) including a Boolean operator in your answer.
………………………………………………………………………………………….
………………………………………………………………………………………….
………………………………………………………………………………………[2]
d. Rewrite the pseudocode into Python program code.
………………………………………………………………………………………….
………………………………………………………………………………………….
………………………………………………………………………………………….
………………………………………………………………………………………….
………………………………………………………………………………………….
……………………………………………………………………………………….[3]
……………………………………………………………………………………….[1]
2. Consider the following pseudocode for a program to determine if an object can fit in a
shipping box.
OUTPUT “This test will determine if your object will fit in our shipping
box.”
object_height = INPUT "Type height (cm) of the object: "
object_length = INPUT "Type length (cm) of the object: "
object_width = INPUT "Type width (cm) of the object: "
IF object_height >= 25 OR object_length >= 100 OR object_width >= 50
THEN
OUTPUT "It will not fit."
ELSE
OUTPUT “It will fit.”
ENDIF
STOP
b. State what will be displayed on the screen if the following inputs are provided.
24 50 40
18 200 2
17 100 49
[3]
Frik [email protected]
Eddy [email protected]
Sally [email protected]
George [email protected]
Zane [email protected]
State in order all the friend’s emails that are viewed when finding George’s
………………………………………………………………………………………….
……………………………………………………………………………………….[2]
c. Does the list have to be ordered (alphabetical order) for the linear search to
find George’s email address?
………………………………………………………………………………………[1]
START
INPUT num1
INPUT num2
INPUT num3
IF ..................................................................................................................TH
EN
STOP
Fill in the blank (above) to make the code work correctly. [3]
5. Consider the following pseudocode:
START
INPUT sound_level
IF sound_level > 100 THEN
OUTPUT "Quiet"
ELSE
OUTPUT "Loud"
END IF
STOP
Using an appropriate range of test data, create a test plan by filling in the blanks in the table below.
To be To be
1 .................. .................. determined determined
To be To be
2 .................. .................. determined determined
To be To be
3 .................. .................. determined determined
To be To be
4 .................. .................. determined determined
To be To be
5 .................. .................. determined determined
[5]
..........................................................................................................................................
..........................................................................................................................................
.............................................................................................................................
.................................................................................................................................... [2]
7. Rewrite the following flowchart algorithm into pseudocode.
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
...................................................................................................................................[5]