Search Header Logo

Week3 上周知识点回顾

Authored by Nila Zhang

Information Technology (IT)

University

Used 3+ times

Week3 上周知识点回顾
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

在 Python 中,什么是可迭代对象?

一个可以永久存储数据元素的对象。

一个数据元素不可更改的对象。

一个可以数据元素可以被分别提取的对象。

一个数据元素可以被修改的对象

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

以下哪种是 Python 中的不可变数据类型?

列表

集合

字典

元组

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

以下哪种数据结构是有序的?

字典

集合

列表

以上都不是

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

以下代码的输出是什么:mylist = [1, 2, 3]; mylist[1] = 4?

[1, 2, 3]

[1, 2, 4]

[4, 2, 3]

[1, 4, 3]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

以下哪种方法可以用来反转一个列表?

reverse()

insert()

sort()

append()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

'pop()' 方法的作用是什么?

将一个元素添加到列表中。

从列表任意移除一个元素。

从列表中移除并返回一个元素。

清空整个列表。

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

如何在 Python 中创建一个空列表?

都不对

list() 和 []

[]

list()

Access all questions and much more by creating a free account

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?

Similar Resources on Wayground