What is the primary disadvantage of a bubble sort?
- It requires additional memory space
- It requires the list to be in order
- It can be inefficient on large datasets
- It cannot handle large data sets
What is the correct sequence for the middle row?
- 5, 6, 2, 9
- 6, 5, 9, 2
- 5, 6, 2, 9
- 6, 5, 2, 9
What is the primary advantage of binary search over linear search?
- Simplicity
- Suitable for unsorted data
- Requires less memory
- Faster on large lists
Which of the following is an example of abstraction in everyday life?
- Summarising the plot of a book
- Memorising every word in a song
- Examining an object under a microscope to see every detail
- Ignoring important details in a conversation
Which of the following is an essential characteristic of a good algorithm?
- Complexity
- Lengthiness
- Ambiguity
- Clarity and precision
Which term refers to the identification of similarities or recurring sequences within a set of data?
- Abstraction
- Decomposition
- Pattern Recognition
- Algorithm
What is the primary purpose of identifying patterns in data?
- To simplify data analysis
- To make the data more complicated
- To add complexity to algorithms
- To make algorithms less efficient
Why is decomposing a problem important in algorithmic problem-solving?
- It makes the problem more complex
- It allows for better understanding and management of the problem
- It is only applicable to small problems
- It is an unnecessary step in problem-solving
In the code below, what is X?
- A parameter
- A constant
- A procedure
- A function
Ignoring irrelevant detail to help us focus on a problem is known as…
- Abstraction
- Decomposition
- Pattern recognition
- Algorithm