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 benefit of breaking down a complex problem into smaller sub-problems during the decomposition process?
- It makes the problem more complicated
- It allows easier identification of irrelevant details
- It facilitates parallel processing and collaboration
- It increases the overall complexity of the problem
How does abstraction contribute to code maintenance and readability?
- It makes the code longer and more complex
- It introduces unnecessary details into the code
- It simplifies the code by hiding complex implementation details
- It limits the scalability of the code
What is meant by a "logic error"?
- Unexpected results are produced
- A mistake in the "grammar" of the program
- The program loops forever
- An attempt is made to divide by zero
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
In which scenario is binary search most efficient?
- Unsorted list
- Large sorted list
- Small dataset
- Randomly arranged list
What is meant by a "syntax error"?
- Unexpected results are produced
- A mistake in the "grammar" of the program
- The program loops forever
- An attempt is made to divide by zero
What is the primary purpose of a sorting algorithm?
- Searching for elements
- Generating random numbers
- Rearranging data into a specific order
- Creating new data
In a flowchart, what does this symbol represent?
- Terminator
- Process
- Decision
- Input or output
Breaking-down a problem into smaller parts to make it easier to solve is known as…
- Abstraction
- Decomposition
- Pattern recognition
- Algorithm