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 วินาที

อยากฝึกโจทย์แบบนี้เพิ่มไหม เริ่มฝึกหัวข้อนี้ได้เลย ตรวจให้ทันทีทุกข้อ

เริ่มฝึกเลย