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コード
削除
自動保存:
を復元しますか?