Mathematics

Oxford Computing toolkit

Professor PiAlgebra12 cardsFree · no account needed

Answer in your head, then tap to check. Slide or use the buttons to grade.

MathematicsOxford Computing toolkit
1 / 12
Mathematics · Oxford Computing toolkitProfessor Pi
↔ Asked both waysAnswer in your head…A named store in a program that holds a value which can change as it runs
Tap to check

KS3-MATH-OCC-0001Front

Mathematics · Oxford Computing toolkitProfessor Pi

A variable

HintIn algebra the same idea wears a letter such as x; in code it wears a name such as score.

The whyIn maths a letter usually stands for one unknown number that never moves during the question. In code the same box is written to over and over: score = score + 1 means 'work out the right-hand side, then put the result back in the box'. Reading = as 'becomes' rather than 'equals' is the biggest single step from Year 7 algebra into programming, and the Blockly tasks in the younger age groups are built on it.

same next review — Easy spaces out faster after that

KS3-MATH-OCC-0001Back

Mathematics · Oxford Computing toolkitProfessor Pi
Answer in your head…A program tests whether a whole number is even by looking at what is left over after dividing it by 2. What is that leftover called?
Tap to check

KS3-MATH-OCC-0002Front

Mathematics · Oxford Computing toolkitProfessor Pi

The remainder

HintIt is the bit that will not fit into any whole group — three sweets shared between two children leaves one.

The whyEven means the leftover is 0, odd means it is 1. The test costs one step however huge the number, which is why so many coding tasks hide an odd-or-even question inside them.

same next review — Easy spaces out faster after that

KS3-MATH-OCC-0002Back

Mathematics · Oxford Computing toolkitProfessor Pi
Fill the gapAnswer in your head…When one loop sits inside another, the total number of inner steps is the outer count ____ by the inner count.
Tap to check

KS3-MATH-OCC-0003Front

Mathematics · Oxford Computing toolkitProfessor Pi

multiplied

HintThe two counts do not go together by addition — think of rows and columns in a rectangle of chairs.

The whyFive rows of four chairs is twenty chairs, not nine, and a loop inside a loop behaves the same way: an outer loop of 5 wrapping an inner loop of 4 performs 20 inner steps. This is why nesting makes a program slow so quickly — three nested loops over a hundred items each is a million steps, and a timed round will not wait for it.

same next review — Easy spaces out faster after that

KS3-MATH-OCC-0003Back

Mathematics · Oxford Computing toolkitProfessor Pi
↔ Asked both waysAnswer in your head…Repeatedly comparing neighbouring items and swapping any pair in the wrong order
Tap to check

KS3-MATH-OCC-0004Front

Mathematics · Oxford Computing toolkitProfessor Pi

A bubble sort

HintThe slowest of the classic ordering methods, and the first one most people are taught.

The whyIt makes pass after pass along the list, comparing item 1 with item 2, item 2 with item 3, and so on, swapping whenever a pair is the wrong way round; after each pass the largest remaining item has reached its place. Easy to write under pressure but slow — a hundred items can need thousands of comparisons. Every competition language already has a much faster built-in ordering method, and knowing when to reach for it is part of the skill.

same next review — Easy spaces out faster after that

KS3-MATH-OCC-0004Back

Mathematics · Oxford Computing toolkitProfessor Pi
Fill the gapAnswer in your head…A point on a screen grid is written as an ordered pair, and the ____ number is always the one read across.
Tap to check

KS3-MATH-OCC-0005Front

Mathematics · Oxford Computing toolkitProfessor Pi

first

HintThe across-then-up order is the same one you met for x and y; think of walking into a room before climbing the stairs.

The whyCoordinates are (across, up), so (3, 1) is three across and one up while (1, 3) is somewhere else entirely. Screen grids add one twist: many put (0, 0) at the top-left corner and count downwards, so a larger second number means lower down the screen. Check which convention a task uses before you move anything.

same next review — Easy spaces out faster after that

KS3-MATH-OCC-0005Back

Mathematics · Oxford Computing toolkitProfessor Pi
⌨ Type the answerAnswer in your head…Writing 5! is shorthand for 5 × 4 × 3 × 2 × 1. What is this operation called? (one word)

KS3-MATH-OCC-0006Front

Mathematics · Oxford Computing toolkitProfessor Pi

factorial

HintName the operation, not its value: a single word ending in -ial.

The why5! is 120, and it grows terrifyingly fast — 10! passes three million and 13! passes six billion. That is why a program that tries every possible order of a list is hopeless beyond about ten items, and why a task that looks like "try all the arrangements" almost always wants a cleverer idea instead.

same next review — Easy spaces out faster after that

KS3-MATH-OCC-0006Back

