Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Computational Thinking

Total questions: 26

Worksheet time: 21mins

Name
Class
Date
1.

What is it called when you break a problem down into smaller pieces to make it easier to solve?

(a)  

2.

What is it called when you remove details from a problem, only retaining the essential characteristics?

(a)  

3.

What is it called when you choose, in an algorithm, what to do next based on a boolean condition?

(a)  

4.

What is it called, in an algorithm, when you process each item of a data structure using a loop?

(a)  

5.

What is the Python operator for integer division?

(a)  

6.

What is the Python operator for exponentiation (to the power of)?

(a)  

7.

What is the Python operator for modulus (remainder)?

(a)  

8.

What type of error is an (unintended) infinite loop in code?

a)

runtime error

b)

syntax error

c)

logical error

d)

type error

9.

What type of error would be reported by a compiler?

a)

runtime error

b)

syntax error

c)

logical error

d)

type error

10.

What type of error would give the wrong result, but not cause the program to crash?

a)

runtime error

b)

syntax error

c)

logical error

d)

type error

11.

What type of error would this be?

a)

runtime error

b)

syntax error

c)

logical error

d)

type error

12.

What type of error would this be?

a)

runtime error

b)

syntax error

c)

logical error

d)

type error

13.

What is the 'Computational Thinking' type of variable x:

x = [34, 56, 78]

a)

Array

b)

Record

c)

List

d)

Int

14.

What is the 'Computational Thinking' type of variable x:

x = [34, True, "Hello"]

a)

Array

b)

Record

c)

Char

d)

Integer

15.

What is the 'Computational Thinking' type of variable x:

x = 1.234

a)

Real

b)

Float

c)

Char

d)

Integer

16.

What is the 'Computational Thinking' type of variable x:

x = "A"

a)

Real

b)

Float

c)

Char

d)

String

17.

What algorithm would you choose to look for a value in a sorted array (enter 2 words)?

(a)  

18.

What algorithm would you choose to look for a value in an unsorted array (enter 2 words)?

(a)  

19.

What algorithm would put an array into order by swapping adjacent items (enter 2 words)?

(a)  

20.

What algorithm would put an array into order using a divide-and-conquer approach (enter 2 words)?

(a)  

21.

What affects the efficiency of an algorithm (choose all that apply)?

a)

Use of memory

b)

Number of compares

c)

Number of loops

d)

Length of code

e)

Choice of variable names

22.

What sort of operators are +, -, *, /? (enter one word)

(a)  

23.

What sort of operators are ==, >, <=, !=? (enter one word)

(a)  

24.

What sort of operators are and, or, not? (enter one word)

(a)  

25.

Which of these are data structures? (choose all that apply)

a)

[1, 2, 3]

b)

[[1,2,3], [4,5,6]]

c)

"Hello"

d)

123

e)

1.23

26.

Enter the values of the 'A AND (NOT B)' column as a 4-bit binary number (top to bottom)

(a)