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增强版:本活动包含AI生成的内容。
了解更多信息。
切换模板
显示所有
播放活动时将显示更多格式。
打开成绩
复制链接
QR 代码
删除
恢复自动保存:
?