MAKE IT YOURS

A world for every learner

Choose a grade to discover its colours and creative world.

Grade 11 Searching & Sorting Worksheet with Answers

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

Unit 3: AlgorithmsClassic AlgorithmsCSTA 3B-AP-10

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 11 · Computer Science

Score___ / 12

Name

Class

Date

Learning goal: Classic Algorithms · CSTA 3B-AP-10

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

    Binary search on the sorted list 5, 7, 9, 10, 17, 24, 28, 31, 34. Which number is checked first (the middle item)?

    507192103174245286317348index
  2. 2

    Bubble sort (smallest to largest). Write the list after the first full pass: 26, 2, 27, 20, 9, 17

    2602127220394175index
  3. 3

    Bubble sort (smallest to largest). Write the list after the first full pass: 25, 9, 5, 28, 24, 29

    2509152283244295index
  4. 4

    Binary search on the sorted list 2, 4, 8, 11, 13, 18, 21, 23, 26. Which number is checked first (the middle item)?

    204182113134185216237268index
  5. 5

    Bubble sort (smallest to largest). Write the list after the first full pass: 40, 26, 2, 34, 27, 31

    40026122343274315index
  6. 6

    Binary search on the sorted list 2, 5, 6, 7, 11, 24, 31, 35, 37. Which number is checked first (the middle item)?

    20516273114245316357378index
  7. 7

    Linear search checks items one by one from the left. List: 40, 25, 16, 28, 37, 38, 24, 39, 23. How many items are checked to find 24?

    400251162283374385246397238index
  8. 8

    Linear search checks items one by one from the left. List: 26, 23, 39, 41, 38, 19, 36, 32, 20. How many items are checked to find 19?

    260231392413384195366327208index
  9. 9

    Binary search on the sorted list 5, 13, 18, 23, 27, 28, 29, 31, 35. Which number is checked first (the middle item)?

    50131182233274285296317358index
  10. 10

    Binary search on the sorted list 7, 8, 15, 16, 19, 20, 26, 31, 32. Which number is checked first (the middle item)?

    7081152163194205266317328index
  11. 11

    Bubble sort (smallest to largest). Write the list after the first full pass: 32, 18, 30, 36, 22, 10

    320181302363224105index
  12. 12

    Linear search checks items one by one from the left. List: 11, 18, 28, 9, 6, 23, 24, 21, 29. How many items are checked to find 23?

    1101812829364235246217298index

★ Challenge corner for fast finishers

In a list of every 3-bit pattern, how many patterns have exactly one 1?

421

How did I do?

Teacher's comments

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

Answer key (click to show)
  1. 1.17
  2. 2.2, 26, 20, 9, 17, 27
  3. 3.9, 5, 25, 24, 28, 29
  4. 4.13
  5. 5.26, 2, 34, 27, 31, 40
  6. 6.11
  7. 7.7
  8. 8.6
  9. 9.27
  10. 10.19
  11. 11.18, 30, 32, 22, 10, 36
  12. 12.6
  13. ★3 (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 11 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 11 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.