Cambridge International A Level · Computer Science (9618)

Algorithm Design and Problem-solving: Practice Questions

5 multiple-choice questions marked as you go, and 5 written questions with worked solutions. All on Algorithm Design and Problem-solving.

10 questions24 marksFree, no account
Question 1
1 mark

In the context of computational thinking, which process involves breaking a complex problem into smaller, more manageable sub-problems to simplify the development of a solution?

Question 2
1 mark

Which statement best describes the relationship between decomposition and stepwise refinement in problem-solving?

Question 3
1 mark

A developer is evaluating the efficiency of a procedure that processes a square matrix of size \( n \times n \). The procedure is divided into two sequential phases:

Phase 1: A nested loop structure iterates through all the lower triangular elements of the matrix (where the row index is greater than or equal to the column index) to perform a calculation on each element.
Phase 2: A separate loop runs \( n \) times, where each iteration performs a binary search on a sorted 1D array of size \( n \).

Which of the following correctly identifies the overall worst-case time complexity of the procedure in Big O notation?

Question 4
1 mark

Which of the following statements best describes the primary purpose of abstraction when designing a computational solution to a real-world problem?

Question 5
1 mark

A bubble sort algorithm is being used to sort the following array of integers in ascending order:

[15, 4, 10, 2, 7]

What will be the state of the array after the first complete pass is finished?

Question 6
2 marks

Identify the basic programming construct that allows an algorithm to follow different paths of execution based on the result of a condition, and name the pseudocode statement used for multi-way selection.

Write your answer out first, then check it against the worked solution.

Question 7
4 marks

Compare the best-case time complexity of a bubble sort algorithm with a linear search algorithm, using Big O notation, assuming the data is already sorted.

Write your answer out first, then check it against the worked solution.

Question 8
5 marks

Compare the time complexity of a linear search and a binary search using Big O notation, and state the essential requirement for a binary search to be performed on a dataset.

Write your answer out first, then check it against the worked solution.

Question 9
3 marks

A software developer is tasked with creating a new library management system. To manage the complexity, the developer uses various computational thinking techniques.

a) Define the term decomposition and explain how it helps the developer in this specific scenario.
b) Describe the process of stepwise refinement and state how it differs from decomposition.

Write your answer out first, then check it against the worked solution.

Question 10
5 marks

A 1D array DataList contains the values: [15, 9, 23, 2, 8].
a) Show the state of the array after the second complete pass of a Bubble Sort algorithm (ascending order).
b) Explain the term Stepwise Refinement and how it relates to the design of an algorithm.
c) State the time complexity of the bubble sort in the best-case scenario and explain why this occurs if an optimization flag is used.

Write your answer out first, then check it against the worked solution.

* The content provided by thinka is generated by AI and may not always be accurate or up-to-date. Please use it as a supplementary resource and verify with official materials.

You've seen the model answer. Now get yours marked.

This page can show you how a good answer looks. It cannot tell you what your answer was missing. thinka marks your written work against the real mark scheme in about 15 seconds.

Want more questions like these? Get a fresh set on this topic, graded as you go.

Practice More