wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Y7 Variables and Algorithms

Total questions: 10

Worksheet time: 15mins

Name
Class
Date
1.

Which rows in the program are inputs?

a)

Row 1

b)

Row 2

c)

Row 3

d)

Row 4

e)

Row 5

2.

Which row in the program is an output?

a)

Row 1

b)

Row 2

c)

Row 3

d)

Row 4

e)

Row 6

3.

What does a variable do?

a)

Says a name variable

b)

Prints out a name variable

c)

Stores a value and can be re-used when called

d)

Collects an output and stores it

e)

Helps find things in a program

4.

What would be the answer here?

a)

Number 1

b)

Number 2

c)

Number 3

5.

What would number3 variable hold?

a)

22

b)

24

c)

26

d)

28

e)

30

6.

What would number3 variable hold here?

a)

29

b)

30

c)

32

d)

31

e)

33

7.

The following program is written as?


START

INPUT number 1

INPUT number 2

IF number 1 > number 2

OUTPUT £5.00

ELSE

OUTPUT £10.00

a)

The text above is a flow chart

b)

The text above is pseudocode

c)

The text above is a Scratch program

8.

What is the purpose of pseudocode?

a)

To program a computer

b)

So we can see the different symbols

c)

To plan/understand a program in English

d)

I helps us with the variables

9.

What's happening here?

a)

Program will draw a hexagon

b)

Program will draw a circle

c)

Program will draw a rectangle

d)

Program will draw a square

10.

INPUT age

IF age < 18

OUTPUT you can't come in

ELSE

OUTPUT allow in

a)

The code above checks to see when your birthday is

b)

The code above checks to see if you're old enough to enter

c)

The code above checks to see if your birthday is coming up

d)

The code above checks to see if you're male or female