Mathematics · Oxford Computing toolkitProfessor Pi
⌨ Type the answerAnswer in your head…Computers group bits together into bytes. How many bits make one byte? (type the number only)

KS3-MATH-OCC-0007Front

Mathematics · Oxford Computing toolkitProfessor Pi

8

HintIt is a power of two, and it is how many switches an old-fashioned text character needed.

The whyA byte holds 2⁸ = 256 different patterns, enough for every letter, digit and punctuation mark in plain English text. Larger units keep doubling in powers of two, which is why memory sizes run 512, 1024, 2048 rather than in round hundreds.

same next review — Easy spaces out faster after that

KS3-MATH-OCC-0007Back

Mathematics · Oxford Computing toolkitProfessor Pi
Answer in your head…A task asks for the best of an enormous number of options and the clock is running. What is the name for simply trying every option in turn?
Tap to check

KS3-MATH-OCC-0008Front

Mathematics · Oxford Computing toolkitProfessor Pi

A brute-force search

HintTwo words: no cleverness at all, just raw effort until something works.

The whyThis approach is honest and always right, which makes it a fine first answer — but only when the number of options is small. Ten items can be arranged in 3,628,800 ways and a computer will chew through that happily; twenty items has more arrangements than a person could count in a lifetime. The skill is estimating the size of the job before writing it, then looking for a rule that skips most of it.

same next review — Easy spaces out faster after that

KS3-MATH-OCC-0008Back

Mathematics · Oxford Computing toolkitProfessor Pi
Fill the gapsAnswer in your head…Everyday arithmetic is written in base ____; a computer stores everything in base ____; programmers shorten long rows of bits using base ____.
Tap to check

KS3-MATH-OCC-0009Front

Mathematics · Oxford Computing toolkitProfessor Pi

ten; two; sixteen

HintFingers, then switches, then a short-hand that squeezes long rows of switches into far fewer symbols.

The whyBase ten uses the digits 0–9 because we have ten fingers. Base two uses 0 and 1 because a switch is on or off. The third — hexadecimal — adds A to F so that a group of four bits becomes one symbol, which is why a colour on a web page is written like #FF8800. All three are the same numbers wearing different clothes.

same next review — Easy spaces out faster after that

KS3-MATH-OCC-0009Back

Mathematics · Oxford Computing toolkitProfessor Pi
Answer in your head…A loop meant to run once for each of ten items runs eleven times instead. What is the usual name for this classic slip?
Tap to check

KS3-MATH-OCC-0010Front

Mathematics · Oxford Computing toolkitProfessor Pi

An off-by-one error

HintThink of the posts along a fence: there is always one more post than there are panels.

The whyComputers usually number from 0 and people from 1, and the gap between those two habits is where this bug lives. Ask two questions before running any loop: does it start at 0 or at 1, and does it stop at the last value or just before it? Writing out the first two and last two steps by hand catches nearly every one.

same next review — Easy spaces out faster after that

KS3-MATH-OCC-0010Back

Mathematics · Oxford Computing toolkitProfessor Pi
Answer in your head…A student cannot simply sign up for the Oxford University Computing Challenge. What earns them a place?
Tap to check

KS3-MATH-OCC-0011Front

Mathematics · Oxford Computing toolkitProfessor Pi

A top Bebras result

HintIt is decided by how you did in the autumn computational-thinking challenge, not by applying.

The whyThe Oxford University Computing Challenge is run by the Raspberry Pi Foundation in partnership with the University of Oxford, and invitations go to roughly the top tenth of UK Bebras entrants. Bebras therefore does double duty: worth entering for its own sake, and the only door through to this. There are four age groups spanning ages 10 to 18, and everything is done online in school under a teacher's supervision, with answers marked automatically.

same next review — Easy spaces out faster after that

KS3-MATH-OCC-0011Back

Mathematics · Oxford Computing toolkitProfessor Pi
Answer in your head…Bebras puzzles need no programming at all. What does the Oxford University Computing Challenge ask you to do on top of the thinking?
Tap to check

KS3-MATH-OCC-0012Front

Mathematics · Oxford Computing toolkitProfessor Pi

Write working code

HintBebras asks what a set of steps would produce; here you must build the steps and let a machine run them.

The whyYou do not describe a method here, you implement it, and it is tested automatically — so a nearly-right idea scores nothing. The two younger age groups work in Blockly, a drag-together block language, while the older groups may use a text language such as Python. Turning a Bebras answer into a small working program is the most direct preparation there is.

same next review — Easy spaces out faster after that

KS3-MATH-OCC-0012Back

Oxford Computing toolkit

12 cards

0Got it
0Tricky
12Skipped
Adopt into my skyNo account yet? See plans

Keep what you learn

Here, nothing is saved. In your child’s own sky every card is scheduled — it comes back just before they’d forget it — and the professor who wrote it is one tap away.