Pearson Edexcel GCSE (9-1) · Computer Science (1CP2)

Operators:練習題

5 條多項選擇題即時批改,另有 4 條文字題附完整解題步驟,全部圍繞「Operators」。

9 條題目19 免費,無需登記
第 1 題
1

Which arithmetic operator is used to calculate the remainder after an integer division in pseudocode?

第 2 題
1

Consider the following expression:
\(result = (12 + 4) * 2 ** 3\)
What is the value of \(result\)?

第 3 題
1

In a logical test, which combination of Boolean values for \(A\), \(B\), and \(C\) will make the following expression evaluate to True?
\((A \text{ AND } B) \text{ OR } (\text{NOT } C)\)

第 4 題
1

Evaluate the following logic statement where \(P = True\) and \(Q = False\):
\(\text{NOT } (P \text{ AND } Q) \text{ AND } (P \text{ OR } Q)\)

第 5 題
1

What is the result of the following integer division and modulus operations in pseudocode?
\(x = 17 \text{ // } 5\)
\(y = 17 \text{ MOD } 5\)

第 6 題
2

State the value of result after the following code is executed:
result = 15 % 4

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

第 7 題
3

Evaluate the following logical expression where A = True and B = False:
NOT (A AND B)

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

第 8 題
5

Determine the final value of x after the following operations:
x = 10
y = 3
x = x // y ** 2

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

第 9 題
4

A developer is creating a login system. The system must check if the username is "admin" AND if the login attempts are less than 3.

(a) Write a boolean expression for this selection criteria using the variables user and attempts.
(b) If user = "admin" and attempts = 3, determine the final evaluation (True/False) of the expression.
(c) Explain the effect of changing the AND operator to an OR operator in this specific logic.

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

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

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

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

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

立即練習