Which of the following is an example of abstraction in programming?
- Including unnecessary details in the code
- Writing long and complicated code
- Using functions to hide complex implementation details
- Ignoring the overall structure of the program
Which sorting algorithm is also known as a "divide and conquer" sort?
- Merge sort
- Bubble sort
- Radix sort
- Heap sort
Which type of subprogram is shown below?
- Procedure
- Function
- Variable
- Constant
Which searching algorithm works by repeatedly dividing the search space in half?
- Linear search
- Jump search
- Binary search
- Insertion search
Which type of subprogram always returns a value?
- Procedure
- Function
- Variable
- Constant
Which of the following best defines an algorithm?
- A physical device used for computation
- A step-by-step procedure or set of instructions for solving a problem
- A high-level programming language
- A type of computer hardware
The London Underground map is a good example of…
- Abstraction
- Decomposition
- Pattern recognition
- Algorithm
Identifying similarities which help to identify and solve problems is known as…
- Abstraction
- Decomposition
- Pattern recognition
- Algorithm
A step-by-step solution to a problem is known as…
- Abstraction
- Decomposition
- Pattern recognition
- Algorithm
Which sorting algorithm works by repeatedly stepping through the list and comparing adjacent elements?
- Merge sort
- Bubble sort
- Radix sort
- Heap sort