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 秒完成。

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

立即练习