
Python Lists Quiz

Quiz
•
Computers
•
University
•
Easy

Shiwen Zhang
Used 1+ times
FREE Resource
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
以下语法的结果是什么:
mylist = ['apple', 'banana', 'cherry']
print(mylist[1])?
Banana
Cherry
Orange
Apple
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
列表 mylist = ['apple', 'banana', 'cherry'] 的第一个元素是什么?
grape
apple
cherry
banana
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
这个列表里面有几个元素 mylist = ['apple', 'banana', 'cherry']?
5
4
3
2
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
下面哪个元素不属于列表mylist
mylist = ['apple', 'banana', 'cherry']?
banana
cherry
apple
kiwi
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
如何访问列表 mylist = ['apple', 'banana', 'cherry'] 的最后一个元素?
mylist[3]
mylist[-1]
mylist[0]
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
打印列表fruits里面的第二个元素
fruits = ["apple", "banana", "cherry"]
print( )
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
下列代码的运行结果为
mylist = ['apple', 'banana', 'cherry', 'orange', 'kiwi']
print(mylist[1:4])
['banana', 'cherry', 'orange']
['banana', 'cherry', 'orange', 'kiwi']
['cherry', 'orange', 'kiwi']
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python Tuples Quiz

Quiz
•
University
16 questions
Python Sets Quiz

Quiz
•
University
15 questions
Scratch Text Operators

Quiz
•
KG - Professional Dev...
20 questions
8-期中总结

Quiz
•
University
20 questions
Bertelsmann AI Track Quiz Initiative #3

Quiz
•
University - Professi...
17 questions
Python Programming Quiz

Quiz
•
University
20 questions
Python-Lists_Dictionaries

Quiz
•
University
20 questions
list 6th

Quiz
•
7th Grade - University
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade