1) What is a list in Python? a) Mutable sequence b) Immutable sequence c) Single value d) None of these 2) What does positive indexing start with? a) 0 b) 1 c) -1 d) 2 3) What does negative indexing start with? a) -1 b) 0 c) 1 d) -2 4) Which method adds an item to the end of a list? a) append() b) insert() c) remove() d) pop() 5) Which method removes an item by value? a) remove() b) pop() c) append() d) insert() 6) Which method removes an item by index? a) pop() b) remove() c) insert() d) append() 7) Which function returns the number of items in a list? a) len() b) sort() c) append() d) insert() 8) Which method sorts a list in place? a) sort() b) len() c) append() d) remove() 9) What does the insert() method do? a) Adds at index b) Removes by index c) Adds at end d) Sorts list 10) Which of these is a list function? a) len() b) append() c) insert() d) remove()
0%
Python Lists Quiz
แชร์
แชร์
แชร์
โดย
Epssabangan
G7
ICT
Basic programming
Python
แก้ไขเนื้อหา
สั่งพิมพ์
ฝัง
เพิ่มเติม
กำหนด
ลีดเดอร์บอร์ด
แสดงเพิ่มขึ้น
แสดงน้อยลง
ลีดเดอร์บอร์ดนี้ตอนนี้เป็นส่วนตัว คลิก
แชร์
เพื่อทำให้เป็นสาธารณะ
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานโดยเจ้าของทรัพยากร
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานเนื่องจากตัวเลือกของคุณแตกต่างสำหรับเจ้าของทรัพยากร
แปลงกลับตัวเลือก
การไล่ล่าเขาวงกต
เป็นแม่แบบแบบเปิดที่ไม่ได้สร้างคะแนนสำหรับลีดเดอร์บอร์ด
ต้องลงชื่อเข้าใช้
สไตล์ภาพ
แบบ อักษร
ต้องสมัครสมาชิก
ตัวเลือก
AI Enhanced: กิจกรรมนี้มีเนื้อหาที่สร้างโดย AI
ศึกษาเพิ่มเติม
สลับแม่แบบ
แสดงทั้งหมด
รูปแบบเพิ่มเติมจะปรากฏเมื่อคุณเล่นกิจกรรม
เปิดผลลัพธ์
คัดลอกลิงค์
คิวอาร์โค้ด
ลบ
คืนค่าการบันทึกอัตโนมัติ:
ใช่ไหม