
PythonMID

Quiz
•
Computers
•
12th Grade
•
Hard
Kritiya Ra
Used 3+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
ใน Python, ฟังก์ชันที่ใช้ในการเรียง Dictionary ตามคีย์ได้คือ?
sorted()
order()
arrange()
sort()
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
ฟังก์ชัน count() ใน Tuple ใช้ทำอะไร?
ไม่มีฟังก์ชัน count() ใน Tuple
นับจำนวน Tuple ทั้งหมดที่มีค่าเท่ากับค่าที่กำหนด
นับจำนวนครั้งที่ค่านั้นปรากฏในลำดับที่กำหนด
นับจำนวนครั้งที่ค่านั้นปรากฏใน Tuple
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
ถ้าต้องการเพิ่มสมาชิก "apple" ลงในเซตชื่อ fruits ใน Python คำสั่งใดต่อไปนี้เป็นวิธีที่ถูกต้อง?
fruits.append("apple")
fruits.insert("apple")
fruits.add("apple")
fruits.update("apple")
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
ใน Python, ฟังก์ชัน intersection() ใช้ทำอะไร?
หาสมาชิกที่มีในเซตแรกแต่ไม่มีในเซตที่สอง
สร้างเซตที่มีสมาชิกเฉพาะที่ซ้ำกันในเซตต้นฉบับทั้งสอง
นับจำนวนสมาชิกที่ปรากฏในเซตทั้งสอง
รวมสมาชิกที่ไม่ซ้ำกันในเซตทั้งสอง
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
ฟังก์ชัน update() ใน Dictionary ทำอะไร?
ไม่มีฟังก์ชัน update() ใน Dictionary
อัปเดตค่าของคีย์ที่มีอยู่ใน Dictionary
เพิ่มคีย์และค่าใหม่เข้าไปใน Dictionary
ลบคีย์และค่าทั้งหมดใน Dictionary
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
หากมี Tuple ดังต่อไปนี้ (3, 5, 2, 5, 9, 5, 4, 7) และต้องการหา index ของค่า 5 ที่ปรากฏครั้งแรก คำสั่งใดจะให้ผลลัพธ์ที่ถูกต้อง?
tuple.find(5)
tuple.find(5, 1)
tuple.index(5)
tuple.index(5, 1)
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
ใน Python, ฟังก์ชัน zip() ทำอะไร?
รวมสมาชิกจากลิสต์หลาย ๆ ลิสต์เข้าด้วยกันในรูปแบบของ Tuple
สลับค่าระหว่างสมาชิกในลิสต์
ไม่มีฟังก์ชัน zip() ใน Python
ลบสมาชิกที่ซ้ำกันออกจากลิสต์
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Embed System#2

Quiz
•
10th - 12th Grade
15 questions
นวัตกรรมและเทคโนโลยีสมัยใหม่

Quiz
•
12th Grade
10 questions
บทที่ 2 การเปลี่ยนแปลงของเทคโนโลยี

Quiz
•
KG - Professional Dev...
10 questions
digital platform เพื่อการเรียนรู้

Quiz
•
9th - 12th Grade
10 questions
การใช้เทคโนโลยีสารสนเทศอย่างปลอดภัย

Quiz
•
7th - 12th Grade
15 questions
Basic&key

Quiz
•
12th Grade
10 questions
การสร้างเกม จับผีเสื้อ scratch

Quiz
•
12th Grade
15 questions
ทวนความรู้ครั้งที่ 3

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade