NEW
Font size
WorksheetsYear 8 Michaelmas revision
Total questions: 26
Worksheet time: 27mins
Evaluate: NOT( Acute angles are more than 90 degrees )
True
False
90
45
32 + 12 == 40 - 5
True
False
32 + 12 != 40 - 5
True
False
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 )
True
False
Jane is 7. She has blue eyes and brown hair.
Evaluate the following statement:
NOT ( I am 7 AND I have brown eyes )
True
False
This diagram represents what logic gate?
Q = A OR B
Q = NOT(A OR B)
Q = A AND B
Q = A NOR B
If A is ON and B is OFF. What will Q be?
ON
OFF
What combination of the inputs A and B turn the light bulb OFF?
When B is ON
When A is ON
When both A and B are both ON
When both A and B are both OFF
A student answers the following for
C = A AND (NOT B)
Which statement best describes their answer?
They got it correct
They incorrectly worked out the NOT B column
They incorrectly worked out the C column
The whole last row is incorrect
Which of the following statements is NOT true when referring to this logic gate?
It only outputs a 1 when the inputs are both 1
The 2 inputs are on the left
It is an OR gate
The output is on the right
What Boolean expression matches this logic circuit?
A AND B OR NOT C
NOT(A AND (B OR C))
NOT(B AND C) OR A
A OR B AND NOT (C)
What Boolean expression matches this logic circuit?
B AND NOT(A OR A)
A OR B AND NOT B
A OR NOT B AND C
(A AND NOT B) OR B
Which statement is incorrect?
Lists can be stored in a variable
Lists can store many items
Lists can only store items of the same data type
Lists are a convenient way of storing lots of similar or related data
What will be printed?
Carrots
crackers
Crackers
carrots
What will be the output to this program?
6
Coal
5
Crumble
6
Crumble
Coal
What will the output be to this program?
['Carrots', 'Crumble', 'Cabbage', 'Cake']
['Carrots', 'Cabbage', 'Crumble', 'Coal']
['Cake', 'Carrots', 'Crumble', 'Cabbage']
['Cheese', 'Carrots', 'Crackers', 'Cabbage']
What will be the output to this program?
Carrots
Cake
Crackers
Cheese
What will the output from this program be?
5.9
9.7
10.1
10
listName = ["Toby", "Peter", "Susan", "Sid", "Toby"]
Which of these statements is incorrect when referring to the list methods pop and remove?
listName.remove("Toby")
Will remove ALL occurrences of "Toby" from the list called listName
listName.pop()
Will remove the last item by default if you don't specify the index
Remove means to remove by value. It removes the FIRST occurrence of the item provided. It can be used like this:
listName.remove("Toby")
Pop means to remove by index. It can be used like this:
listName.pop(3)
What will be the output to this program?
10.1
5.9
13
15.2
How many errors are there in this code?
7
2
3
9
If in-place selection sort is being used, what will the list contain after the next operation is carried out?
2 3 9 10 Q K J
2 3 9 10 K J Q
2 3 9 K Q J 10
Q K J 10 2 3 9
If in-place insertion sort is being used, what will the list contain after the next operation is carried out?
2 3 9 K J 10 Q
2 3 Q 9 K J 10
2 3 9 10 Q K J
2 3 9 Q K J 10
Efficiency of sorting algorithms does NOT relate to.... ?
The number of elements in the list being sorted
The time they take to sort (Time complexity)
The memory space they use when sorting (Space complexity)
To make a test between 2 sorting algorithms fair, you must ensure...
You use only integers as sorting other data types can be tricky
The computer being used is very powerful so it finishes nice and quickly
You use a computer that does not have a screen
They contain the same items each time and that the hardware being used is the same
Why are there many types of sorting algorithm?
Different algorithms are better suited to data that is arranged differently
Because computer scientists like to have alternative ways to solve a problem
To give the programmer variation in their day to day work
Because sorting algorithms are hard to follow
