Name ________________________________________________________________ Class _______
1. What is a variable?
A named memory location used to store data of a given type during program
execution; a variable can change value as the program runs.
2. What word means "saving data into a variable"?
assignment
3. What symbol is used to save data into a variable?
4. A program waits for the user to type their name on the keyboard and saves this to the variable
"name". Is this input, processing or output?
Input (typing on the keyboard) and processing (Saving data in a variable)
5. What is processing?
When the computer is thinking, calculating, doing maths.
6. Give TWO examples of output.
Printing on a piece of paper, playing sounds through a speaker, displaying text
on a screen
7. Fill in the table below:
Name of Shape Shape What the shape is used for in a flowchart
Circle / Oval START and STOP
Rectangle Normal steps, processing
Parallelogram INPUT and OUTPUT
Diamond Making Decisions, selection
Name ________________________________________________________________ Class _______
`
8. Draw a flowchart for the below:
Ask the user to type their age and save what they type into a variable called age1
If age1 is greater than or equal to 100 then display "You're old!" else display "Still young"
START
INPUT age1
No OUTPUT
IF
age1>=100 "Still young"
Yes
OUTPUT
STOP
"Still young"
Name ________________________________________________________________ Class _______
`
9. Create a test plan for question 6.
Test ID Test Data / Input Expected Outcome Actual Outcome Pass / Fail
1 ___________ ___________
2 ___________ ___________
3 ___________ ___________
4 ___________ ___________
5 ___________ ___________
Name ________________________________________________________________ Class _______
`
10. What are AND OR and NOT examples of?
______________________________
11. Write an IF statement which has "AND" inside, that will only be true if both of these conditions
are true:
subject equals "Computing"
score is less than 8
________________________________________________________________
12. Write psuedocode for the below:
Ask the user to type a colour and save what they type into a variable called colour1
If colour1 is equal to "red" or "pink" display "HOT!" else if colour1 is equal to "blue" the
display "cold" else do nothing.
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
13. What do we call the table of binary and letters that is commonly used to convert binary into
letters/numbers? (You may write either the abbreviation or the full name)
________________________________________________________________
14. Count to 8 in binary
0 0
1 1
2 ____
3 ____
4 ____
5 ____
6 ____
7 ____
8 ____
Name ________________________________________________________________ Class _______
`
15. Explain how the linear search algorithm works.
________________________________________________________________
________________________________________________________________
________________________________________________________________
16. Draw a flowchart showing how the linear search algorithm works.