wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Year 8 Review 2020-2021

Total questions: 87

Worksheet time: 44mins

Name
Class
Date
1.

What does the word 'variable' mean?

a)

box

b)

changeable

c)

movable

d)

random

2.

What does a 'syntax' error message tell you might be wrong with your code?

a)

I have typed something wrong or missed something out (e.g. commas, brackets, capital letters)

b)

I have too much or not enough space at the stat of the line.

c)

I have given a variable name incorrectly

d)

I have tried to use the wrong type of data

3.

What does a 'type' error message tell you might be wrong with your code?

a)

I have typed something wrong or missed something out (e.g. commas, brackets, capital letters)

b)

I have too much or not enough space at the stat of the line.

c)

I have given a variable name incorrectly

d)

I have tried to use the wrong type of data

4.

What does a 'name' error message tell you might be wrong with your code?

a)

I have typed something wrong or missed something out (e.g. commas, brackets, capital letters)

b)

I have too much or not enough space at the stat of the line.

c)

I have given a variable name incorrectly

d)

I have tried to use the wrong type of data

5.

What does a 'indentation' error message tell you might be wrong with your code?

a)

I have typed something wrong or missed something out (e.g. commas, brackets, capital letters)

b)

I have too much or not enough space at the stat of the line.

c)

I have given a variable name incorrectly

d)

I have tried to use the wrong type of data

6.

Look at this problem:


Write a program that asks the user to input their age, height and weight.


Your program should calculate the user's body mass index.


Age is one variable we would need to use. Tick all the options below that we would need as variables for this program

a)

shape

b)

height

c)

weight

d)

first name

e)

body mass index.

7.

Look at this problem:


Write a program that asks the user to input the base and height of a triangle.


Your program should calculate the triangle's area.


Tick all the options below that we would need as variables for this program

a)

triangle

b)

height

c)

shape

d)

base

e)

area

8.

True or False?


Computers are intelligent.

a)

True

b)

False

9.

True or False?


Computers work through a program one line of code at a time

a)

True

b)

False

10.

True or False?


Computers use + just for adding numbers

a)

True

b)

False

11.

True or False?


Computers use + for adding numbers or for joining text strings together

a)

True

b)

False

12.

True or False?


Computers use x for multiplying numbers

a)

True

b)

False

13.

True or False?


Computers use * for multiplying numbers

a)

True

b)

False

14.

Look at the following code


firstname=input("Enter your firstname)


This will give a syntax error because:

a)

there is a missing bracket

b)

ther is a missing speech mark

c)

it wont, it will work fine

d)

the variable name is wrong

e)

the command 'input' has been typed wrong

15.

Look at the following code


firstname=Input("Enter your firstname")


This will give a syntax error because:

a)

there is a missing bracket

b)

ther is a missing speech mark

c)

it wont, it will work fine

d)

the variable name is wrong

e)

the command 'input' has been typed wrong

16.

Look at the following code


firstname=Input("Enter your firstname")

print fistname


This will give a name error because:

a)

there is a missing bracket

b)

there is a missing speech mark

c)

it wont, it will work fine

d)

the variable name is wrong

e)

the command 'input' has been typed wrong

17.

Look at the following code


length=(int(input("Enter a number")

print ("Your number was: ") + length


This will give a syntax error because:

a)

there is a missing bracket

b)

you can't join (concatenate) a string (str) and integer (int)

c)

it wont, it will work fine

d)

the variable name is wrong

e)

the command 'input' has been typed wrong

18.

Look at the following code


while True()


This will give an error because:

a)

there is a missing bracket

b)

you can't join (concatenate) a string (str) and integer (int)

c)

it wont, it will work fine

d)

the variable name is wrong

e)

there should be a colon : after the word True()

19.

In binary which of these digits is the same as 'on'

a)

0

b)

1

c)

2

d)

3

20.

Whiich of these is not from a 2 bit instruction set

a)

01

b)

010

c)

00

d)

11

21.

Which of these is not from a 3 digit binary instruction set?

a)

001

b)

011

c)

111

d)

11

22.

Which of the following is the binary for 2?

a)

1

b)

11

c)

10

d)

100

23.

which of these is the binary for 18

a)

11000

b)

10010

c)

10101

d)

10001

24.

Whic of the following are Operating Sytems? You may tick more than one answer.

a)

iOS

b)

Windows 10

c)

Google

d)

Linux

25.

