Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Computer Science - Topic1 Computational Thinking

Total questions: 37

Worksheet time: 24mins

Name
Class
Date
1.

What are relational operators?

a)

They allow for assignment and for comparisons to be made

b)

They do Maths.

c)

They are all Maths symbols.

d)

They give us an answer to an equation.

2.

Where might we use relational operators?

a)

They are used in condition testing such as IF statements and loops.

b)

They are used in equations where we need a value.

c)

They allow us to do mathematics in functions.

3.

Which of the following are Boolean operators?

a)

NOT, AND, OR

b)

IF, WHILE, DO WHILE

c)

IF, ELIF, ELSE

d)

FOR, WHEN, THEN

4.

What are arithmetic operators?

a)

They allow numerical operations to be performed on values.

b)

They allow for assignment and for comparisons to be made.

c)

They test for true and false situations.

5.

Which of these are arithmetic operators?

a)

/, *, +, %

b)

AND, NOT, OR

c)

==, !=, <=

6.

What am I?

To find a number, you halve the data set repeatedly until what you are looking for is found. You will use a comparison of less than or greater than until the number found is equal to.

a)

Binary Search

b)

Linear Search

c)

Bubble Sort

d)

Merge Sort

7.

What am I?

To find a number, you search the entire data set until the number you are looking for is equal to the number you investigate.

a)

Linear Search

b)

Binary Search

c)

Bubble Sort

d)

Merge Sort

8.

Data has to be sorted for this algorithm to work.

a)

Binary Search

b)

Linear Search

9.

Data does not have to be sorted to find something in a...

a)

Linear Search

b)

Binary Search

10.

Bubble sort means we use the keywords...

a)

Pair, Swap, Pass, Sorted, Unsorted

b)

Split, Merge, Lists, Divide and Conquer

11.

Merge sort means we use the keywords...

a)

Pair, Swap, Pass, Sorted, Unsorted

b)

Split, Merge, Lists, Divide and Conquer

12.

What word means, "Sequence of steps to solve a problem".

_ _ _ _ _ _ _ _ _

(a)  

13.

What word means to, "Simplify a problem to make it easier to solve, removing complicated parts that may be unnecessary to the outcome"

_ _ _ _ _ _ _ _ _ _ _

(a)  

14.

What word means, "To break down a large problem in to smaller more manageable sub problems".

_ _ _ _ _ _ _ _ _ _ _ _ _

(a)  

15.
Suppose we have the following sorted list of 10 items.
3,5,6,8,11,12,14,15,17,28
Which is the correct sequence of comparisons when finding the 8 using a binary search?
a)
12,6,8,
b)
11,5,6,8
c)
3,5,6,8
d)
11,6,5,8
16.
A list contains the names:
George, Jane, Miranda, Ahmed, Sophie, Bernie, Keith.
They are sorted using Insertion sort. What is the first name to be moved?
a)
George
b)
Jane
c)
Ahmed
d)
Sophoe
17.
Using the same list as before:
George, Jane, Miranda, Ahmed, Sophie, Bernie, Keith.
How many names have to be moved altogether before the list is sorted?
a)
3
b)
2
c)
4
d)
1
18.
"Performing a series of different set-up operations when the computer is switched on" Is an example of which of the following? 
a)
Sequence
b)
Selection
c)
Iteration
d)
Variables
19.
"Beeping repeatedly after a message is sent, until the driver presses a button to show the message has been sent", Is an example of which of the following?
a)
Iteration
b)
Selection
c)
Sequence
d)
Variables
20.
What is the output of the program if:
Die1 = 3, Die2 = 4 
a)
2
b)
7
c)
0
d)
1
21.
What is the output of the program if Die1 = 5, Die2 =5 ?
a)
20
b)
15
c)
7
d)
0
22.

A loop that is carried out a set number of times

a)

Count controlled

b)

Condition controlled

c)

Infinite

d)

Array

23.
How many times does this WHILE loop run? (Hint: pay attention to the amount that is added to the count each time through the loop)
a)
10 times
b)
11 times
c)
4 times
d)
5 times
24.

A loop that is carried out until a condition is met. Sometimes involves sensors

a)

Count controlled

b)

Condition controlled

c)

Infinite

d)

Array

25.
What logic gate is this?
a)
AND
b)
OR 
c)
NOT
d)
TO
26.
What logic gate is this?
a)
AND 
b)
OR 
c)
NOT 
d)
THE
27.
What logic gate is this?
a)
OR
b)
NOT
c)
AND 
d)
THE
28.
What gate is this truth table for?
a)
AND
b)
OR
c)
NOT
d)
THE 
29.
What gate is this table for?
a)
AND
b)
XOR
c)
OR 
d)
NOT
30.
What gate is this table for?
a)
AND
b)
OR
c)
NOT
d)
NOR
31.
AND Gate:
IF A and B are ON, the output would be...
a)

ON

b)

OFF

32.
AND  Gate:
If A is OFF but B is ON, the output would be...
a)

ON

b)

OFF

33.
The output of a _______ gate is only 1 when both inputs are 1.
a)
OR
b)
NOT
c)
NAND
d)
AND
34.
A NOT gate has......
a)
Two inputs and one input
b)
One input and one output
c)
One input and two outputs
d)
Two inputs and two outputs
35.

If S = 1, N = 0 and B=1 what would be the output of this circuit?

a)

1

b)

0

c)

Not possible to say

36.

What does this symbol represent in a flowchart?

a)

A Decision

b)

A Subprocess

c)

A Start or End

d)

The Flow of Data

37.

Which symbol represents a decision?

a)
b)
c)
d)