wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

7.6 Programming (2021)

Total questions: 30

Worksheet time: 15mins

Name
Class
Date
1.

Breaking-down complex problems into smaller parts to make them easier to solve is known as...

a)

Decomposition

b)

Pattern recognition

c)

Abstraction

d)

Algorithm

e)

I don't know

2.

Looking for similarities within a problem is known as...

a)

Decomposition

b)

Pattern recognition

c)

Abstraction

d)

Algorithm

e)

I don't know

3.

Focussing only on important information and removing irrelevant detail is known as...

a)

Decomposition

b)

Pattern recognition

c)

Abstraction

d)

Algorithm

e)

I don't know

4.

A step-by-step solution to solve a problem is known as...

a)

Decomposition

b)

Pattern recognition

c)

Abstraction

d)

Algorithm

e)

I don't know

5.

When working out the next number in a sequence, which component of computational thinking are you using?

a)

Decomposition

b)

Pattern recognition

c)

Abstraction

d)

Algorithm

e)

I don't know

6.

Which of the following is another word for iteration?

a)

Selection

b)

Sequence

c)

Looping

d)

FOR

e)

I don't know

7.

Which of the following is a type of iteration?

a)

Count-controlled

b)

Variable

c)

IF statement

d)

Algorithm

e)

I don't know

8.

Which of the following is a type of iteration?

a)

ELSE statement

b)

Abstraction

c)

Turtle

d)

Condition-controlled

e)

I don't know

9.

When would we use a FOR statement?

a)

When we already know how many times we want to iterate

b)

When we want to iterate until a specific condition is met

c)

When we want to repeat a block of code forever

d)

When we run out of variables to use

e)

I don't know

10.

Which of the following Python statements can be used to loop part of a program?

a)

IF

b)

ELSE

c)

UNTIL

d)

WHILE

e)

I don't know

11.

What is meant by a variable?

a)

A loop

b)

A question

c)

A storage location in memory

d)

A number which never changes

e)

I don't know

12.

Which of the following is a suitable name for a variable?

a)

my Variable

b)

myVariable!

c)

myVariable2

d)

1stVariable

e)

I don't know

13.

What is a variable used for?

a)

To store data whilst a program is running

b)

To loop part of a program

c)

To keep hackers out of the system

d)

To move the Turtle

e)

I don't know

14.

What does this line of code do?

a)

Asks the user to enter their name, then stores it in a variable

b)

Prints the username stored in the variable

c)

Asks the user to enter their name, then renames the variable

d)

Tells the user what their name is

e)

I don't know

15.

Which are the only outcomes of a comparison?

a)

True, False

b)

True, Maybe, False

c)

Left, Right, Up, Down

d)

A number between 0 and 100

e)

I don't know

16.

What is the IF statement used for?

a)

To make a selection

b)

To iterate

c)

To move the Turtle

d)

To ask the user a question

e)

I don't know

17.

Which Python statement runs code if all previous IF and ELIF statements are False?

a)

IF

b)

ELSE

c)

WHILE

d)

FOR

e)

I don't know

18.

Which of the following statements is True?

a)

5 == 7

b)

5 != 7

c)

5 > 7

d)

5 >= 7

e)

I don't know

19.

Which of the following statements is True?

a)

33 > 33

b)

46 < 99

c)

90 != 90

d)

128 == 12

e)

I don't know

20.

What would be printed when this program is run?

a)

Red

b)

Blue

c)

5

d)

myNumber

e)

I don't know

21.

What would be printed when this program is run?

a)

Banana

b)

Eat it

c)

Remove the stone

d)

Peel it

e)

I don't know

22.

What is the formula to calculate the angles of an equilateral shape?

a)

number of sides / 360

b)

360 / number of sides

c)

360 * number of sides

d)

number of sides * 360

e)

I don't know

23.

Which shape would this program draw?

a)

Pentagon

b)

Hexagon

c)

Heptagon

d)

Octagon

e)

I don't know

24.

In this program, what is i?

a)

A variable

b)

How the Turtle sees where it is going

c)

An imaginary number

d)

A condition

e)

I don't know

25.

What is the name of the object we use for drawing on-screen?

a)

Kangaroo

b)

Emu

c)

Octopus

d)

Turtle

e)

I don't know

26.

What is the name of the programming language we have been using during this half term?

a)

Scratch

b)

JavaScript

c)

Python

d)

DuckDuckGo

e)

I don't know

27.

Which is the correct statement to move the Turtle to the middle of the screen?

a)

turtle.goto(0,0)

b)

turtle.center()

c)

turtle.middle()

d)

turtle.home(0)

e)

I don't know

28.

Which keys do we press to take a screenshot?

a)

Windows, Shift, and S

b)

Home and S

c)

CTRL, ALT, and Delete

d)

CTRL and V

e)

I don't know

29.

Which keys do we press to paste content?

a)

CTRL and P

b)

CTRL and V

c)

CTRL and X

d)

CTRL and C

e)

I don't know

30.

Which line of code has been blacked-out of the screenshot?

a)

turtle.penup()

b)

turtle.pendown()

c)

turtle.forward(100)

d)

turtle = Turtle()

e)

I don't know