JavaScript isn't enabled in your browser, so this file can't be opened. Enable and reload.
แบบทดสอบ บทที่ 3 ชนิดของข้อมูลพื้นฐาน
* Indicates required question
Email
*
Record my email address with my response
ชื่อ - สกุล ****ตัวอย่าง***(นายครูดี มีสุข)
*
Your answer
1.ใน Python ตัวแปรชนิดข้อมูลชนิดใดไม่สามารถเปลี่ยนแปลงค่าได้
*
A. int
B. float
C. str
D. list
2.ใน Python การเก็บข้อมูลแบบตัวเลขที่มีทศนิยมใช้ชนิดข้อมูลอะไร?
*
A. int
B. float
C. str
D. bool
3.ใน Python ตัวแปรชนิดข้อมูลชนิดใดใช้สำหรับเก็บข้อมูลที่มีค่าคงที่และไม่สามารถเปลี่ยนแปลงได้?
*
A. int
B. float
C. str
D. tuple
4.ชนิดข้อมูลใดใช้สำหรับเก็บข้อมูลแบบลิสต์ของข้อมูลที่ไม่ต้องการให้มีการเปลี่ยนแปลง?
*
A. list
B. tuple
C. dict
D. set
5.จากการตรวจสอบชนิดข้อมูลใน Python ด้วยฟังก์ชัน type() ตัวแปร x ที่ได้รับค่าเป็น 42.0 มีชนิดข้อมูลเป็นอะไร?
*
A. int
B. float
C. str
D. bool
ุ6.จากการกำหนดตัวแปร my_string = "Hello" และ my_number = 123 ตัวแปร my_string มีชนิดข้อมูลเป็นอะไร?
*
A. int
B. float
C. str
D. bool
7.การใช้ฟังก์ชัน len() กับตัวแปรชนิดข้อมูลใดจะได้ผลลัพธ์เป็นจำนวนข้อมูลในลิสต์หรือสตริง?
*
A. list
B. tuple
C. str
D. set
8.ในการใช้งาน Python ประโยชน์ที่สุดของตัวแปรชนิดข้อมูลชนิดใดคือการเก็บข้อมูลแบบคีย์-ค่า?
*
A. list
B. tuple
C. dict
D. set
9.การกำหนดค่า True หรือ False ให้กับตัวแปรชนิดข้อมูลใดจะได้ผลลัพธ์เป็นข้อมูลประเภทบูลีน?
*
A. int
B. float
C. str
D. bool
10.ใน Python การเรียงลำดับข้อมูลแบบลิสต์จากน้อยไปมากใช้ฟังก์ชันใด?
*
A. sort()
B. reverse()
C. append()
D. pop()
Submit
Clear form
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google. -
Terms of Service
-
Privacy Policy
Does this form look suspicious?
Report
Forms
Help and feedback
Contact form owner
Help Forms improve
Report