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

Specifying problems and success criteria:練習問題

その場で採点される選択問題 5 問と、解説つきの記述問題 5 問。すべて「Specifying problems and success criteria」からの出題です。

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 秒で採点します。

同じような問題をもっと解きたい?このトピックの新しい問題を、解きながら採点。

練習を始める