wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Year 8 Michaelmas revision

Total questions: 26

Worksheet time: 27mins

Name
Class
Date
1.

Evaluate: NOT( Acute angles are more than 90 degrees )

a)

True

b)

False

c)

90

d)

45

2.

32 + 12 == 40 - 5

a)

True

b)

False

3.

32 + 12 != 40 - 5

a)

True

b)

False

4.

Jane is 7. She has blue eyes and brown hair.

Evaluate the following statement for Jane:


I am 7 OR ( I have blue eyes AND I have blonde hair )

a)

True

b)

False

5.

Jane is 7. She has blue eyes and brown hair.

Evaluate the following statement:


NOT ( I am 7 AND I have brown eyes )

a)

True

b)

False

6.

This diagram represents what logic gate?

a)

Q = A OR B

b)

Q = NOT(A OR B)

c)

Q = A AND B

d)

Q = A NOR B

7.

If A is ON and B is OFF. What will Q be?

a)

ON

b)

OFF

8.

What combination of the inputs A and B turn the light bulb OFF?

a)

When B is ON

b)

When A is ON

c)

When both A and B are both ON

d)

When both A and B are both OFF

9.

A student answers the following for

C = A AND (NOT B)

Which statement best describes their answer?

a)

They got it correct

b)

They incorrectly worked out the NOT B column

c)

They incorrectly worked out the C column

d)

The whole last row is incorrect

10.

Which of the following statements is NOT true when referring to this logic gate?

a)

It only outputs a 1 when the inputs are both 1

b)

The 2 inputs are on the left

c)

It is an OR gate

d)

The output is on the right

11.

What Boolean expression matches this logic circuit?

a)

A AND B OR NOT C

b)

NOT(A AND (B OR C))

c)

NOT(B AND C) OR A

d)

A OR B AND NOT (C)

12.

What Boolean expression matches this logic circuit?

a)

B AND NOT(A OR A)

b)

A OR B AND NOT B

c)

A OR NOT B AND C

d)

(A AND NOT B) OR B

13.

Which statement is incorrect?

a)

Lists can be stored in a variable

b)

Lists can store many items

c)

Lists can only store items of the same data type

d)

Lists are a convenient way of storing lots of similar or related data

14.

What will be printed?

a)

Carrots

b)

crackers

c)

Crackers

d)

carrots

15.

What will be the output to this program?

a)

6

Coal

b)

5

Crumble

c)

6

Crumble

d)

Coal

16.

What will the output be to this program?

a)

['Carrots', 'Crumble', 'Cabbage', 'Cake']

b)

['Carrots', 'Cabbage', 'Crumble', 'Coal']

c)

['Cake', 'Carrots', 'Crumble', 'Cabbage']

d)

['Cheese', 'Carrots', 'Crackers', 'Cabbage']

17.

What will be the output to this program?

a)

Carrots

b)

Cake

c)

Crackers

d)

Cheese

18.

What will the output from this program be?

a)

5.9

b)

9.7

c)

10.1

d)

10

19.

listName = ["Toby", "Peter", "Susan", "Sid", "Toby"]


Which of these statements is incorrect when referring to the list methods pop and remove?

a)

listName.remove("Toby")

Will remove ALL occurrences of "Toby" from the list called listName

b)

listName.pop()

Will remove the last item by default if you don't specify the index

c)

Remove means to remove by value. It removes the FIRST occurrence of the item provided. It can be used like this:

listName.remove("Toby")

d)

Pop means to remove by index. It can be used like this:

listName.pop(3)

20.

What will be the output to this program?

a)

10.1

b)

5.9

c)

13

d)

15.2

21.

How many errors are there in this code?

a)

7

b)

2

c)

3

d)

9

22.

If in-place selection sort is being used, what will the list contain after the next operation is carried out?

a)

2 3 9 10 Q K J

b)

2 3 9 10 K J Q

c)

2 3 9 K Q J 10

d)

Q K J 10 2 3 9

23.

If in-place insertion sort is being used, what will the list contain after the next operation is carried out?

a)

2 3 9 K J 10 Q

b)

2 3 Q 9 K J 10

c)

2 3 9 10 Q K J

d)

2 3 9 Q K J 10

24.

Efficiency of sorting algorithms does NOT relate to.... ?

a)

The number of elements in the list being sorted

b)

The time they take to sort (Time complexity)

c)

The memory space they use when sorting (Space complexity)

25.

To make a test between 2 sorting algorithms fair, you must ensure...

a)

You use only integers as sorting other data types can be tricky

b)

The computer being used is very powerful so it finishes nice and quickly

c)

You use a computer that does not have a screen

d)

They contain the same items each time and that the hardware being used is the same

26.

Why are there many types of sorting algorithm?

a)

Different algorithms are better suited to data that is arranged differently

b)

Because computer scientists like to have alternative ways to solve a problem

c)

To give the programmer variation in their day to day work

d)

Because sorting algorithms are hard to follow