IB Diploma Programme (DP) - SL & HL · Computer Science

界定問題與成功準則:練習題

5 條多項選擇題即時批改,另有 5 條文字題附完整解題步驟,全部圍繞「界定問題與成功準則」。

10 條題目25 免費,無需登記
第 1 題
1

Which of the following describes the process of pattern recognition in computational thinking?

第 2 題
1

What is the main purpose of abstraction in computational thinking?

第 3 題
1

Consider the following logical expression: \( A \text{ AND } (\text{NOT } B \text{ OR } C) \).

If the Boolean variables are assigned as \( A = \text{true} \), \( B = \text{true} \), and \( C = \text{false} \), what is the final Boolean result of the expression?

第 4 題
1

In the context of computational thinking and algorithm design, which of the following is a mandatory pre-condition for performing a binary search on a one-dimensional array?

第 5 題
1

In a Binary Search Tree (BST), the following keys are inserted into an empty tree in the order: 45, 20, 60, 10, 30, 50, 70. Which node is the immediate predecessor (the value immediately before in a sorted sequence) of the root node \( 45 \) when performing an in-order traversal?

第 6 題
2

Identify and briefly define the component of computational thinking that involves identifying similarities or shared characteristics between different problems.

先自己寫一次答案,再對照解題步驟。

第 7 題
4

Explain how thinking concurrently can improve the efficiency of a spreadsheet application when calculating a large workbook containing thousands of independent formulas.

先自己寫一次答案,再對照解題步驟。

第 8 題
6

Evaluate how the combination of abstraction and decomposition is utilized when a system designer defines a module interface before the internal code of that module is developed.

先自己寫一次答案,再對照解題步驟。

第 9 題
3

A programmer is writing instructions for a robot to draw a square on a screen. The sequence of commands is as follows:
1. Move 10 units forward
2. Turn 90 degrees clockwise
3. Move 10 units forward
4. Turn 90 degrees clockwise
5. Move 10 units forward
6. Turn 90 degrees clockwise
7. Move 10 units forward
8. Turn 90 degrees clockwise

a) Use pattern recognition to identify the repeating sub-sequence in these instructions.
b) Explain how abstraction can be applied to create a more efficient version of this algorithm for the robot.

先自己寫一次答案,再對照解題步驟。

第 10 題
5

Consider the following algorithm provided in pseudocode:

\( COUNT = 1 \)
\( TOTAL = 0 \)
loop while \( COUNT < 5 \)
  if \( COUNT \) mod 2 != 0 then
    \( TOTAL = TOTAL + COUNT \)
  else
    \( TOTAL = TOTAL - 1 \)
  end if
  \( COUNT = COUNT + 1 \)
end loop

Construct a trace table to show the values of the variables \( COUNT \) and \( TOTAL \) at the end of every iteration of the loop until the condition is no longer met.

先自己寫一次答案,再對照解題步驟。

* thinka提供的內容由AI生成,可能並非總是準確或最新。請將其用作輔助資源,並與官方材料進行核實。

你已看過標準答案,接下來輪到批改你的答案。

這一頁可以告訴你好答案的樣子,卻無法指出你的答案欠缺什麼。thinka 按真實評分準則批改你的文字答案,約 15 秒完成。

想多做幾條同類題目?立即開始練習呢個課題,即做即批改。

立即練習