Python Lists Quiz

Python Lists Quiz

University

17 Qs

quiz-placeholder

Similar activities

Python Programming Intermediate-1

Python Programming Intermediate-1

University

15 Qs

Data Analysis using Python

Data Analysis using Python

University

20 Qs

Python Collection Data Type

Python Collection Data Type

University

20 Qs

Python MCQ

Python MCQ

University

20 Qs

Quiz4

Quiz4

University

15 Qs

loops and iterables in python

loops and iterables in python

University

20 Qs

Python Quiz Ver- 1.3

Python Quiz Ver- 1.3

University

15 Qs

Python

Python

University

15 Qs

Python Lists Quiz

Python Lists Quiz

Assessment

Quiz

Computers

University

Easy

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?