
ทดสอบความรู้ภาษา Python
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Hard
ครูโชคชัย กระจายศรี
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ตัวแปรใน Python สามารถประกาศได้อย่างไร?
ใช้การประกาศแบบ list เช่น my_list = [1, 2, 3]
ใช้การกำหนดชื่อและค่า เช่น x = 10 หรือ name = 'John'
ใช้การประกาศแบบ dictionary เช่น my_dict = {'key': 'value'}
ใช้การประกาศแบบ tuple เช่น my_tuple = (1, 2)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
คำสั่งใดที่ใช้ในการควบคุมการไหลใน Python?
if, elif, else, for, while
case
break
switch
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ฟังก์ชันใน Python มีลักษณะอย่างไร?
ฟังก์ชันใน Python ใช้คำสั่ง 'function' เพื่อสร้าง
ฟังก์ชันใน Python ไม่สามารถรับพารามิเตอร์ได้
ฟังก์ชันใน Python ถูกสร้างขึ้นโดยใช้คำสั่ง 'def' และสามารถรับพารามิเตอร์และส่งค่าผลลัพธ์กลับได้
ฟังก์ชันใน Python ส่งค่าผลลัพธ์กลับโดยอัตโนมัติ
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
การจัดการข้อผิดพลาดใน Python ใช้คำสั่งใด?
if-else
switch-case
try-except
for-loop
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ลิสต์ใน Python สามารถเก็บข้อมูลประเภทใดได้บ้าง?
ลิสต์ใน Python สามารถเก็บข้อมูลประเภทเดียวเท่านั้น
ลิสต์ใน Python สามารถเก็บข้อมูลประเภทตัวเลขและสตริงได้เท่านั้น
ลิสต์ใน Python ไม่สามารถเก็บข้อมูลประเภทออบเจ็กต์ได้
ลิสต์ใน Python สามารถเก็บข้อมูลประเภทต่างๆ เช่น ตัวเลข, สตริง, บูลีน, ลิสต์อื่นๆ, และออบเจ็กต์
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
วิธีการเข้าถึงสมาชิกในลิสต์ใน Python ทำได้อย่างไร?
ใช้คำสั่ง append() เพื่อเพิ่มสมาชิกในลิสต์
ใช้ดัชนี (index) เช่น list_name[index] เพื่อเข้าถึงสมาชิกในลิสต์
ใช้ฟังก์ชัน len() เพื่อเข้าถึงสมาชิกในลิสต์
ใช้คำสั่ง for เพื่อวนลูปผ่านสมาชิกในลิสต์
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
โมดูลใน Python คืออะไร?
โมดูลใน Python คือเครื่องมือสำหรับการออกแบบกราฟิก
โมดูลใน Python คือฐานข้อมูลที่เก็บข้อมูล
โมดูลใน Python คือไฟล์ที่มีโค้ด Python ที่สามารถนำมาใช้ซ้ำได้
โมดูลใน Python คือฟังก์ชันที่ใช้ในการคำนวณ
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Pemrograman
Quiz
•
9th - 12th Grade
10 questions
Computer Languages
Quiz
•
6th - 12th Grade
10 questions
บทที่3 การเพิ่มมูลค่าเทคโนโลยี
Quiz
•
9th Grade
10 questions
ม.3เจาะลึก 1 เทคโนโลยีเปลี่ยนโลก
Quiz
•
9th Grade
8 questions
9.2 Physical computing Lesson 2 starter
Quiz
•
9th Grade
10 questions
การประมวลผลข้อมูล-เทคโนโลยี3
Quiz
•
9th Grade
15 questions
Вспомним Python
Quiz
•
9th Grade
10 questions
9 Ә үй тапсырмасы тест
Quiz
•
9th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
