Python Lists Quiz

Python Lists Quiz

University

17 Qs

quiz-placeholder

Similar activities

Music, Politics, Poetry, Tech 2021

Music, Politics, Poetry, Tech 2021

3rd Grade - University

17 Qs

Kiểu dữ liệu xâu kí tự trong Python

Kiểu dữ liệu xâu kí tự trong Python

10th Grade - University

18 Qs

6th Grade Media Quiz

6th Grade Media Quiz

KG - University

15 Qs

Computer Software

Computer Software

KG - Professional Development

15 Qs

Historia del Computador

Historia del Computador

University

14 Qs

CIW IBA Lesson 5 Vocabulary

CIW IBA Lesson 5 Vocabulary

8th Grade - Professional Development

18 Qs

BULLET BRAIN - Sample Challenge

BULLET BRAIN - Sample Challenge

University

20 Qs

Quis

Quis

University

20 Qs

Python Lists Quiz

Python Lists Quiz

Assessment

Quiz

Computers

University

Practice Problem

Easy

Created by

Shiwen Zhang

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?