wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Year 7 Lent

Total questions: 20

Worksheet time: 11mins

Name
Class
Date
1.

What is a rectangle shape used for in a flowchart?

a)

Input/Output

b)

Decision

c)

Start/End

d)

Process

2.

What is a diamond shape used for in a flowchart?

a)

Input/Output

b)

Decision

c)

Start/End

d)

Process

3.

What is a parallelogram shape used for in a flowchart?

a)

Input/Output

b)

Decision

c)

Start/End

d)

Process

4.

What is an oval shape used for in a flowchart?

a)

Input/Output

b)

Decision

c)

Start/End

d)

Process

5.

Which of these is not part of the definition of an algorithm?

a)

It is unambiguous (clear)

b)

It is finite (has a start and end)

c)

It solves a problem or performs a task

d)

It is written in Python

6.

What Python keyword is used first when demonstrating selection?

a)

if

b)

else

c)

input

d)

print

7.

What Python keyword is used last when demonstrating selection?

a)

if

b)

else

c)

input

d)

print

8.

What Python would you use to get the whole number value a user typed into the variable called num?

a)

num = int(input())

b)

int(input()) = num

c)

num = input()

d)

"num" = int(input())

9.

What Python would you use to get the word value a user typed into the variable called name?

a)

name = int(input())

b)

input() = name

c)

name = input()

d)

"name" = input()

10.

Which of these are inputs for the micro:bit? (choose all that apply)

a)

Buttons

b)

Accelerometer

c)

Speaker

d)

Compass

11.

Which of these are outputs for the micro:bit? (choose all that apply)

a)

Buttons

b)

Accelerometer

c)

Speaker

d)

LEDs

12.

What syntax is used for assignment in Python?

a)

=

b)

==

c)

:

d)

()

13.

What syntax is used for comparison in Python?

a)

=

b)

==

c)

:

d)

()

14.

What syntax is used for 'more than or equal to' comparison in Python?

a)

>=

b)

=>

c)

<=

d)

=<

15.

What syntax is used for 'less than or equal to' comparison in Python?

a)

>=

b)

=>

c)

<=

d)

=<

16.

In the following Python code, what is num? (choose all that apply)

num = 3 * int(input())

a)

Variable

b)

Integer

c)

String

d)

Constant

17.

What is also needed alongside a decision shape on a flowchart? (choose all that apply)

a)

Labels

b)

2 Output Arrows

c)

A Yes/No question

d)

A Rectangle shape

18.

How would you print the contents of the variable x?

a)

print(x)

b)

print("x")

c)

print x

d)

print "x"

19.

Why does this code produce a syntax error?

a)

Line 1 is missing an int() around input()

b)

The code does not take into account what happens when x = 5.

c)

The code does not work for negative numbers.

d)

Line 6 does not need a colon at the end of else.

20.

If the user inputs 5, what does this code print?

a)

Small

b)

Medium

c)

Large

d)

Syntax error