Sorting Algorithms & BBC Micro
- 35Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
35 questions
- 1When a sorting algorithm swaps a pair of elements, it plays a sound, and each time it compares elements, it plays a_____.
Hint
Think about what kind of auditory feedback is given when elements are compared.
Answer
noise
- 2The BBC commissioned a British company called Acorn to make the BBC micro computer to introduce people to computers and_____.
Hint
The project aimed to introduce people to both hardware and a specific skill set.
Answer
programming
- 3The Acorn A5000, which is a descendant of the BBC micro, features an_____chip.
Hint
Consider the type of processor architecture mentioned for the A5000.
Answer
ARM
- 4The Acorn A5000 has a BBC_____interpreter built into it.
Hint
Think about the programming language interpreter commonly associated with Acorn computers.
Answer
BASIC
- 5Similar to the BBC micro, the operating system of the Acorn A5000 is stored in_____.
Hint
Consider where the core operating system files are located for quick boot-up.
Answer
ROM
- 6Unlike the BBC micro, the Acorn A5000 boots up into a_____.
Hint
Consider the visual interface that allows interaction with a mouse and clickable elements.
Answer
GUI
- 7On the Acorn A5000, the clickable bar at the bottom of the screen is called the icon_____.
Hint
This interface element contains icons for accessing different functions.
Answer
bar
- 8In the context of the Acorn operating system, 'apps' is simply short for_____.
Hint
Think about the full word that 'apps' abbreviates.
Answer
applications
- 9A C++ program visualizing sorting algorithms would play a certain_____depending on the value of the element being processed.
Hint
Think about the characteristic of sound that changes based on the element's value.
Answer
pitch
- 10A_____is a collection of code written by other people that performs a certain task.
Hint
This term refers to pre-written modules of code that can be incorporated into new programs.
Answer
library
- 11In the triangle drawing program,_____
MODE 27sets the screen resolution and available.Hint
Besides resolution, what other visual characteristic does
MODEoften control?Answer
colors
- 12The_____
REPEAT UNTIL FALSEblock in BBC BASIC creates an infinite loop becauseFALSEnever evaluates to.Hint
Consider the condition that would normally terminate a
REPEAT UNTILloop.Answer
TRUE
- 13In the BBC BASIC program, the random number for color is scaled to be in the range 0 to 255 for the_____value.
Hint
This value determines how high or low a sound will be.
Answer
pitch
- 14A value of 0 for pitch represents the_____pitch the system can produce.
Hint
What end of the spectrum does zero usually represent in a range of values?
Answer
lowest
- 15The_____
PLOTline in the BBC BASIC program is responsible for drawing a.Hint
Recall the specific geometric shape that was drawn on the screen.
Answer
triangle
- 16To slow down the BBC BASIC program, a line can be commented out using `_____`.
Hint
This keyword is commonly used in BASIC for adding non-executable comments.
Answer
REM
- 17In the game 'Dr Audio', the pitch of the tone varies according to how far your guess is from the correct_____.
Hint
The game involves guessing a specific numerical value.
Answer
number
- 18The_____
SOUNDcommand in BBC BASIC takes four different.Hint
Think about the number of inputs or arguments required by the command.
Answer
parameters
- 19The first parameter of the_____
SOUNDcommand specifies theyou want to play on.Hint
This determines which audio output stream or voice is used.
Answer
channel
- 20For the_____
SOUNDcommand, a volume of -15 is the loudest, while a volume ofis the quietest.Hint
Consider the opposite end of the volume spectrum within the specified range.
Answer
0
- 21The_____
ABS a - bpart of theSOUNDcommand calculates thevalue of the difference between two numbers.Hint
This mathematical operation ensures a positive result regardless of the order of subtraction.
Answer
absolute
- 22The duration of the note in the_____
SOUNDcommand is measured in.Hint
Think about the unit of time used for short durations, often related to hundredths of a second.
Answer
centiseconds
- 23With bubble sort, elements are compared and kept_____if they are bigger than the ones in front of them until they reach the end.
Hint
Consider the primary action performed on out-of-order elements in bubble sort.
Answer
swapping
- 24In the bubble sort visualization,_____elements are considered unsorted.
Hint
Think about the color designated for elements that are still out of order.
Answer
red
- 25For bubble sort, if the input size is doubled, the sorting time should take_____times as long because it runs with the square of the input size.
Hint
Consider the relationship between doubling the input and squaring the effect.
Answer
four
- 26Quick sort works by partitioning the list by picking an element called a_____and placing smaller elements on one side and larger on the other.
Hint
This chosen element acts as a reference point for partitioning the list.
Answer
pivot
- 27If you want to do proper speed tests for sorting algorithms, you need to turn off the_____because they slow it down a lot.
Hint
Visual representations often add computational overhead, affecting performance benchmarks.
Answer
graphics
- 28Selection sort goes through the unsorted list, finds the lowest element, and places it into the_____list.
Hint
This algorithm incrementally builds up the final ordered list.
Answer
sorted
- 29Selection sort has the same time complexity as bubble sort, which is_____squared.
Hint
Think about the notation used to describe quadratic time complexity.
Answer
N
- 30Selection sort performs fewer_____compared to bubble sort, doing at most one per element.
Hint
This specific operation is minimized in selection sort compared to bubble sort.
Answer
swaps
- 31Quick sort and Heap Sort both run in_____log N time complexity.
Hint
This common efficiency rating for sorting algorithms is significantly faster than N squared.
Answer
N
- 32Heap Sort uses a data structure called a_____.
Hint
This is a specific type of tree-based data structure that maintains a particular ordering property.
Answer
heap
- 33A heap data structure is represented by a binary tree where every element has children who are_____than it.
Hint
Consider the ordering property that defines a max-heap (where the parent is larger than its children).
Answer
smaller
- 34In Heap Sort, the largest element is always at position_____during the heap building phase.
Hint
Think about the common index for the root of an array-represented binary tree.
Answer
zero
- 35The 'heap' data structure is different from the 'heap' that refers to an area of_____memory.
Hint
This refers to a region of memory used for dynamic allocation, distinct from the stack.
Answer
program

Ask anything
We've read this whole study set, so questions about it get the best answers.