WorksheetsComputational Thinking
Total questions: 26
Worksheet time: 21mins
What is it called when you break a problem down into smaller pieces to make it easier to solve?
(a)
What is it called when you remove details from a problem, only retaining the essential characteristics?
(a)
What is it called when you choose, in an algorithm, what to do next based on a boolean condition?
(a)
What is it called, in an algorithm, when you process each item of a data structure using a loop?
(a)
What is the Python operator for integer division?
(a)
What is the Python operator for exponentiation (to the power of)?
(a)
What is the Python operator for modulus (remainder)?
(a)
What type of error is an (unintended) infinite loop in code?
runtime error
syntax error
logical error
type error
What type of error would be reported by a compiler?
runtime error
syntax error
logical error
type error
What type of error would give the wrong result, but not cause the program to crash?
runtime error
syntax error
logical error
type error
What type of error would this be?
runtime error
syntax error
logical error
type error
What type of error would this be?
runtime error
syntax error
logical error
type error
What is the 'Computational Thinking' type of variable x:
x = [34, 56, 78]
Array
Record
List
Int
What is the 'Computational Thinking' type of variable x:
x = [34, True, "Hello"]
Array
Record
Char
Integer
What is the 'Computational Thinking' type of variable x:
x = 1.234
Real
Float
Char
Integer
What is the 'Computational Thinking' type of variable x:
x = "A"
Real
Float
Char
String
What algorithm would you choose to look for a value in a sorted array (enter 2 words)?
(a)
What algorithm would you choose to look for a value in an unsorted array (enter 2 words)?
(a)
What algorithm would put an array into order by swapping adjacent items (enter 2 words)?
(a)
What algorithm would put an array into order using a divide-and-conquer approach (enter 2 words)?
(a)
What affects the efficiency of an algorithm (choose all that apply)?
Use of memory
Number of compares
Number of loops
Length of code
Choice of variable names
What sort of operators are +, -, *, /? (enter one word)
(a)
What sort of operators are ==, >, <=, !=? (enter one word)
(a)
What sort of operators are and, or, not? (enter one word)
(a)
Which of these are data structures? (choose all that apply)
[1, 2, 3]
[[1,2,3], [4,5,6]]
"Hello"
123
1.23
Enter the values of the 'A AND (NOT B)' column as a 4-bit binary number (top to bottom)
(a)
