Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Algorithms and Data Revision

Total questions: 20

Worksheet time: 14mins

Name
Class
Date
1.

What is the name of a variable passed to a function?

a)

Global

b)

Parameter

c)

Constant

d)

Float

2.

What would the following code allow you to find out in a program?

num = 12325

if num MOD 2 == 0:

a)

Reverse the number from positive to negative

b)

Loop the number around if it is bigger than 0

c)

Find out if the number is odd or even

d)

Divide the number to find how many whole instances of a number will go into it

3.

What kind of search algorithm would be best to use on the following data set?

5,8,32,45,1,3,54,23,45,10,23,54,67

a)

Bubble Search

b)

Linear Search

c)

Insertion Search

d)

Binary Search

4.

Is NOT a data type used in programming:

a)

Float

b)

Boolean

c)

String

d)

Tuple

5.

A data structure is....

a)

A collection of multiple data items accessible under a single identifier

b)

A collection of different identifiers that look at a single piece of data

c)

An identifier that allows access to a single piece of data

d)

A boolean value that allows access to both single and multiple sets of data

6.

Is NOT a piece of meta data that would be stored by an image:

a)

Bit depth

b)

Resolution

c)

Compression

d)

DPI

7.

When turning written code like Python into a running program, an to allow you to identify errors you would use...

a)

An interpreter

b)

A compiler

c)

Machine Code

d)

A highlighter

8.

Is the programming construct that allows the flow of data in a program to be manipulated by logical conditions:

a)

Iteration

b)

Sequence

c)

Variable

d)

Selection

9.

Before sound is made available to be processed in a computer, the signal is:

a)

variable

b)

analogue

c)

binary

d)

digital

10.

If an image had an 8-bit colour depth, it would mean it has:

a)

512 colours available

b)

a digital signal

c)

65,356 colours available

d)

256 colours available

11.

Convert 1100 1110 from binary into denary...

a)

198

b)

223

c)

206

d)

243

12.

Convert E3 from hexadecimal into denary:

a)

144

b)

56

c)

223

d)

227

13.

Convert denary 193 into hexadecimal:

a)

D3

b)

C1

c)

111

d)

DD

14.

I would use a (a)   to convert high level code into a program that would run all in one go

15.

Which TWO of these statements refer to abstraction?

a)

The removal of unnecessary information from a problem

b)

The selection of important and relevant information from a problem

c)

Breaking a problem down into smaller, sub-problems

d)

Allowing reusable components to be available

16.

You need to ensure that a persons score out of 100 can be input into a program so you make the variable an integer. This is known as:

a)

Algebraic direction

b)

Concatentation

c)

Casting

d)

Data typing

17.

Which THREE of these would be methods of input validation

a)

Type check

b)

Length check

c)

Testing

d)

Range check

18.

What is this kind of loop known as:


For x = 0 to 20

a)

Conditional Controlled

b)

Constant Controlled

c)

Variable Controlled

d)

Counter Controlled

19.

Which of these symbols would be used to make a decision about data flow?

a)

The paralellogram

b)

The oval

c)

The diamond

d)

The rectangle

20.

Which of these symbols would allow you to call a sub-routine into a main program?

a)

The diamond

b)

The rectangle

c)

The paralellogram

d)

The oval