
แบบทดสอบก่อนเรียน เรื่อง ตัวแปรในภาษาไพทอน
Authored by Arrow ly
Computers
8th Grade
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ตัวแปรในภาษาไพทอน คืออะไร
ก. ตัวแปรคือคำสั่งที่ใช้ในการคำนวณทางคณิตศาสตร์เท่านั้น
ข. ตัวแปรคือค่าคงที่ที่ไม่สามารถเปลี่ยนแปลงได้ในระหว่างการทำงานของโปรแกรม
ค. ตัวแปรคือชื่อที่ใช้ในการเก็บข้อมูลหรือค่า เพื่อใช้ในโปรแกรม
ง. ตัวแปรคือตัวเลขหรือตัวอักษรที่ใช้แสดงผลลัพธ์ออกทางหน้าจอเท่านั้น
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ถ้าต้องการเก็บตัวเลขทศนิยมควรใช้ชนิดข้อมูลใดในไพทอน
int
str
bool
float
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ข้อใดเป็นการใช้ตัวแปรไม่ถูกต้อง
name = "Tom"
thai_score = 24
1product = "pen"
mySubject = "computer"
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ข้อใดเป็นการตั้งชื่อตัวแปรที่ไม่ถูกต้อง
productprice
productPrice#
productPrice
product_price
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ถ้าจะสร้างตัวแปรเก็บค่าชื่อคำว่า Kitty ควรใช้ตัวแปรตามข้อใด
Myschool
myScore
mywork
myName
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ข้อใดคือการตั้งชื่อตัวแปรตามรูปแบบ camal case
student_score_final
studentScoreFinal
3studentscorefinal
student score final
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
จากคำสั่ง x = 10 และ x = x + 5 ค่าใหม่ของ x คือเท่าไร
15
20
25
30
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?