wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Paper 2 Revision

Total questions: 66

Worksheet time: 41mins

Name
Class
Date
1.

Which happens during abstraction?

a)

Identify the essential information

b)

Ignore the non-essential information

c)

Break the problem down into smaller tasks

2.

What happens during decomposition?

a)

Ignore non-essential information

b)

Break the problem down into smaller tasks

3.

When designing a building that must be accessible for wheelchairs, which of the following characteristics is non-essential?

a)

Number of doors

b)

Number of walls

c)

Number of wall paintings

4.

Decomposition allows each task to become _______

a)

More manageable

b)

Smaller

c)

More difficult

5.

A school database has lots of information on students, the data manager needs to use abstraction. What data should she leave out?

a)

Age

b)

Guardian's phone numbers

c)

Classes

d)

Eye colour

6.

What is this symbol used for in a flowchart?

a)

A decision/question

b)

A task to carry out

c)

An input

7.
What is the Output if the user enters:
Yes
a)
Leave umbrella at home
b)
Take an umbrella
8.
What is the Output if the temperature is:
19
a)
Below Freezing
b)
Above Freezing
9.
How many Processes are there?
a)
1
b)
2
c)
3
10.

Which shape would you use to perform a test on a variable?

a)

Top (box)

b)

Middle (parallelogram)

c)

Bottom (diamond)

11.

Look at the Algorithm Below. In the corresponding Trace Table, what value should 'A' be?

a)

1

b)

3

c)

5

d)

7

12.

Look at the Algorithm Below. In the corresponding Trace Table, what value should 'B' be?

a)

1

b)

3

c)

5

d)

7

13.

Look at the Algorithm Below. In the corresponding Trace Table, what value should 'C' be?

a)

1

b)

3

c)

8

d)

13

14.

Look at the Algorithm Below. In the corresponding Trace Table, what value should 'D' be?

a)

11

b)

13

c)

8

d)

1

15.

Look at the Algorithm Below. In the corresponding Trace Table, what value should 'E' be?

a)

3

b)

5

c)

8

d)

13

16.
If you have a large amount of data to search through the best algorithm would be a 
a)
Binary Search
b)
Linear Search
17.

Which type of sort algorithm is this?

a)

Bubble

b)

Merge

c)

Insertion

18.
Which type of sort algorithm is this?
a)
Bubble
b)
Merge
c)
Insertion
19.
If the data is in order the best search to use would be a
a)
Binary Search
b)
Linear Search
20.
When is a binary search faster than a linear search?
a)
When there is a large amount of data
b)
When there is a small amount of data
21.

Which data type would you use to store:

Someone's age

a)

String

b)

Integer

c)

Float

d)

Boolean

22.

Which data type would you use to store:

Someone's name

a)

String

b)

Integer

c)

Float

d)

Boolean

23.
Which of these is a Boolean?
a)
Computer Science
b)
16
c)
Yes/No
d)
897
24.
Which of these is a Float?
a)
Maidstone
b)
34.67
c)
19087
d)
Yes/No
25.

What does 'Defensive Design' mean?

a)

A method of planning a program using shapes.

b)

A method of planning a program using plain English.

c)

A method of designing a program so that it functions properly and doesn't crash.

d)

A method of checking that an input matches the criteria.

26.

What is the most common method of Authentication?

a)

Biometrics.

b)

Passwords.

c)

An e-mail address.

d)

A username.

27.

What are the features of 'Well-Maintained Code'?

a)

Comments and global variables.

b)

No indentation.

c)

Comments, indentation and suitably named variables.

d)

Local variables only.

28.
Checking that the data is sensible and reasonable
a)
Validation
b)
Authentication
c)
Sanitisation
29.
Removing unnecessary data from the string of characters
a)
Validation
b)
Authentication
c)
Sanitisation
30.
Checking that you are who you say you are
a)
Validation
b)
Authentication
c)
Sanitisation
31.
If your program asks the user to enter your age, what kind of Test Data would this be?
Harry
a)

Boundary

b)

Erroneous / Invalid

c)
Normal
32.
If your program checks whether the user is 18 or over, what kind of Test Data would this be?
18
a)

Erroneous / Invalid

