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()

Bảng xếp hạng

Phong cách trực quan

Tùy chọn

AI Enhanced: Hoạt động này chứa nội dung do AI tạo. Tìm hiểu thêm.

Chuyển đổi mẫu

Bạn có muốn khôi phục tự động lưu: không?