wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Programming [1]

Total questions: 19

Worksheet time: 8mins

Name
Class
Date
1.

What is an Algorithm?

a)

A picture that you use to make a program

b)

A precise set of instructions

c)

Shapes and symbols connected together

d)

Breaking a problem down into smaller tasks

2.
What is pseudocode?
a)
Simplified programming language, that is not a specific language
b)
Complicated programming language
c)
Simple programming language, which is linked to a specific language
d)
A type of cheese
3.
print("12"*3)
What would this print?
a)
36
b)
121212
c)
24
d)
12*3
4.
What will the output be from the following code?
print(3+4)
a)
3+4
b)
7
c)
SyntaxError
d)
print(3+4)
5.
A location in memory used to store data that can be changed.
a)
Constant
b)
Value
c)
Variable
d)
Iteration
6.
Abstraction is.....
a)
The process of drawing abstract pictures.
b)
The process of assigning values to variables.
c)
The process of breaking down problems.
d)
The process of removing unnecessary details from a problem.
7.
Identify the search algorithm
a)
Random search
b)
Binary search
c)
Denary search
d)
Next Item search
8.
Identify the description of a linear search
a)
Put the elements in order, check each item in turn
b)
Put the elements in order, compare to the middle value, split the list in order and repeat
c)
Elements do not need to be in order, check each item in turn
d)
Elements do not need to be in order, compare to the middle value, split the list in order and repeat
9.
Identify the description of a binary search
a)
Put the elements in order, check each item in turn
b)
Put the elements in order, compare to the middle value, split the list in order and repeat
c)
Elements do not need to be in order, check each item in turn
d)
Elements do not need to be in order, compare to the middle value, split the list in order and repeat
10.
Define the term computational thinking
a)
Using a computer
b)
Developing an algorithm to solve a problem
c)
Making a computer use artificial intelligence
d)
Google is computational thinking
11.
Identify which statement describes algorithmic thinking
a)
Thinking like a computer
b)
Writing binary numbers
c)
Identifying the steps involved in solving a problem
d)
Identifying what problems need to be solved
12.

A binary search is to be performed on the list above.

How many comparisons would it take to the find the number 101?

a)

0-1

b)

1-2

c)

3-4

d)

4-5

13.

A binary search is to be performed on the list above.

How many comparisons would it take to find the number 9?

a)

0-1

b)

2-3

c)

4-5

d)

It can't find the number 9

14.

Identify the search performed by the above algorithm

a)

Linear

b)

Binary

c)

Both linear and binary

d)

Neither, it does not work

15.

The following algorithm should take as input and add together two numbers, outputting the result.


Identify the correct algorithm.

a)
b)
c)
d)
16.

The following algorithm should take as input on number, and output the 12 times table for that number.


Identify the correct algorithm.

a)
b)
c)
d)
17.

The following algorithm should take as input two numbers, add them together, multiply the answer by 11, add 4, then divide by 2. It should output the result.


Identify the correct algorithm.

a)
b)
c)
d)
18.

Select strategy used in the Binary search algorithm

a)

Ask questions

b)

Look for familiar things

c)

Divide and conquer

19.

What is the first strategy to use when given a problem.

a)

Ask questions

b)

Look for familiar things

c)

Divide and conquer