MAKE IT YOURS

A world for every learner

Choose a grade to discover its colours and creative world.

Grade 10 Searching & Sorting Worksheet with Answers

Grade 10 (US) · Year 11 (UK) · Class 10 (India) · Computer Science

Unit 2: Algorithms & EfficiencySearching & Sorting

Counting the steps in linear and binary search and tracing bubble and selection sort passes. This free high school worksheet has 12 questions and a full answer key. Print it or save it as a PDF — every answer is checked by code, not guessed.

  • Answer keys checked by code
  • No ads, ever
  • No student accounts needed
  • Safety & privacy
Practice Sheetaethelsystems.com

Searching & Sorting

Grade 10 · Computer Science

Score___ / 12

Name

Class

Date

Learning goal: Searching & Sorting

Directions: Read each question carefully and write your answer on the line. Use the diagram to help you.

RememberSearch & sort

Linear searchcheck one by oneup to n checksBinary searchsorted list: check middle,throw away halfBubble sortswap neighbours thatare in the wrong orderSelection sortfind the smallest,swap it to the front
  1. 1

    Bubble sort (smallest to largest). Write the list after the first full pass: 15, 25, 28, 39, 37, 11

    150251282393374115index
  2. 2

    Linear search checks items one by one from the left. List: 33, 30, 28, 25, 35, 9, 8, 18, 17. How many items are checked to find 8?

    3303012822533549586187178index
  3. 3

    Binary search on the sorted list 2, 12, 15, 17, 19, 32, 36, 38, 39. Which number is checked first (the middle item)?

    20121152173194325366387398index
  4. 4

    Binary search on the sorted list 3, 5, 10, 15, 21, 27, 28, 34, 37. Which number is checked first (the middle item)?

    3051102153214275286347378index
  5. 5

    Bubble sort (smallest to largest). Write the list after the first full pass: 26, 14, 16, 31, 18, 25

    260141162313184255index
  6. 6

    Linear search checks items one by one from the left. List: 23, 32, 20, 13, 25, 11, 37, 15, 5. How many items are checked to find 37?

    23032120213325411537615758index
  7. 7

    Binary search on the sorted list 6, 12, 16, 20, 27, 34, 35, 38, 40. Which number is checked first (the middle item)?

    60121162203274345356387408index
  8. 8

    Bubble sort (smallest to largest). Write the list after the first full pass: 18, 39, 19, 14, 30, 21

    180391192143304215index
  9. 9

    Linear search checks items one by one from the left. List: 22, 28, 9, 7, 32, 4, 11, 2, 34. How many items are checked to find 2?

    22028192733244511627348index
  10. 10

    Binary search on the sorted list 3, 8, 17, 22, 24, 25, 27, 36, 39. Which number is checked first (the middle item)?

    3081172223244255276367398index
  11. 11

    Linear search checks items one by one from the left. List: 17, 37, 34, 8, 14, 3, 39, 10, 18. How many items are checked to find 18?

    1703713428314435396107188index
  12. 12

    Linear search checks items one by one from the left. List: 30, 7, 40, 26, 2, 20, 22, 13, 19. How many items are checked to find 22?

    3007140226324205226137198index

★ Challenge corner for fast finishers

A playlist app lets you switch each of 6 songs on or off. How many different playlists (including the empty one) are possible?

How did I do?

Teacher's comments

Free printable worksheets with answer keys · aethelsystems.com/worksheets/computer/10/search_sort

Answer key (click to show)
  1. 1.15, 25, 28, 37, 11, 39
  2. 2.7
  3. 3.19
  4. 4.21
  5. 5.14, 16, 26, 18, 25, 31
  6. 6.7
  7. 7.27
  8. 8.18, 19, 14, 30, 21, 39
  9. 9.8
  10. 10.24
  11. 11.9
  12. 12.7
  13. ★64 (challenge corner)

Need another Searching & Sorting worksheet?

Generate unlimited fresh versions at easy, medium or hard difficulty, each with its own answer key. Free during our launch — no card needed.

Create a free account

How to use this worksheet

  • Use it for revision before a test, as homework, or as a timed practice set.
  • Students can self-mark with the answer key and note which question types they got wrong.
  • Generate several versions of the same topic for spaced practice in the weeks before an exam.

Can't find what you need? Tell us which worksheet to make next.

Frequently asked questions

Does this Grade 10 Searching & Sorting worksheet come with answers?

Yes. The full answer key is on this page, and it prints on its own page after the questions. Every answer is calculated or checked by code rather than written by an AI model, so the key is always correct.

How do I print it or save it as a PDF?

Click "Download PDF" to save a ready-to-print PDF with the answer key on the last page, or click "Print" to send the worksheet and answer key straight to your printer.

Can I get a different Searching & Sorting worksheet?

Yes. Create a free account to generate as many fresh Grade 10 Searching & Sorting worksheets as you like, at easy, medium or hard difficulty, each with its own answer key.

Is this worksheet free?

Yes. This worksheet is free to print, and Practice Sheet is free to use during our launch with no card needed.