Answer all questions.
Underline the correct answer.
1. ………………… is a free visual programming language to create interactive stories, games and
animation.
A. Bubbles B. Script C. Scrach D. Scratch
2. What do you call the characters in scratch?
A. Script B. Sprite Scripts C. Scratch D. Sprite
3. Which animal does Scratch logo contain?
A. Koala B. Cat C. Lion D. Dog
4. Which of the following is not true about a sub-routine?
A. It can be modified. B. It cannot be called.
C. it continues from where it was called. D. It is can be called.
5. Which command let the sprites walk?
A. GO! B. Walk C. Move D. Run
6. Programming languages give computers instructions.
A. True B. False
7. You can paint a new costume for a sprite in Scratch?
A. True B. False
8. You can click on ………………… to start your main program.
A. Event B. stop C. Motion D. Green Flag
9. …………………… displays drop down menus that provide common commands like file, create a
new one and save.
A. Blocks menu B. Menu bar C. Script D. Sprite
10. …………………… is a place where you make your programs in scratch by assembling blocks
there.
A. Script area B. Stage C. Current script
1|Page Grade 7 Computing and Digital Literacy
Complete the following sentences.
11. What is the colour for motion blocks? …………………………………………………………………………….
12. What is the function of this block?
…………………………………………………………………………………………………………………………………………
13. What is the function of this block?
………………………………………………………………………………………………………………………………………….
14. A ………………………………………………. that will never end unless the Stop sign is
pressed or the script is stopped.
15. Plays a ……………………………………………………… without pausing the script.
16. Study the scratch code below carefully and write the interpretation it in the space by it.
2|Page Grade 7 Computing and Digital Literacy
17. What is the value stored in answer after each pseudocode statement is run?
answer 1 * 10
answer (20 / 2) + 5
answer 50 * 2 - 1
answer 1 + 2 – 3
……………………………………………………………………………………………………………………………………………..
……………………………………………………………………………………………………………………………………………..
18. Read the following algorithm and identify its purpose.
INPUT total
INPUT cost1
total total + cost1
INPUT cost2
total total + cost2
INPUT cost3
total total + cost3
OUTPUT “The total cost is”, total
Now answer the following questions:
a. How many variables are in the algorithm?
……………………………………………………………………………………………………………………………………………..
……………………………………………………………………………………………………………………………………………..
……………………………………………………………………………………………………………………………………………..
……………………………………………………………………………………………………………………………………………..
b. What are the identifiers of the variables?
……………………………………………………………………………………………………………………………………………..
……………………………………………………………………………………………………………………………………………..
……………………………………………………………………………………………………………………………………………..
c. Which arithmetic operator is, or operators are, being used?
……………………………………………………………………………………………………………………………………………..
3|Page Grade 7 Computing and Digital Literacy
d. How many times is the assignment symbol used?
……………………………………………………………………………………………………………………………………………..
……………………………………………………………………………………………………………………………………………..
e. What is the purpose of the comma (,) in the final statement?
……………………………………………………………………………………………………………………………………………..
……………………………………………………………………………………………………………………………………………..
……………………………………………………………………………………………………………………………………………..
……………………………………………………………………………………………………………………………………………..
f. Test the program with the following inputs, in the order given: 10, 20, 10, 25.
……………………………………………………………………………………………………………………………………………..
……………………………………………………………………………………………………………………………………………..
……………………………………………………………………………………………………………………………………………..
……………………………………………………………………………………………………………………………………………..
19. A character, word, phrase or sentence in a Python program is called …………………………………..
20. What is a sub-routine?
……………………………………………………………………………………………………………………………………………..
……………………………………………………………………………………………………………………………………………..
……………………………………………………………………………………………………………………………………………..
21. What is a variable?
……………………………………………………………………………………………………………………………………………..
……………………………………………………………………………………………………………………………………………..
……………………………………………………………………………………………………………………………………………..
4|Page Grade 7 Computing and Digital Literacy
22. Look at the Scratch blocks below carefully. How could you arrange them in a sequence to
show how to play a simple two-player game like snakes and ladders?
Arrange the blocks in the right order to create a working Scratch code when the sprite is
clicked by drawing the code blocks in the space below.
23. List one INPUT used in Python.
……………………………………………………………………………………………………………………………………………..
24. List one OUTPUT used in Python.
……………………………………………………………………………………………………………………………………………..
5|Page Grade 7 Computing and Digital Literacy
25. Complete the table below by writing the name and function.
Shape Description
26. What is the result of True AND True as used in the Boolean operator?
……………………………………………………………………………………………………………………………………………..
……………………………………………………………………………………………………………………………………………..
27. What happens when STOP is reached in a sub-routine?
……………………………………………………………………………………………………………………………………………..
……………………………………………………………………………………………………………………………………………..
……………………………………………………………………………………………………………………………………………..
28. Why are sub-routine useful when creating flowcharts?
……………………………………………………………………………………………………………………………………………..
……………………………………………………………………………………………………………………………………………..
……………………………………………………………………………………………………………………………………………..
……………………………………………………………………………………………………………………………………………..
6|Page Grade 7 Computing and Digital Literacy
29. Identify whether each identifier is valid (allowed) or invalid (not allowed) for Python. If it is
invalid, state why.
a. myNumber: ……………………………………………………………………………………………………………………
……………………………………………………………………………………………………………………………………….
b. 29Value: …………………………………………………………………………………………………………………………
…………………………………………………………………………………………………………………………………………
c. My Name. : ………………………………………………………………………………………………………………………
……………………………………………………………………………………………………………………………………….
d. print: ……………………………………………………………………………………………………………………………….
…………………………………………………………………………………………………………………………………………
e. the_Total: ………………………………………………………………………………………………………………………..
…………………………………………………………………………………………………………………………………………
f. Number-entered: …………………………………………………………………………………………………………….
…………………………………………………………………………………………………………………………………………
30. a. Complete the table by providing the data type or an example.
Data type Example
12
Real or float
“n”
String
b. Describe what happens in this program.
first = int (input (“Enter a number”))
second = int (input (“Enter a number”))
print first / second
……………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………….
7|Page Grade 7 Computing and Digital Literacy