b)
Normal
c)

Boundary

33.

Choose the correct definition of a logic error

a)

The program will run but will produce an unexpected result

b)

A grammatical error that will cause the program to crash

c)

An error caused by an incorrect spelling

d)

The program does not make logical sense

34.

Choose the correct definition of a syntax error

a)

The program contains an error but will not crash

b)

A grammatical error that will cause the program to crash

c)

An error caused by an incorrect spelling

d)

The program does not make logical sense

35.

Identify the syntax error in this code

a)

admin should be within quotation marks

b)

print has been spelt incorrectly

c)

username has been used too many times

d)

!= is not a correct math operator

36.

Which logic gate is this?

(a)  

37.

Which logic gate is this?

(a)  

38.

Which 2 gates have been used?

a)

AND and NOT

b)

OR and AND

c)

OR and NOT

d)

NOT and OR

39.

What is the correct notation for this logic circuit?

a)

C AND (A OR B)

b)

C OR (A AND B)

40.

Which 2 gates have been used?

a)

AND and NOT

b)

OR and AND

c)

OR and NOT

d)

NOT and OR

41.
Translates source code into machine code one line at a time.
a)
Compiler
b)
Interpreter
c)
Editor
42.
Translates the entire source code into machine code.
a)
Compiler
b)
Interpreter
c)
IDE
d)
Operand
43.

Select two advantages of high level languages

a)

Easier to learn

b)

Executes very fast

c)

The code will occupy less memory

d)

Programs can be written faster

44.

Which two statements are true of a compiler?

a)

Creates a final error report containing all errors

b)

Displays the error as soon as it is detected

c)

The program must be run every time it is used

d)

Produces an executable file

45.

A compiler translates the entire program at once

a)

True

b)

False

46.

Which of the following is not a feature of an Integrated Development Environment (IDE)?

a)

Editor

b)

Run-Time Environment

c)

Debugger

d)

Output Window

e)

Spell Check

47.

An IDE makes it easier for the programmer to w? and t? their code

give both words with a space in between (e.g. answer1 answer2)

(a)  

48.

If asked to give 2 features of an IDE, you would gain 2 marks for saying "auto-fill and bracket matching"

a)

True

b)

False

49.

Which of the following IDE features allows the user to write their code?

a)

Editor

b)

Output Window

c)

Debugger

d)

Breakpoints

50.

Which of the following IDE features informs the user of any mistakes they have made in their code?

a)

Editor

b)

Run-Time Environment

c)

Debugger

d)

Stepping

51.
What is the name of the variable?
a)
first_name
b)
Jeremy
c)
print
52.
What will this code display?
a)
Your name is first_name
b)
Your name is Jeremy
53.

What is the output of the following code?

a)

count

b)

0,1,2,3,4,5,6,7,8,9

54.

!= means 'does not equal'

a)

True

b)

False

55.
What is the technical term for an If Statement?
a)
Iteration
b)
Selection
56.

Which of the following is a subroutine not designed to do?

a)

Avoid the user needing to write the same instructions multiple times

b)

Allow multiple programmers to work on different elements of the same program

c)

Reduce errors by troubleshooting separate elements of code

d)

Make it easier for the computer to run

57.

What is the name of the subroutine?

a)

happyBirthday

b)

person

c)

def

58.

What is the name of the parameter?

a)

happyBirthday

b)

person

c)

def

59.

What is the name of the subroutine?

a)

addNumbers

b)

num1

c)

num2

d)

total

60.

num1 and num2 are the parameters

a)

True

b)

False

61.

Which subroutine will return a value back to the program?

a)

Procedure

b)

Function

62.

What is the index of the item bread in the list shoppinglist?

shoppinglist = ["milk", "eggs", "sugar", "bread", "cake"]

a)

4

b)

3

63.

What is the index of the item milk in the list shoppinglist?

shoppinglist = ["milk", "eggs", "sugar", "bread", "cake"]

a)

0

b)

1

64.

What would I need to type in for the program to display Correct?

a)

A

b)

B

c)

Neither

d)

Both

65.

Which response will be displayed?

a)

You are too young

b)

You are old enough

66.

Which command is used within a selection statement to give a default response?

(a)