HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Quizzes
  2. /The diagram shows the array Data with the values 14, 9, 23, 9, 31, 6, 18, 9 at the indexes 1 to 8. A linear search starts at index 1 and stops at the first 9 it finds. How many comparisons does it make?
Computer ScienceMediumHigh School (9–10)Algorithms, Programming and Logic › Algorithms and Problem-SolvingIGCSE
StemPy LabCreated by StemPy Lab

The diagram shows the array Data with the values 14,9,23,9,31,6,18,914, 9, 23, 9, 31, 6, 18, 914,9,23,9,31,6,18,9 at the indexes 111 to 888. A linear search starts at index 111 and stops at the first 999 it finds. How many comparisons does it make?

Log in to save
← All Quizzes
← A user types a new email address twice, and the computer checks that the two are the same. What is this?Apply exactly one pass of an ascending bubble sort to the values 6, 2, 8 and 4, kept in that order. Which arrangement results? →
More onAlgorithms, Programming and Logic › Algorithms and Problem-Solving

Discussion (0)

Log in to join the discussion.

Loading…

More questions on this topic

  1. A membership number begins 6, 0, 4, 9. Its final digit is chosen so that the first digit, plus…Hard
  2. A REPEAT loop asks for the number of a month until it is acceptable. Which condition, after UNTIL…Hard
  3. A bubble sort shortens each pass by one comparison, as in the lesson. What is the greatest number…Hard
  4. An algorithm finds the lowest of a set of test marks, each from 0 to 100. Which starting value of…Medium
  5. An algorithm totals five values and then outputs Total / 5. The values are 13, 7, 22, 9 and 14.…Medium
All questions on this topic →

Problems on this topic

  1. This is the kind of long scenario question that ends Paper 2…Hard
  2. A delivery company adds a check digit to each parcel number…Medium
  3. Name the check in each case. Say whether it is validation or verification…Easy
  4. A bubble sort is changed so that it sorts in descending order: the comparison becomes IF…Hard
All problems on this topic →