Data, searching and networks: 11+ computing lesson and practice questions
A 5-minute video lesson, the method for database searches and network routes, the mistakes children make most, and 10 practice questions with worked answers.
Wider curriculumComputingYears 5 and 6Free, no sign-up
To answer a database or search question, check every record or page against each part of the search:
AND keeps only the ones that match every part, and OR keeps any that match at least one part, counting each
one once. To find the shortest route in a network, count the links (the lines) a message crosses, and never
use a broken link.
For example, the search Colour = red AND Size = small finds only things that are both red and small, while
Colour = red OR Size = small finds everything that is red, small or both.
Video lesson: data, searching and networks
5 minutes 8 seconds. Captions are shown in the video, and the full transcript is below.Read the video transcript
Hi there! Today we're learning to search data and follow networks.
Which bird matches the search Visits more than 6 AND Food = seeds? Zoe says the wren, but more than 6 leaves out 6, so the wren gets a cross. AND means a tick in both columns. So the answer is the robin. For a how many question with AND, count the rows with two ticks.
How many birds match the search Food = nuts OR Visits less than 4? OR means a tick in either column. The sparrow has two ticks, but count it once. So the answer is 5. Adding 3 and 3 counts the sparrow twice.
This tool shows a page only if it has every word you type: how many pages does the search sand crab waves show? Page 1 has no waves, page 2 has no sand; only page 3 has all three. So the answer is 1.
Which search shows page 1 and no other page? Every option shows page 1, but page 2 also shows options A and C, and page 3 options C and D. So the answer is option B, sand shells.
Here, OR shows every page with either word: how many pages does sand OR shells show? Page 1 has both but is shown once; pages 2 and 3 have one each. So the answer is 3.
In a network, links are the lines, and hubs, the boxes, pass messages on. What is the fewest number of links from the Cinema to the Dentist? Count the links, not the places: Cinema to K, then K to the Dentist. So the answer is 2.
Now the link between K and the Dentist is broken: what is now the fewest number of links? A broken link can't be used: Cinema to G, G to H, H to J, J to the Dentist. So the answer is 4. A break can make a route longer, keep it the same if another shortest route avoids it, or leave no route.
Which place must every shortest route from the Harbour to the Chemist pass through? The shortest routes, through L and through E, both pass M, in 3 links. So the answer is option C, Hub M. Hub L is on only one of them; Hubs N and F are on a longer route.
Your turn: the link between J and K is broken. What is now the fewest number of links from the Church to the Ice Rink? Pause the video and have a go. After the break, the Church can reach only G, H and J. So the answer is option D: the message cannot get there. Option A ignores the break, option B stops at it, and option C counts places.
Let's review: AND needs a tick in both columns; OR, a tick in either, counted once. More than and less than leave out the number itself. In a network, count the links, and never use a broken one. Well done! Now try some questions to show what you know.
The method in five steps
Find the joining word. AND means every part of the search must match. A search tool that shows a page only if it has every word you type works like AND. OR means at least one part must match.
Check every row against each part. Give each part a tick or a cross. "More than" and "less than" leave out the number itself: more than 9 does not include 9.
Keep and count. With AND, keep only the rows with a tick for every part. With OR, keep every row with at least one tick, and count each row once, even if it has two ticks.
In a network, count the links. Links are the lines, and hubs are the boxes that pass messages on. Count the lines a message crosses, not the places it visits, and try every route to find the fewest.
Cross out broken links first. Then look for a route that still joins up. It may be the same length, it may be longer, or there may be no route at all, and then the message cannot get there.
Two other kinds of question come up. "Which search shows this page and no other page?": test each
option in turn; the right search finds that page and is missing from every other page. "Which place must
every shortest route pass through?": write down all the shortest routes first, then find the place that is
on every one of them. A place that is only on a longer route does not count.
Real networks work in a similar way. The internet is a huge network made of many smaller networks joined
together. A message travels from one device to another through equipment such as routers, which pass it on,
a bit like the hubs in these diagrams. There is usually more than one route, so a message can often go another
way if one link stops working.
Worked examples
Example 1: searching a table with AND and OR
A school keeps a database of its lost property box.
coat, red, in the box for 3 days
hat, blue, 9 days
glove, red, 12 days
scarf, green, 5 days
jumper, blue, 2 days
water bottle, red, 9 days
Search 1: Colour = red AND Days more than 9.
Colour = red: the coat, the glove and the water bottle.
Of those, Days more than 9: only the glove (12). The water bottle has 9 days, and more than 9 leaves out 9.
So 1 item matches: the glove.
Search 2: Colour = blue OR Days more than 8.
Colour = blue: the hat and the jumper. That is 2 items.
Days more than 8: the hat (9), the glove (12) and the water bottle (9). That is 3 items.
The hat is on both lists, so count it once: hat, jumper, glove and water bottle make 4 items, not 2 + 3 = 5.
Example 2: choosing search words
A search tool shows a page only if the page has every word you type. Four pages have these words.
Page 1: train, ticket, platform
Page 2: bus, ticket, timetable
Page 3: train, timetable, platform
Page 4: bus, platform, driver
The search train platform: "train" is on pages 1 and 3, and "platform" is on pages 1, 3 and 4. Pages 1 and 3 have both, so it shows 2 pages.
To find page 3 on its own, try train timetable: "train" is on pages 1 and 3, and "timetable" is on pages 2 and 3. Only page 3 has both.
With OR instead, ticket OR driver shows pages 1, 2 and 4: 3 pages.
Example 3: the fewest links, then a broken link
A network has these links: Home to hub A, Home to hub B, A to C, B to C, C to the Bookshop, B to D, D to E, and E to the Bookshop.
Home, A, C, Bookshop crosses 3 links. Home, B, C, Bookshop also crosses 3 links. Home, B, D, E, Bookshop crosses 4 links.
So the fewest is 3 links, and both shortest routes pass through hub C.
Now the link from C to the Bookshop breaks. Both 3-link routes used it, so neither works now.
Home, B, D, E, Bookshop still joins up, so the fewest is now 4 links.
Common mistakes
Counting places instead of links. Each link joins two places, so a route always has one link fewer than it has places. Count the lines, not the boxes.
Counting a row twice with OR. Adding the two lists together counts any row that matches both parts twice.
Reading "more than" as "at least". More than 6 leaves out 6, and less than 6 leaves out 6 too.
Checking only one part of an AND search. A row, or a page in a word search, must match every part, not just the first one.
Using a broken link, or giving up at it. A broken link cannot be used, but a longer route round may still join up. The message cannot get there only if no route works.
Picking a place that is on just one route. For "must pass through", the place has to be on every shortest route, not on one of them or on a longer one.
10 practice questions with answers
Tap an answer to check it, or open the worked answer. The questions start simple and finish at the level of a harder 11+ question.
1.The diagram shows a small network. Each line is a link. What is the fewest number of links a message must cross to get from the Bakery to the Shop?
1
2
3
4
Show the answer
2. The Bakery is joined to R, and R is joined to the Shop. Bakery to R, then R to the Shop, is 2 links. (3 is the number of places on that route, not the number of links.)
2.A class keeps a database of its pets. Which pet matches the search Animal = guinea pig AND Legs = 4?
Nibbles
Shelly
Whiskers
Coco
Show the answer
Coco. AND means both parts must match. Coco is the only guinea pig, and Coco has 4 legs. Nibbles, Shelly and Whiskers have 4 legs too, but none of them is a guinea pig.
3.A school website's search tool shows a page only if the page has EVERY word you type. Which search shows page 1 and no other page?
factory milk
milk
milk bar
factory bar
Show the answer
milk bar. "milk" is on pages 1, 2, 4 and 5, and "bar" is on pages 1, 3 and 6. Only page 1 has both words. "factory milk" also shows pages 2 and 4, "milk" on its own shows 4 pages, and "factory bar" also shows pages 3 and 6.
4.A school kitchen keeps a database of lunch orders. Use the database. How many orders match the search Year more than 4 AND Main = curry?
3
2
6
5
Show the answer
2. Three orders are curry: Ezra, Ben and Hope. Ezra is in Year 4, and more than 4 leaves out 4, so Ezra does not match. Ben (Year 5) and Hope (Year 6) match both parts. (3 is the answer if you let Year 4 in; 5 counts every order from Year 5 or 6 without checking the main.)
5.In this search tool, typing OR between two words shows every page that has either word. How many pages does barn OR feathers show?
2
5
1
4
Show the answer
4. "barn" is on pages 3 and 4, and "feathers" is on pages 1, 2 and 3. Pages 1, 2, 3 and 4 each have at least one of the words. Page 3 has both, but it is shown once. (5 comes from adding 2 + 3, which counts page 3 twice.)
6.The link between R and V is broken. Messages can travel by any route that still joins up. What is now the fewest number of links from the Garage to the Office?
6
The message cannot get there
3
5
Show the answer
5. Before the break, Garage to R, R to V, V to the Office was 3 links, but that route uses the broken link. The route that still joins up is Garage to R, R to Z, Z to P, P to V, V to the Office: 5 links. (3 ignores the break, and "cannot get there" stops at it.)
7.A class records the minibeasts it found in the school garden. Use the database. How many minibeasts match the search Wings = no OR Legs more than 7?
7
6
4
2
Show the answer
4. Wings = no: the slug, the spider, the snail and the woodlouse. Legs more than 7: the spider (8) and the woodlouse (14), which are already on the first list. Counting each once gives 4. (6 adds 4 + 2 and counts the spider and the woodlouse twice.)
8.A school website's search tool shows a page only if the page has EVERY word you type. How many pages does the search bridge delta mouth show?
3
4
1
9
Show the answer
1. "bridge" is on pages 1, 3 and 6. "delta" is on pages 1, 4 and 6. "mouth" is on pages 3, 4 and 6. Only page 6 has all three words, so the search shows 1 page. (3 counts every page with "bridge" and forgets the other two words.)
9.A message goes from the Bakery to the Clinic by a route with the fewest links. Which place must every one of those shortest routes pass through?
Hub S
Hub P
Hub W
Hub Y
Show the answer
Hub S. The shortest routes are Bakery, S, U, Clinic and Bakery, S, V, Clinic, each 3 links, and both pass through S. Hub W is only on a 4-link route (Bakery, W, S, U, Clinic), and routes through P and Y are longer still.
10.The link between the Library and Z is broken. Messages can travel by any route that still joins up. What is now the fewest number of links from the School to the Library?
5
4
The message cannot get there
6
Show the answer
The message cannot get there. The Library has only one link, the one to Z, and that link is broken. Every route to the Library would need it, so no route joins up. (5 was the fewest before the break: School, U, Q, X, Z, Library.)
Want more data and network practice?
Inside ElevenReady your child gets more computing questions at the right level, a short lesson
before each new skill, and a parent dashboard that shows which skills are secure and which need work.
Start with 30 days free. No card needed.
Schools whose 11+ includes wider-curriculum questions
Wider-curriculum questions, which can draw on any Key Stage 2 subject, are part of the FSCE test used by the
Gloucestershire grammar schools below. The questions on this page are practice for that breadth. GL-style tests
do not include wider-curriculum questions. The schools, with the subjects our school directory lists:
Sir Thomas Rich's SchoolGloucester. FSCE: English, Maths and questions across the wider curriculum
Denmark Road High SchoolGloucester. FSCE: English, Maths and questions across the wider curriculum
Ribston Hall High SchoolGloucester. FSCE: English, Maths and questions across the wider curriculum
Marling SchoolStroud. FSCE: English, Maths and questions across the wider curriculum
Stroud High SchoolStroud. FSCE: English, Maths and questions across the wider curriculum
The Trafford grammar schools move from GL to FSCE for 2028 entry; check each school's admissions page for
whether its papers include wider-curriculum questions.
Subjects taken from our school directory in November 2026. Exam arrangements change, so
always check the school's own admissions page for the year your child applies.
Questions parents ask
What is the difference between AND and OR in a search?
AND makes a search narrower: a record has to match every part, so adding another part can only keep the same records or fewer. OR makes a search wider: a record matches if any part is true. With OR, a record that matches both parts is still counted once, so do not just add the two counts together.
How do you find the shortest route in a network?
Start at the first computer and try each route, counting the links (the lines), not the places. Leave out any broken link. The shortest route is the one with the fewest links, and there can be more than one shortest route. If every route needs a broken link, the message cannot get there.
What do children need to know about staying safe online?
Keep personal information private, such as your full name, address, school, phone number and passwords. Remember that not everything online is true. Never arrange to meet someone you only know online, and tell a trusted adult straight away if anything online worries or upsets you. Using technology safely and knowing how to report worries is part of Key Stage 2 computing in England.
Is computing part of the 11+?
Not as a subject of its own. The FSCE test used by some Gloucestershire grammar schools includes wider-curriculum questions, which can draw on any Key Stage 2 subject, so practising computing helps with that breadth. GL-style tests of English, maths and reasoning do not include wider-curriculum questions.