wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Computational Thinking Unit

Total questions: 29

Worksheet time: 16mins

Name
Class
Date
1.

Which of the following is not done by abstraction?

a)

Identifies essential details

b)

Disregards non-essential information

c)

Breaks the problem down into smaller tasks

2.

Which of the following is not done by decomposition?

a)

Allows multiple people to work on the problem together

b)

Disregards non-essential information

c)

Breaks the problem down into smaller tasks

3.

When drawing a dog, which of the following characteristics is non-essential?

a)

Dogs have 4 paws

b)

Dogs have fur

c)

Dogs have brown fur

4.

Identifying the steps involved in solving a problem

a)

Abstraction

b)

Decomposition

c)

Pattern Recognition

d)

Algorithmic Thinking

5.
Which of the following is an example of thinking computationally?
a)
Planning out your route when going to meet a friend
b)
When going to meet a friend, wandering around until you find them
c)
When going to meet a friend, asking a parent to plan your route for you
6.
What type of flowchart is shown here?
a)
selection
b)
iteration
c)
sequence
7.

What error is is shown on this flowchart?

a)

Incorrect exit from 'Is employee exempt' decision

b)

No end terminator

c)

No direction arrows

d)

Cannot have multiple entry points to an 'End' terminator

e)

Incorrect decision shape

8.

What error is is shown on this flowchart?

a)

Incorrect exit from 'Is employee exempt' decision

b)

No end terminator

c)

No direction arrows

d)

Cannot have multiple entry points to an 'End' terminator

e)

Incorrect terminator shape

9.
Which of the following is NOT computational thinking?
a)
decomposition
b)
coding
c)
pattern recognition
d)
algorithms
10.
Which statement correctly assigns the string "Tanner" to the variable name?
a)
name  = print( "Tanner")
b)
input("Tanner")
c)
name = "Tanner"
d)
name = input("Tanner")
11.

An error in the rules of the language is known as:

a)

Major error

b)

Syntax error

c)

Run Time error

d)

Logic error

12.

_______________ occurs when a variable is used before it is declared (assigned a value) or unknown command.

a)

Name error

b)

Type error

c)

Logic error

d)

Syntax error

13.

______________ is used to display output to the user.

a)

#

b)

Float

c)

print ()

d)

varName =

14.
When you have an error in your code what is the term to summarise finding and fixing that error?
a)
Error checking
b)
Debugging
c)
Syntax finder
d)
Error finder
15.

How will the following code look on the screen?

print ("I love programming.")

print ("I love programming.")

a)

"I love programming."

"I love programming."

b)

I love programming.

I love programming.

c)

I love programming. I love programming.

d)

I LOVE PROGRAMMING

I LOVE PROGRAMMING

16.

What is the output of the following code?

x = 5
y = 3
print(x + y)

a)

8

b)

2

c)

15

d)

7

17.

What is a variable in Python?

a)

A variable in Python is a mathematical operation.

b)

A variable in Python is a type of function.

c)

A variable in Python is a reserved memory location to store values.

d)

A variable in Python is a type of snake.

18.

How do you declare a variable in Python?

a)

variable_name = value

b)

variable_name : value

c)

variable_name = value =

d)

value = variable_name

19.

How do you add comments in Python code?

a)

Use the '#' symbol to add comments in Python code.

b)

Use the '/* */' symbols to add comments in Python code.

c)

Use the '//' symbol to add comments in Java code.

d)

Use the '//' symbol to add comments in Python code.

20.

Explain the concept of 'nested loops' in Python.

a)

Nested loops in Python involve one loop inside another loop, allowing for more complex iteration patterns.

b)

Nested loops in Python involve loops that are not related to each other

c)

Nested loops in Python involve loops that run sequentially

d)

Nested loops in Python involve loops that cannot be used together

21.

Example of valid identifiers

a)

12Name

b)

name$

c)

total-mark

d)

total_marks

22.

Choose the INVALID identifiers from the following

a)

NUmbEr1

b)

1NUMBer

c)

A_B

d)

A&B

23.

To display the following on screen Hello World! the following command should be used:

a)

print(Hello World!)

b)

print("Hello World" + !)

c)

print("Hello World!")

d)

print"(Hello World!)"

24.

What is a string in Python?

a)

A letter, number, word, or sentence in quotation marks

b)

A mathematical operation

c)

A conditional statement

d)

A data type

25.

Choose all the recognised control structures in a computer program ...

a)

Sequence

b)

Selection

c)

Iteration

d)

Duplication

26.

An error in the way a program works where program can run but does not do what it is expected to do is called a ...

a)

Logic error

b)

Syntax error

c)

Runtime error

d)

Catastrophe

27.

Identify the arithmetic operator which is used to calculate exponential.

a)

*

b)

%

c)

!

d)

**

28.

A software application that provides comprehensive facilities to computer programmers for software development.

a)

BASH

b)

compiler

c)

IDE (Integrated Development Environment)

d)

cloud computing

29.

Which of the following is incorrect variable name in Python?

a)

variable_1

b)

variable1

c)

1variable

d)

_variable