What does the operating system communicate with to pass instructions to the CPU, RAM and devices?

a)

Sergeant

b)

Colonel

c)

Major

d)

Kernel

26.

The M in RAM stands for:

a)

Multiply

b)

Machine

c)

Melons

d)

Memory

27.

The G in GUI stands for:

a)

Graphics

b)

Goats

c)

Grids

d)

Girls

28.

Which of the following are input devices? You may tick more than one answer.

a)

Keyboard

b)

Display Screen

c)

Headphones

d)

Microphone

e)

Mouse

29.

Which of the following are outputs? you may tick more than one answer.

a)

Camera

b)

Printer

c)

Mouse

d)

Display Screen

e)

Speakers

30.

Which of the following would you use to change the turtles direction in edublocks?

a)
b)
c)
d)
e)
31.

Which of the following would you use to change the turtles pen colour in edublocks?

a)
b)
c)
d)
e)
32.

Which of the following would you use to change the turtles shape colour in edublocks?

a)
b)
c)
d)
e)
33.

Which of the following would you use to initialise the turtle in edublocks?

a)
b)
c)
d)
e)
34.

Which of the following blocks would you use to make a program loop forever?

a)
b)
c)
35.

Which of the following allows the programmer to define a set of instructions to the computer?

a)
b)
c)
d)
36.

Which of the following would use the colour red in RGB format?

a)

0, 0, 0

b)

255,0,255

c)

255, 255, 255

d)

255, 0, 0

37.

Which of the following would use the colour blue in RGB format?

a)

0, 0, 0

b)

0, 0, 255

c)

255, 255, 255

d)

255, 0, 0

38.

Which of the following would use the colour black in RGB format?

a)

0, 0, 0

b)

0, 0, 255

c)

255, 255, 255

d)

255, 0, 0

39.

What shape will the following code draw?

a)

triangle

b)

square

c)

hexagon

d)

decagon

40.

Which of the following are carried out by the operating system?

a)

Hardware checks

b)

File System Management

c)

Device Checks

d)

User Interface

e)

All of the Above

41.

How many instructions can you have in a 2 bit instruction set?

a)

1

b)

2

c)

4

d)

8

42.

How many instructions can you have in a 1 bit instruction set?

a)

1

b)

2

c)

4

d)

8

43.

How many instructions can you have in a 3 bit instruction set?

a)

1

b)

2

c)

4

d)

8

44.

How many bits are the in 1 byte?

a)

1

b)

2

c)

4

d)

8

e)

16

45.

How many bits are the in 1 byte?

a)

1

b)

2

c)

4

d)

8

e)

16

46.

How many bits make a nibble?

a)

1

b)

2

c)

4

d)

8

e)

16

47.

How many bits is 3 bytes?

a)

8

b)

16

c)

24

d)

48

48.

A robot uses 120 instructions using a 2 bit instruction set. How many bytes of memory are needed to store the complete journey?

a)

20 bytes

b)

30 bytes

c)

40 bytes

d)

50 bytes

49.

A robot uses 120 instructions using a 3 bit instruction set. How many bytes of memory are needed to store the complete journey?

a)

45 bytes

b)

35 bytes

c)

40 bytes

d)

50 bytes

50.

Abstraction is about concentrating on the detail of a problem.

a)

True

b)

False

51.

Abstraction is about removing unwanted detail from a problem.

a)

True

b)

False

52.

Abstraction is about complex mathematical calculations

a)

True

b)

False

53.

Connect the abstraction with real life action


Travel

a)

bus, walk, train

b)

salary paid in, cheque paid in, cash paid in

c)

rent, shopping, insurance

54.

Connect the abstraction with real life action


Outgoings

a)

bus, walk, train

b)

salary paid in, cheque paid in, cash paid in

c)

rent, shopping, insurance

55.

Connect the abstraction with real life action


Income

a)

bus, walk, train

b)

salary paid in, cheque paid in, cash paid in

c)

rent, shopping, insurance

56.

Connect the abstraction with real life action


Income

a)

bus, walk, train

b)

salary paid in, cheque paid in, cash paid in

c)

rent, shopping, insurance

57.

Variables are:

a)

fixed values

b)

changeable values

c)

values that can change or stay the same

58.

Does the following show learned behaviour?


A computer saves a file to a disk

a)

Yes

b)

No

59.

Does the following show learned behaviour?


A website suggests purchases that you might like.

a)

