Cambridge International A Level · Computer Science (9618)

Algorithm Design and Problem-solving:练习题

5 道选择题即时批改,另有 5 道文字题附完整解题步骤,全部围绕「Algorithm Design and Problem-solving」。

10 道题目24 免费,无需注册
第 1 题
1

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?

第 2 题
1

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

第 3 题
1

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?

第 4 题
1

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

第 5 题
1

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?

第 6 题
2

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.

先自己写一遍答案,再对照解题步骤。

第 7 题
4

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.

先自己写一遍答案,再对照解题步骤。

第 8 题
5

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.

先自己写一遍答案,再对照解题步骤。

第 9 题
3

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.

先自己写一遍答案,再对照解题步骤。

第 10 题
5

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.

先自己写一遍答案,再对照解题步骤。

* thinka 提供的内容由 AI 生成,未必在任何情况下都完全准确或最新,请结合官方教材与教师指导使用。

你已看过标准答案。现在轮到你的答案被批改。

这一页能告诉你好答案是什么样子,却无法指出你的答案缺了什么。thinka 按真实评分标准批改你的文字答案,约 15 秒完成。

想多做几道同类题目?立即开始练习这个课题,边做边批改。

立即练习