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. /A bubble sort shortens each pass by one comparison, as in the lesson. What is the greatest number of comparisons it can make in all, for 6 items?
Computer ScienceHardHigh School (9–10)Algorithms, Programming and Logic › Algorithms and Problem-SolvingIGCSE
StemPy LabCreated by StemPy Lab

A bubble sort shortens each pass by one comparison, as in the lesson. What is the greatest number of comparisons it can make in all, for 666 items?

Log in to save
← All Quizzes
← An algorithm finds the lowest of a set of test marks, each from 0 to 100. Which starting value of Lowest always gives the right answer?A REPEAT loop asks for the number of a month until it is acceptable. Which condition, after UNTIL, accepts exactly the whole numbers 1 to 12? →
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. An algorithm finds the lowest of a set of test marks, each from 0 to 100. Which starting value of…Medium
  4. An algorithm totals five values and then outputs Total / 5. The values are 13, 7, 22, 9 and 14.…Medium
  5. Apply exactly one pass of an ascending bubble sort to the values 6, 2, 8 and 4, kept in that…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 →