Yes

b)

No

60.

Does the following show learned behaviour?


A robot lawnmower avoids flower beds

a)

Yes

b)

No

61.

Does the following show learned behaviour?


A spreadsheet calculates the total cost of items to be purchased

a)

Yes

b)

No

62.

Does the following show learned behaviour?


An aircraft's autopilot guides an aeroplane to land in fog.

a)

Yes

b)

No

63.

Does the following show learned behaviour?


A smart-phone can spell the unusual name of a friend.

a)

Yes

b)

No

64.

Does the following show learned behaviour?


A spreadsheet fills in a cell with the same word you entered earlier.

a)

Yes

b)

No

65.

Does the following show learned behaviour?


A computerised test asks follow-up questions based on what you got wrong.

a)

Yes

b)

No

66.

Does the following show learned behaviour?


Traffic lights change their phasing times according to the ammount of traffic

a)

Yes

b)

No

67.

Does the following show learned behaviour?


A washing machine runs a programme selected by the user.

a)

Yes

b)

No

68.
What does a searching algorithm do?
a)
Search through a set of data
b)
Save a set of data
c)
Help to organise data
69.
What would be needed if searching algorithms didn't exist?
a)
The data would need to be saved
b)
Each item of data would need to be looked at one by one, until the searched for data was found
c)
A new set of data to look at would be needed
70.
Which of these is a type of searching algorithm?
a)
Linear search
b)
Word search
c)
Search engine
71.
What does a linear search do?
a)
Looks at the first item of data, then each one in turn, until it finds the data item requested
b)
Organises the data into alphabetical order
c)
Splits the data until the requested data is found
72.
What is an advantage of a linear search?
a)
It is very quick
b)
It only works with ordered lists
c)
It is a simple algorithm
73.
Which of the following is NOT an advantage of a serial search?
a)
It can be used on any set of data regardless of type
b)
It is the quickest search to use
c)
It is a simple algorithm, so it is easy to write a computer program to carry it out
74.
What does a binary search do?
a)
Looks at the first item of data, then each one in turn, until it finds the data item requested
b)
Converts all the data into binary
c)
Takes the data and splits it in half repeatedly until it finds the data item requested
75.
Which search algorithm would be best to use with ordered data?
a)
A binary search
b)
Either binary search or a linear search
c)
A linear search
76.
What is an advantage of a binary search
a)
It's very quick
b)
It only works with ordered lists
c)
It is a simple algorithm
77.
What is the biggest disadvantage of a binary search?
a)
It is slow
b)
It can only be used if the data is sorted into an order
c)
It takes the data and keeps dividing it in half until it finds the item it is looking for
78.
What does a sorting algorithm do?
a)
Finds an item of data in a set of data
b)
Saves a set of data
c)
Puts a list of items into order
79.
Which of the following is not a sorting algorithm?
a)
Bubble Sort
b)
Long Sort
c)
Insertion Sort
80.
What does a bubble sort do?
a)
Sorts a list by comparing two items that are side by side, to see which is out of order
b)
Separates a list of data into different collections of data, before sorting and gathering back into a list
c)
Finds an item of data in a list
81.
How many passes will a bubble sort go through?
a)
Only one pass
b)
Two passes
c)
Several passe - until the data is fully ordered
82.
Why does a bubble sort do a final pass even when the data is in the correct order?
a)
To save the data
b)
It does not recognise that the data is in order until the final pass requires no changes
c)
It needs to do this to put the data back in to a list
83.
Which of the following is an advantage of a bubble sort?
a)
It is a very small and simple computer program
b)
It takes a very long time to run
c)
It is very quick
84.
Which of the following is NOT an advantage of a bubble sort?
a)
It is a very small and simple computer program
b)
There is only one task to perform
c)
It is very quick
85.
What does an insertion sort do?
a)
Separates a list of data into different collections of data which are sorted and gathered back into a list
b)
Goes through a list of data a number of times and compares two items that are side by side to each other to see which is out of order
c)
Goes through a list, comparing two items that are side by side, and continues to move one value until it is in the correct place.
86.
Which of the following is an advantage of a insertion sort when compared with a bubble sort?
a)
It is quicker than a bubble sort algorithm
b)
It is simpler than a bubble sort algorithm
c)
There is no advantage.
87.
How many passes will an insertion sort go through?
a)
Only one pass
b)
Two passes
c)
Several passes - until the data is fully ordered