0% found this document useful (0 votes)
44 views5 pages

Year 9 ICT Revision Worksheet 1

Uploaded by

aljourighanim711
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)
44 views5 pages

Year 9 ICT Revision Worksheet 1

Uploaded by

aljourighanim711
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/ 5

Name: ……………………………………………………………………. Class: …………………….

Year 9 ICT Revision Worksheet 1

1. Assign the correct datatype to the values given below: [6 marks]

a. False - _____________________

b. 78.3 - __________________

c. “Everyone” - ____________________

d. -34 - _________________________

e. “54321”- __________________

f. ‘u’- ___________________

2. Declare a variable called newtext and assign a string “Happy” into it. [1

mark]

3. Write ‘Y’ or ‘N’ for yes or no if the given code is right or wrong. If the code is wrong, then

highlight that error and mention the reason why. [5 marks]

Y or N Reason if code is wrong

if = 89

Print (num1)

num2 = 56

print (num)

str = “I love Qatar’

Var1 = 200

YR 9 REVISION WORKSHEET 1
Name: ……………………………………………………………………. Class: …………………….

4. The 4 reserved words in Python are: [4 marks]

a. _______________________

b. _______________________

c. _______________________

d. _______________________

5. Reserved words in Python are those words that cannot be used as _______________________.

[1 mark]

6. Write the answers of the following calculations in Python: [2 marks]

a. 23+8 ______________________

b. 23-67 ________________________

7. Syntax means the ________________________________________________ of the

programming language. [1 mark]

8. The 2 types of numbers in Python are: [2 marks]

a. __________________________

b. __________________________

9. The 6 numerical operators are _________________________________________________.

[6 marks]

10. The % symbol is used to ___________________________. For example _____ % _____ = _____

[4 marks]

11. The ** symbol is used to ___________________________. For example _____ ** _____ = _____

[4 marks]

YR 9 REVISION WORKSHEET 1
Name: ……………………………………………………………………. Class: …………………….

12. Match the datatypes to their descriptions: [4 marks]

a) Strings They are whole numbers and can be positive or negative

b) Boolean They store only 2 values – True and False

c) Float They are numbers with decimal points, and can be positive or negative

d) Integer They are texts enclosed in single or double quotes

14. Write the output for the code given below [1 mark]

a)

15. Declare 3 numbers to 3 different variables. Write a program to add these 3 numbers together.

First variable declaration has done for you. [4 marks]

num1 =50

_____________________________________

_____________________________________

_____________________________________

print ________________________________

16. Joining two or more strings together is called ______________________ [1 mark]

YR 9 REVISION WORKSHEET 1
Name: ……………………………………………………………………. Class: …………………….

17. Write 2 rules for variables and write one example for valid variable declaration. [3 marks]

1. ______________________________________________________________________________

2. ______________________________________________________________________________

eg:___________________________________________

18. Write a python code for multiplying 2 numbers and print the answer [3 marks]

19. Maha went to the bookstore and bought 2 textbooks for a total of 50 riyal. She then bought 5 pens

that cost 5 riyal each. What is the total amount in her bill at the bookstore? Write this problem using

Python code. NOTE: You must use atleast 3 variables to write the program. [5 marks]

YR 9 REVISION WORKSHEET 1
Name: ……………………………………………………………………. Class: …………………….

********************************* REFLECTION ************************************

I feel my partner and I did _________________ today. We will continue working during the next revision
lesson.

************************ TOPICS I NEED TO REVISE FURTHER ******************************

After today’s worksheet, we feel that we need to revise the following topics further:

1.

2.

3.

YR 9 REVISION WORKSHEET 1

You might also like