
แบบทดสอบการเขียนโปรแกรม ม3
Authored by นินจาทมิฬ default
Computers
4th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
31 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ถ้า a = 10 และ b = 20 หลังจากการทำคำสั่ง a = a + b ผลลัพธ์ของ a จะเป็นเท่าไร?
30
20
10
40
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
หาก x = 5 และ y = 3 หลังจากการทำคำสั่ง y = x - y ค่าของ y จะเป็นเท่าไร?
8
2
5
3
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ถ้า x = 6 และ y = 9 แล้วทำการใช้คำสั่ง x = x * y ค่าของ x จะเป็นเท่าไร?
15
54
3
16
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ถ้าเรามีตัวแปร a = 2, b = 5, และ c = 3 คำสั่ง a = b - c จะทำให้ค่า a เป็นเท่าไร?
2
8
5
2
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ถ้าคำสั่ง if x > y ให้แสดง "x is greater" ถ้า x = 7 และ y = 5 ผลลัพธ์ที่ได้จะเป็นอะไร?
"x is greater"
"y is greater"
ไม่แสดงอะไร
"x is less"
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ในการใช้คำสั่ง for เพื่อหาผลรวมของตัวเลขจาก 1 ถึง 10 จะต้องทำอย่างไร?
for i in range(1, 11): sum += i
for i in range(10): sum += i
for i in range(1, 10): sum += i
for i in range(1, 11): sum = i
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ถ้า x = 5 และ y = 3 หลังจากคำสั่ง x = x * y ค่าของ x จะเป็นเท่าไร?
8
15
5
3
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?