wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Algorithms are not magic - AQA A Level Computer Science

Total questions: 25

Worksheet time: 12mins

Name
Class
Date
1.

What type of algorithm is used to manage and manipulate the huge amount of data stored on the Internet. How does a search engine find all the pages on which particular information resides in a fraction of a second?

a)

Internet-related algorithms

b)

Route-finding algorithms

c)

Compression algorithms

d)

Encryption algorithms

2.

This type of algorithm is used to determine the best route between two points. Can be used for directions but also in moving data from point A to point B in the fastest possible direction

a)

Internet-related algorithms

b)

Route-finding algorithms

c)

Compression algorithms

d)

Encryption algorithms

3.

These algorithms are used to compress data files so that they can be transmitted faster or held in a smaller amount of space. Files examples include MP3, WAV or JPG

a)

Internet-related algorithms

b)

Route-finding algorithms

c)

Compression algorithms

d)

Encryption algorithms

4.

These algorithms are used when someone purchases something over the Internet and sends their credit card details to the store the data needs to be encrypted so that even if it is intercepted it cannot be used.

a)

INternet-related algorithms

b)

Route-finding algorithms

c)

Compression algorithms

d)

Encryption algorithms

5.

Select the correct statement

a)

A good algorithm should allow for invalid inputs

b)

A good algorithm should never allow for invalid inputs

6.

Sorts data items into largest, then the second largest, then the third largest and so on until no more swaps are needed.

a)

Merge sort

b)

Bubble sort

7.

The Merge sort was invented by Jon von Neumann. True or False

a)

True

b)

False

8.

Divide (the problem into a small number of pieces) Conquer (solve each piece, by repeatedly applying divide-and-conquer to it) Combine (the pieces together into a solution).

a)

Merge sort

b)

Bubble sort

c)

Divide and conquer

9.

What is the output of this pseudocode?

a)

5 6 7 8 9 10

b)

6 7 8 9 10

c)

5 6 7 8 9

d)

9 8 7 6 5

10.

What is the output of this pseudocode?

a)

01234

b)

012345

c)

12345

d)

1234

11.

What is the output of this pseudocode?

a)

0 1 2 3 4

b)

1 2 3 4 5

c)

0 1 2 3 4 5

d)

12 3 4

12.

An algorithm to find out grade based on students’ marks is developed.

What is the output if the mark entered is 75?

a)

A*

b)

A

c)

B

d)

C

13.

An algorithm to find out grade based on students’ marks is developed.


What is the output if the mark entered is 59?

a)

B

b)

C

c)

D

d)

Fail

14.

What is the output if the mark entered is 40?

a)

B

b)

C

c)

D

d)

Fail

15.

What is the output if the mark entered is 50?

a)

B

b)

C

c)

D

d)

Fail

16.

Use this algorithm to answer question 16


What is the output if num=3?

a)

6

b)

3

c)

2

d)

1

17.

What is the output if num=4?

a)

24

b)

6

c)

4

d)

10

18.

What is the purpose of this algorithm?

a)

Finding the sum of all numbers from 1 to num

b)

Finding the factorial of num

c)

Both A and B

19.

Alan Turing and Jon von Neumann were best mates

a)

True

b)

False

c)

They were contemporaries and friendly rivals both in their lifetimes and with both of their considerable legacies within Computer Science

20.

Which of these is the most secure way of data transfer?

a)

HTTP

b)

HTTPS

21.

What does this padlock sign mean in the address bar of your browser?

a)

The site is secure and data is transmitted using SSL

b)

There is a padlock available for purchase

c)

The website does not include "safety locks"

d)

The page is locked down for some odd reason

22.

What is an Algorithm?

a)

A set of instructions that, when executed, completes a defined task that solves a problem.

b)

The process of breaking apart a problem.

c)

The process of removing unnecessary detail.

d)

A sequence of instructions.

23.

Flow chart

a)

A graphical representation of an algorithm. Each step in the algorithm is represented by a symbol. Symbols are linked together with arrows showing the order in which steps are executed.

b)

A structured, code-like language that can be used to describe an algorithm.

c)

A 'container' used to store data (value). The value is not fixed as it can store different values during the course of a program and each time a program is run.

24.

Pseudo-code

a)

A structured, code-like language that can be used to describe an algorithm.

b)

A programming language that resembles natural human language

c)

This means that the instruction cannot be misunderstood.

25.

Variable

a)

A 'container' used to store data (value). The value is not fixed as it can store different values during the course of a program and each time a program is run.

b)

A 'container' that holds a value that never changes.